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

Too many allocation failures when starting a simulation #76

Open
darosior opened this issue Oct 1, 2021 · 3 comments
Open

Too many allocation failures when starting a simulation #76

darosior opened this issue Oct 1, 2021 · 3 comments
Assignees

Comments

@darosior
Copy link
Member

darosior commented Oct 1, 2021

With any parameter the simulation will have a lot of allocation failures at the beginning because of the (artificially) high fees around block 350k.

We should investigate why, as our refill should cover for those fees and it apparently does not. It may uncover a bug in the refill computation.

@JSwambo
Copy link
Member

JSwambo commented Oct 5, 2021

Using #75 I set up with DELEGATE_RATE=7 and UNVAULT_RATE=5 and with_fixed_scale=False to simulate an increasing capital requirement for the WT. This results in consistent delegation failures throughout the entire simulation, rather than just in the beginning, and confirms my hypothesis that delegation failures is correlated with increasing capital requirement.

A factor that significantly reduces the delegation failure rate is the REFILL_EXCESS. We can play around with this for different operating parameters to find something reasonable per-deployment.

@JSwambo
Copy link
Member

JSwambo commented Oct 6, 2021

Also, a shorter REFILL_PERIOD significantly reduces delegation failure rate.

@darosior
Copy link
Member Author

Then it's probably related to a bug in how we compute the refill amount. Maybe #86 is related.

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

No branches or pull requests

2 participants