@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / NATIVE_TOKEN_SENTINEL

Variable: NATIVE_TOKEN_SENTINEL

const NATIVE_TOKEN_SENTINEL: Address = "0x28f34DeFd2b4CB48d9eE6d89f2Be4Bc601694c00"

Defined in: packages/sdk/src/vault/funding.ts:32

The vault's native-token sentinel — the pseudo-address every ERC20Vault uses to key native (SOMI) balances, since native has no ERC-20 contract.

Details

Mirrors NATIVE_TOKEN in the protocol's common/Common.sol. Pass it to client.getVaultBalance or withdrawVault to address a native balance — but NOT to Trader.depositVault, which reverts UseDepositNative; native goes in through Trader.depositVaultNative.