MultiVault
deposit
deposit
Transfer tokens to the Everscale. Works both for native and alien tokens. Approve is required only for alien tokens deposit.
Parameters:
Events emitted:
Deposit
saveWithdrawNative
saveWithdrawNative
Saves withdrawal for native token (does the necessary checks regarding token and chain, calculates fees and mints).
Parameters:
Events emitted:
Withdraw
saveWithdrawAlien
saveWithdrawAlien
Saves withdrawal for alien token (does the necessary checks regarding token and chain, calculates fees and mints).
Parameters:
Events emitted:
Withdraw
skim
skim
Skim (removes) multivault fees for specific token. If skim_to_everscale
is true, than fees will be sent to Everscale. Otherwise, tokens will be transferred to the governance
address.
Parameters:
Events emitted:
SkimFee
migrateAlienTokenToVault
migrateAlienTokenToVault
Transfers specified token to specified vault.
Parameters:
Events emitted:
TokenMigrated
calculateMovementFee
calculateMovementFee
Calculates fee for deposit or withdrawal.
Parameters:
Return value:
_activateToken
_activateToken
Activates specified token with all the information about it.
Parameters:
Events emitted:
TokenActivated
_transferToEverscaleNative
_transferToEverscaleNative
Emits NativeTransfer event to signify native token transfer to Everscale network.
Parameters:
Events emitted:
NativeTransfer
_transferToEverscaleAlien
_transferToEverscaleAlien
Emits AlienTransfer event to signify alien token transfer to Everscale network.
Parameters:
Events emitted:
AlienTransfer
_getNativeWithdrawalToken
_getNativeWithdrawalToken
Gets the native token based on provided parameters, deploys and activates it if it isn't already active.
Parameters:
_deployTokenForNative
_deployTokenForNative
Deploys token as native.
Parameters:
Return value:
Events emitted:
TokenCreated
_processWithdrawEvent
_processWithdrawEvent
Process' withdraw event by verifying signatures and decoding the event and checking the event configuration.
Parameters:
Return value:
Last updated