
Dashboard
Markets
Stake
Governance
Transparency
More
Connect
Connect
Details
HarryGasWallet
Forum Post: https://forum.inverse.finance/t/update-the-inv-price-feed-2/628
This proposal updates the INV/USD price feed used by FiRM and Frontier to:
ChainlinkCurve2CoinsFeed with a new DynamicFeeCurveFeed that explicitly accounts for the Curve pool’s trading fee.The goal is for FiRM and Frontier to use a price that reflects INV’s net-of-fee executable value in our main liquidity pool.
price_oracle()).To keep the oracle aligned with where INV trades and make pricing slightly more conservative, we introduce a dynamic-fee-aware variant.
The new oracle contract, DynamicFeeCurveFeed, keeps the same basic structure:
IChainlinkBasePriceFeed for WETH → USD (18 decimals).price_oracle() (EMA of the INV/WETH rate), andfee() (dynamic pool fee, 1e10 precision).Price calculation (simplified):
pairedTokenToUsdPrice (WETH/USD) from Chainlink.crvOraclePrice from curvePool.price_oracle(), which is WETH/INVfee = curvePool.fee(), clamp it to maxFee (initially 2%, equal to the pools maximum fee).usdPrice = usdPrice * (1 - fee).This makes the oracle reflect a post-fee price, bounded by a governance-controlled maxFee (0–100%).
The contract also includes a simple gov / pendingGov pattern and a setMaxFee(int _maxFee) function restricted to gov.
Members allowed to make Drafts can sign the fact that they reviewed the Draft Proposal
Loading...
Subscribe to Our Newsletter
Join thousands of subscribers in receiving weekly updates about Inverse products, partnerships, and early-bird news shared only with subscribers!