Account
Last updated
Last updated
Account contract. This a contract that stores the funds that the user would use for minting. The account also proxies the minting message and collects proof that both jettons were actually funded correctly
Index | Type | Size (b/r) | Cell | Name | Description |
---|---|---|---|---|---|
(slice, slice, int, int, int, int) get_account_data ()
This function provides current state of the user account
@return0 account::user_address Address of the owner of the account
@return1 account::pool_address Address of the pool that this account is attached to
@return2 account::amount0 Amount of jetton0 that was deposited for mint
@return3 account::amount1 Amount of jetton1 that was deposited for mint
@return4 account::enough0 Amount of jetton0 that is enough to send message to the pool and actually do the mint
@return5 account::enough1 Amount of jetton1 that is enough to send message to the pool and actually do the mint
Opcode : 0x3ebe5431
This operation adds liquidity and a minting request to the account Access Rights: This operation is allowed for account::pool_address
Opcode : 0x42a0fb43
This operation allows user to get back the gas it too much was sent Access Rights: This operation is allowed for account::user_address
Opcode : 0xbf3f447
This operation allows user to get back the coins if sending of the second coin in the mint failed. This method allows to trigger mint of 0 liquidity that Would allow to return funds. Access Rights: This operation is allowed for account::user_address
Name | Size | Free |
---|---|---|
Path | Mnemonic | Type | Description |
---|---|---|---|
Path | Mnemonic | Type | Description |
---|---|---|---|
Path | Mnemonic | Type | Description |
---|---|---|---|
1
addr
267 / 0
1
account::user_address
Address of the user ton wallet of the user that owns this two jetton account
2
addr
267 / 0
1
account::pool_address
Address of the pool that created this two jetton account
3
coins
124 / 0
11
account::amount0
Amount of jetton0 (in pool terms) currently stored in the account
4
coins
124 / 0
11
account::amount1
Amount of jetton1 (in pool terms) currently stored in the account
5
coins
124 / 0
11
account::enough0
Amount of jetton0 (in pool terms) that is enough to make a mint operation. When reached for both tokens, mint is triggered
6
coins
124 / 0
11
account::enough1
Amount of jetton1 (in pool terms) that is enough to make a mint operation.
1
534
489
11
496
527
op
Uint(32),op
query_id
Uint(64)
queryid as of the TON documentation
new_amount0
Coins(124)
new_amount1
Coins(124)
new_enough0
Coins(124)
new_enough1
Coins(124)
liquidity
Uint(128)
Amount of liquidity to mint
tickLower
Int(24)
lower bound of the range in which to mint
tickUpper
Int(24)
upper bound of the range in which to mint
op
Uint(32),op
query_id
Uint(64)
queryid as of the TON documentation
op
Uint(32),op
query_id
Uint(64)
queryid as of the TON documentation