CarbonVortex Functions
Carbon DeFi generates protocol fees on each chain its deployed in two primary ways: on the taker side through orders being taken by traders on the Carbon DeFi protocol, and through arbitrage transactions powered by Bancor’s integrated Arb Fast Lane.
Taker fees from user trades are collected directly via Carbon DeFi. In parallel, the Arb Fast Lane performs chain-wide arbitrage and collects additional fees via its smart contracts. These combined fees are transferred into the Carbon Vortex contract, where they are made available for purchase through a Dutch auction pricing model.
These are popular flows that can be achieved using the Carbon Vortex:
Trigger Execute() for caller rewards
The Carbon Vortex allows any user to check the available token balances and trigger a function to process them, with an incentive.
The caller can follow these steps to complete the process:
Identify the size of opportunity - call the
[read] availableTokens()
function to learn how many tokens are available to process.Read the reward percentage - call the
[read] rewardsPPM()
function to learn what is the reward percentage and thresholdExecute the transaction - call the
[write] execute()
function to receive caller rewards
Trigger Trade() to interact with an active dutch auction
The Carbon Vortex offers tokens up for sale in a gradually descending price discovery flow known as Dutch auction. Any caller can identify and take opportunities when they occur.
Identify the available amount of tokens for sale by calling the
[read]amountAvailableForTrading
functionIdentify the current price by calling any of the following functions
[read] expectedTradeInput, expectedTradeReturn, tokenPrice
Execute the trade by calling the
trade
function
Last updated