initialize()

initialize() onlyOwner external returns (bool succes)

Description

The initialize function can only be called once on initialization of the contract. This function is used to set the addresses of the contracts for this linked asset instance to communicate.

require

#The initialized function can only be called once.
require(initialized != true);

input

#The inputs are all the contract addresses of the instance.
address payable tokenAddress,
address payable collateralAddress,
address payable custodianAddress,
address payable oracleAddress,
address payable taxAddress,
address payable defconAddress,
address payable exchangeAddress,
address payable devAddress

output

#Returns true on succesful execution.
returns (bool success)

Last updated

Was this helpful?