References
- bLUNA-LUNA Special Stableswap Implementation
- Lockdrop Contract Upgrade to Allow for bLUNA Reward Claims
- Proposal: Pay bLuna’s UST yield to liquidity providers rather than having it sit unclaimed
Summary
Upgrade the bLUNA-LUNA stableswap pool so that bLUNA rewards can be claimed by LPs.
Abstract
Add new functionality in the bLUNA-LUNA stableswap pool that allows LPs to claim bLUNA rewards pro-rata to the size of their LP position.
Motivation
As mentioned in this forum discussion, “if you hold bLUNA in your wallet, you earn about 8%-10% APR in UST every year, which has to be manually claimed on the Anchor website. If you supply your bLUNA to the bLUNA-LUNA LP in Astroport, that UST is sitting around unclaimed.”.
This proposal aims to solve the problem of having bLUNA rewards stuck in the Astroport pool. The new pool implementation linked in the sections below allows bLUNA-LUNA Astroport LPs to claim bLUNA rewards pro-rata to the size of their LP position. It is also worth noting that bLUNA-LUNA lockdrop participants as well as LPs that stake their bLUNA-LUNA LP tokens in the Generator contract will also be able to claim bLUNA rewards.
Lastly, bLUNA rewards that already accrued in the Astroport pool will become claimable once the bLUNA-LUNA pool is upgraded. A caveat is that only LPs that are in the pool at the moment of the upgrade will become eligible to claim the already accrued bLUNA rewards. While this is not ideal, it is still a better option than letting currently accrued rewards stay stuck in the Astroport pool.
Specification
Proposed Code
The proposed code for the bLUNA-LUNA stableswap where LPs can claim bLUNA rewards can be found here. Moreover, a new version of the lockdrop contract that will allow bLUNA-LUNA lockdrop participants to claim bLUNA rewards can be found here.
Test Cases
Test cases for the new bLUNA-LUNA pool implementation can be found here. Test cases for the new lockdrop contract version can be found here.
Security Considerations
The main risk associated with upgrading bLUNA-LUNA is the significant amount of funds that are currently in the pool and that may be stuck or drained in the case where the new pool implementation has a major bug. For this reason, the new bLUNA-LUNA implementation has to be thoroughly audited.
Another major risk is associated with upgrading the lockdrop contract so that bLUNA-LUNA lockdrop participants can also claim bLUNA rewards. A large portion of the Astroport TVL is currently held by lockdrop participants and a bug in the lockdrop contract can leave all these funds stuck in the protocol.
Auditor Information and Report
Audits for this new bLUNA-LUNA stableswap pool as well as for the latest lockdrop contract version are scheduled for the second half of March 2022.
Licensing
GNU General Public License v3.0