Returns the total (i.e. toll + spread) fees for an amount.
Returns contract configuration.
Returns the owner of the contract.
Allows owner to open the vAMM enable positions to be taken.
Optional
_memo: stringOptional
_funds: Coin[]Calculates the funding payments due.
Optional
_memo: stringOptional
_funds: Coin[]Returns contract state, including liquidity etc.
Allows the margin engine to swap quote asset into the vAMM.
Optional
_memo: stringOptional
_funds: Coin[]Allows the margin engine to swap base asset into the vAMM.
Enables owner to update key contract parameters.
vammContract.updateConfig({
tollRatio: '0'
});
Optional
baseOptional
fluctuationOptional
insuranceOptional
marginOptional
openOptional
pricefeed?: stringOptional
spotOptional
spreadOptional
tollOptional
_memo: stringOptional
_funds: Coin[]Transfers the contract owner.
Optional
_memo: stringOptional
_funds: Coin[]©2020 - 2023 Oraichain Foundation