DeFi Operations

What is DeFi operation?

A DeFi operation corresponds to an execution of a decentralized finance instrument of Ethereum such as lending in Compound or trading in Uniswap. Operations are predefined, decentralized, inmutable and whitelisted on a smart contract registry. The platform always maps a DeFi operation to the swap of two or more assets.
The assets that the operation receives also known as "in assets", are exchanged and the "out assets" are returned. For example, when you lend DAI in Compound, you receive in exchange CDAI which are IOU ERC20 tokens to redeem the DAI in the future. So Defire treats a Compound DAI lending execution as an operation where a DAI asset is swapped with a CDAI asset.
Within the platform, all DeFi operations receive some assets (in assets) and return others (out assets).

Available DeFi Operations

These are the current available operations:
Instrument
Type
Description
Assets involved
Networks
Compound
Lend
Lend DAI
DAI, CDAI
Rinkeby
Lend
Lend ETH
ETH, CETH
Rinkeby
Lend
Lend USDC
USDC, CUSDC
Rinkeby
Lend
Lend WBTC
WBTC, CWBTC
Rinkeby
Borrow
Borrow DAI
ETH, DAI
-
Borrow
Borrow USCD
ETH, DAI
-
Borrow
Borrow WBTC
ETH, WBTC
-
Uniswap
Trade
DAI, ETH
Rinkeby
Trade
USDC, ETH
Rinkeby
Trade
WBTC, ETH
Rinkeby
Maker
Lend
Lend in Dai Savings Rate
DAI, CHAI
-
Borrow
Borrow DAI with ETH
DAI, ETH
-
Borrow
Borrow DAI with USDC
DAI, USDC
-
Kyber
Trade
Trade DAI and ETH
DAI, ETH
-
Trade
Trade USDC and ETH
USDC, ETH
-
Trade
Trade WBTC and ETH
WBTC, ETH
-
DyDx
Trade
Trade DAI and ETH
DAI, ETH
-
Trade
Trade USDC and ETH
USDC, ETH
-
Trade
Trade DAI and USDC
DAI, USDC
-
Borrow
Borrow DAI
DAI, ETH
-
Borrow
Borrow USDC
USDC, ETH
-
Margin Trade
Trade DAI and ETH
DAI, ETH
-
Margin Trade
Trade USDC and ETH
USDC, ETH
-
Curve
Lend
Compound pool
DAI, USDC, cDAI+cUSDC
-
PoolTogether
Bet
Lottery DAI pool
DAI, plDAI
-
Bet
Lottery USDC pool
USDC, plUSDC
-
Wrap
Wrap
Wrath ETH
ETH, WETH
Rinkeby
Not finding the operation you are looking for? You can compose operations into a new one or create your own custom operations.

How can I execute DeFi operations?

Any Ethereum Account or Smart Contract can directly execute DeFi operations. Here is a quick example. However to obtain a better layer of security and scalability, Defire provides developers with Portfolios.
A Portfolio can hold any asset and execute any operation like an account. However, they have the advantage that they can split the account owner of the assets from the account that execute the operations online, making it imposible for a hacker to steal the assets.
For more information on the security of portfolios, visit this page.
Many DeFi operations can be batched in a single Ethereum transaction.
For more an advanced management, the platform also provides the concept of Funds. A Fund allows a manager to create different strategies to operate one or many accounts or portfolios. Each fund can represent a unique DeFi investment strategy. For example, a manager can create a low risk fund to lend assets and a high risk fund to do margin trades.
Last modified 1yr ago