Skip to main content

Lp_account

Interfaces

provide

Message from pool contract for liquidity provision.

PathMnemonicTypeDescription
opuint320xbeb8a902
query_iduint64query id
new_amount_xcoinstotal amount of token_x in provision
new_amount_ycoinstotal amount of token_y in provision
deposit_typeuint3one of deploy
liquidity_dictdictdictionary of tokens for each bin of provision.
reject_payloadmaybe_cellreject payload for liquidity provision. Sender recieves it with tokens refund.
forward_payloadmaybe_cellforward payload for liquidity provision. Sender recieves it with notify from lp multitoken contract.

add_referral_value

Message from pool contract for adding ref fee.

PathMnemonicTypeDescription
opuint320x7bac5221
query_iduint64query id
new_amount_xcoinstotal amount of token_x from ref fee.
new_amount_ycoinstotal amount of token_y from ref fee.

refund

Message from user for refunding stored tokens.

PathMnemonicTypeDescription
opuint320x13d4efbc
query_iduint64query id

reset_gas

Message from user for refunding accumulated tons on the contract.

PathMnemonicTypeDescription
opuint320xa865c12f
query_iduint64query id

get_data

Message from any contract for getting stored info in the contract.

PathMnemonicTypeDescription
opuint320xd0b87bbf
query_iduint64query id

Get-methods

get_liquidity_data

Return

PathMnemonicTypeDescription
user_addresssliceowner's address.
pool_addresssliceaddress of corresponding pool contract.
amount_xcoinsamount of first asset stored for future provision.
amount_ycoinsamount of second asset stored for future provision.

get_storage

Return

PathMnemonicTypeDescription
storagecellfull current storage of the contract.