flash_swap_callback
When user need to return TEZ tokens, he need to transfer correct amount of TEZ tokens to the DexCore contract at the end of his lambda execution.
type token_id_t is nat
type flash_swap_1_t is [@layout:comb] record [
pair_id : token_id_t;
prev_tez_balance : nat;
amount_in : nat;
]
Field | Type | Description |
---|---|---|
pair_id | token_id_t (nat) | Identifier of the liquidity pool (pair) |
prev_tez_balance | nat | |
amount_in | nat | The number of incoming tokens (amount that user must repay) |
108
- pair (pool) with the specifiedtoken_id
not listed.129
- wrong amount of flash swap returns.138
- only entered (transaction must be not the first transaction in the chain of calls).412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
Last modified 1yr ago