Balancing Curves
Last updated
Last updated
Balancing Curves, as outlined in BIP-0007, introduce a dynamic mechanism within BabelFish's ecosystem to achieve and sustain optimal equilibrium in the allocation of stablecoins within the aggregator. This dynamic system steers the aggregator towards balance by strategical incentivization and penalization of user actions, creating a responsive and equitable decentralized finance (DeFi) platform at the core of BabelFish's operations.
A formula is derived to provide an incentive which depends on the balance of the basket before and after a given transaction, in such a way that the incentive is positive for deposit operations that bring the stablecoins closer to their target weights and negative for withdrawal operations that bring stablecoins further from their target weights.
Given:
And:
We define as a measure of the basketβs distance from optimality:
With weights and target weights in , is also in . We calculate an asymptotic function:
Where is a constant used to calibrate the formula to be as shallow or as steep as desired. We calculate the difference between before and after the transaction:
In the case where a withdrawal has a positive reward, or a deposit a negative reward, $R$ is set to 0. Negative rewards are removed in XUSD from a userβs withdrawal prior to conversion to the required stablecoin and kept in a vault. Positive rewards are paid from the vault and added to the userβs minted XUSD after conversion.
Aggregator:
The Aggregator is like the control center, combining stablecoins from different blockchains into a meta-stablecoin called XUSD.
Conversion Fees:
Conversion Fees are charges users encounter when withdrawing stablecoins. They serve as imbalance fees and act as a corrective tool, nudging the Aggregator back to its optimal balance. It's prupose is discouraging deviations from the target weight. It's worth noting that Conversion Fees aren't applied for withdrawals of stablecoins exceeding the target weight, creating a nuanced approach to incentivize smart withdrawals.
Reward Manager Smart Contract:
At the heart of Balancing Curves, the Reward Manager Smart Contract collects Conversion Fees. It then uses these fees as incentives for users who deposit stablecoins below their target allocation, creating a give-and-take mechanism.
Dynamic Adjustment:
The system is dynamic, adjusting rewards and fees based on how close stablecoin pools are to their target weights. This ensures a responsive and fair mechanism.
According to the BIP-0011, BabelFish Multisig signers have set following parameters:
Native Rootstock stablecoins:
DLLR: 40%
DOC: 0.5%
RDOC: 0% (deposits paused)
Stablecoin bridged and used in Rootstock ecosystem:
rUSDT: 5%
BNB Smart Chain aggregated stablecoins:
USDTbs: 18%
DAIbs: 6%
USDCbs: 7.5%
Ethereum aggregated stablecoins:
USDTes: 10%
DAIes: 6%
USDCes: 7%
Max Reward: 2.5%
Max Penalty: 10%
Reward and Penalty slippage: 2.5%
Factor = 2500000