Levva Vault Liquidity Balancing
Learn how Levva Vault Liquidity Balancing is working.
General
Balancing
private const decimal DeviationPercentage = 0.05m; // if >= 5%, then rebalance
private static readonly Dictionary<LevvaVaultProtocolType, decimal> TotalLentTargetByProtocol = new()
{
{ LevvaVaultProtocolType.Marginly, 0.60m }, // 60% to Marginly pools
{ LevvaVaultProtocolType.Aave, 0.30m }, // 30% to Aave or...
{ LevvaVaultProtocolType.Etherfi, 0.30m } // ...30% to Etherfi
};
private static readonly Dictionary<HashSet<string>, HashSet<LevvaVaultProtocolType>> AllowedProtocolsBySymbols = new()
{
{ new HashSet<string> { "USDC", "WBTC" }, new HashSet<LevvaVaultProtocolType> { LevvaVaultProtocolType.Marginly, LevvaVaultProtocolType.Aave } },
{ new HashSet<string> { "WETH" }, new HashSet<LevvaVaultProtocolType> { LevvaVaultProtocolType.Marginly, LevvaVaultProtocolType.Etherfi } }
};Last updated