Last updated
Last updated
The DAO contract where proposals are submitted , votes are cast, and profits are received from the features contracts in the form of fees.
OmniTransfers contract where the multisender requests are executed
OmniPay contract where all the payment logic exists
OmniTrust contract that holds all deposit assets and deposit properties.
Dual functionality contract that inherits from LayerZero OApp. Locks migrated assets when used on the source network, and is the sole contract allowed to mint bridged assets when used on the destination network.
OmniEscrow contract that holds offered and bidden assets along with escrow auction properties and info.
Refuel: OmniRefuel contract that executes local and cross-chain refueling logic.
TokenSale contract that hosts any Omnify Coin (OFY) coin sale, throttles sales revenue to the DAO contract with each purchase.
Omnify Coin (OFY) ERC20 contract with a hard coded total supply of 250,000 and 0 decimals.
All interactions with Omnify's contracts have a minimum amount of tokens on all networks.
To know a token's min. allowed amount in Wei call getMinAmount
on the Omnify contract you are working on and pass the number of decimals the token supports as a parameter. That public function exists on all Omnify contracts.
Ex: getMinAmount(18)
for ETH, getMinAmount(6)
for USDC.
If you are transacting on Omnify with an ERC20 token always call its approve
function and pass the target feature's smart contract address before transacting with it.
Omnify operates via 9 main inter-connected contracts which are labelled and function as follows: