OCT_DAO.sol
OCT -> On-Chain Treasury
Last updated
OCT -> On-Chain Treasury
Last updated
This contract converts assets and forwards them to the DAO.
address
GBL
The ZivoeGlobals contract.
canPush() - Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPushMulti() - Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
canPull() - Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullMulti() - Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
canPullPartial() - Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
canPullPartialMulti() - Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
convertAndForward() - Converts an asset and forwards it to the DAO.
canPush()
Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPushMulti()
Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
canPull()
Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullMulti()
Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
canPullPartial()
Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
canPullPartialMulti()
Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
convertAndForward()
Converts an asset and forwards it to the DAO.
address
asset
The asset to convert.
uint256
toAsset
The ERC20 that we are converting "asset" to.
bytes
data
The payload containing conversion data, consumed by 1INCH_V5.
Emits the AssetConvertedForwarded() event
AssetConvertedForwarded()
Emitted during convertAndForward()
address
True
asset
The "asset" being converted.
address
True
toAsset
The ERC20 that we are converting "asset" to.
uint256
False
amountFrom
The amount being converted.
uint256
False
amountTo
The amount received from conversion.