Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIP-2 Internal dripper and protocol reserves #1203

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

DanielVF
Copy link
Member

@DanielVF DanielVF commented Dec 15, 2022

Smooths all yield out and adds a protocol reserve.

By smoothing we improve user experience, and provide hack resistance (since any false yield will be spread out over days, and unavailable in the same block)

Big Picture

image

The drip rate from the funds reserve is recalculated after every rebase. The rebase rate is based on dividing out the total held in the reserve by the drip duration.

Distribution amount

image

Fork Simulation

image

image

This implements issue #985

And since this is our first Vault Core change since finding this bug, we are adding in #1247.

@DanielVF DanielVF self-assigned this Dec 15, 2022
@DanielVF DanielVF marked this pull request as ready for review March 17, 2023 14:19
@DanielVF DanielVF requested a review from franckc as a code owner March 17, 2023 14:19
@DanielVF DanielVF changed the title OIP-2 [Draft] Internal dripper and protocol reserves OIP-2 Internal dripper and protocol reserves Mar 17, 2023
@DanielVF
Copy link
Member Author

0x4382bfabecb29d3f383e046050d643bb041284294484219ffc958f17250063fa

* Flipper N-14 Unused import

* Moving imports down to the lowest used level
* Flipper N-10 explicit visibilitiy

* Flipper N-12 typos
@DanielVF DanielVF added the contracts Works related to contracts label May 16, 2023
@sparrowDom
Copy link
Member

@DanielVF should I review this PR? Are we still thinking of deploying this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts Works related to contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants