OCT_DAO.sol

OCT -> On-Chain Treasury

Introduction

This contract converts assets and forwards them to the DAO.

State Variables

Type
Name
Description

address

GBL

The ZivoeGlobals contract.

Sections

Read Functions

Write Functions

Events

Read Functions

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

Write Functions

convertAndForward()

Converts an asset and forwards it to the DAO.

Type
Name
Description

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

Events

AssetConvertedForwarded()

Emitted during convertAndForward()

Type
Indexed
Name
Description

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.

Last updated