Account
account
Description
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
Data Storage
Index | Type | Size (b/r) | Cell | Name | 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. |
Cells
Name | Size | Free |
---|---|---|
1 | 534 | 489 |
11 | 496 | 527 |
Interface
get_account_data
(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
Messages
ACCOUNTV3_ADD_LIQUIDITY
Opcode : 0x3ebe5431
Mnemonic | Type | Description |
---|---|---|
op | Uint(32) op | |
query_id | Uint(64) | |
new_amount0 | Coins() | |
new_amount1 | Coins() | |
new_enough0 | Coins() | |
new_enough1 | Coins() | |
liquidity | Uint(128) | |
tickMin | Int(24) | |
tickMax | Int(24) |
ACCOUNTV3_RESET_GAS,POOLV3_RESET_GAS,ROUTERV3_RESET_GAS
Opcode : 0x42a0fb43
Mnemonic | Type | Description |
---|---|---|
op | Uint(32) op | |
query_id | Uint(64) |
Last updated