DexPlatform
Setting initial data when deploying new account or pair.
Smart contract used for setting initial data when deploying new account or pair.
constructor
constructorconstructor(TvmCell code, uint32 version, address vault, address send_gas_to) publicInitializes DexPlatform contract if the message sender is root or does the transfer to send_gas_to address.
Parameters:
code
TvmCell
Code to be set for this version
version
uint32
Current version of DexPlatform
vault
address
Vault address
send_gas_to
address
Address where to send gas spent by calling contract methods
_initialize
_initializefunction _initialize(TvmCell code, uint32 version, address vault, address send_gas_to) privateInitializes DexPlatform contract, stores parameters in TvmBuilder, sets current code and runs onCodeUpgrade from new code.
Parameters:
code
TvmCell
Code to be set for this version
version
uint32
Current version of DexPlatform
vault
address
Vault address
send_gas_to
address
Address where to send gas spent by calling contract methods
Last updated
Was this helpful?