EverWeverToTip3
The EverWeverToTip3 defines the logic for swapping EVERs in combination with WEVERs to Tip3 tokens.
Smart contract responsible for swapping EVERs in combination with WEVERs to Tip3 tokens.
Derives following classes and interfaces: IAcceptTokensTransferCallback, IAcceptTokensBurnCallback.
constructor
constructor
Deploy EverToTip3Gas empty wallet.
buildExchangePayload
buildExchangePayload
Builds payload by filling the TVM builder instance with data derived from function params, returns builder converted to cell.
Parameters:
Return Value:
Callbacks
onWeverWallet
onWeverWallet
Deploys Wever wallet for the contract using _weverWallet
address from the function params.
Parameters:
onAcceptTokensTransfer
onAcceptTokensTransfer
Callback if swap between ever and tip 3 is successful.
Calls onSwapEverToTip3Success
callback to the user, SwapEverToTip3SuccessTransfer
event is emitted and tip 3 tokens are sent to a user wallet by calling TokenWallet
’s transfer method.
If conditions are not fulfilled swap is canceled and tokens are returned to sender’s wallet.
Parameters:
onAcceptTokensBurn
onAcceptTokensBurn
If result of swap was canceled call this callback, it emits SwapEverToTip3CancelTransfer
event and calls onSwapEversToTip3Cancel
callback.
Parameters:
Key Events
SwapEverWeverToTip3Unwrap
SwapEverWeverToTip3Unwrap
Last updated