⚖️Reserve Auctions
Overview
Moonwell Reserve Auctions is an automated onchain system that facilitates the exchange of reserve tokens for WELL tokens. The system offers a unique opportunity for searchers to bid and sell WELL tokens at a discounted rate.
Auction Structure
Structure
Total Duration: Each auction cycle lasts 2 weeks
Mini-Auction Periods: Divided into 56 separate 6-hour mini-auctions
Market Separation: Each market has its own dedicated auction contract
Dynamic Pricing System
Starting Price: Each 6-hour mini-auction begins with a premium above market price
Price Decay: The premium declines linearly throughout the period
Ending Price: By the end of each mini-auction, price reaches maximum discount
Key Parameters:
startingPremium
: Initial premium rate (>100%, represented as >1e18)maxDiscount
: Maximum discount reached (<100%, represented as <1e18)
Participation Guide
1. Monitoring Auction Opportunities
How to check for active auctions:
Query the
saleStartTime
andsaleWindow
in the ReserveAutomation contractUse
getCurrentPeriodStartTime()
to identify the current mini-auction periodCheck available reserves with
getCurrentPeriodRemainingReserves()
Best time to participate:
Early in the period: Higher reserve availability but lower discount
Later in the period: Better discount but risk of depleted reserves
2. Preparing to Bid
Before bidding, calculate the expected output:
Use
getAmountOut(uint256 amountWellIn)
to calculate how many reserve tokens you'll receive for a given WELL amountPrices are determined using Chainlink price feeds for both WELL and the reserve asset
3. Placing a Bid
Ensure you have sufficient WELL tokens in your wallet
Approve the ReserveAutomation contract to spend your WELL tokens
Call
getReserves(uint256, uint256)
with your desired WELL amount and the expected reserve amountReserve tokens are transferred immediately after the transaction succeeds
4. Best Practices
Monitor Chainlink price feeds to identify optimal bidding opportunities
Check remaining reserves in the current period before bidding
Be aware of the current discount rate based on time elapsed
Ensure you have sufficient WELL tokens before bidding
Technical Details
Price Calculation Workflow
Oracle Price Retrieval:
System fetches normalized prices (18 decimals) from Chainlink oracles for both WELL and reserve assets
Calculate Current Discount Rate:
Calculate Final Amount:
Contract Addresses
Base
OP Mainnet
Frequently Asked Questions
Last updated