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

VAULT: Require inital supply when creating vault #150

Merged
merged 16 commits into from
Dec 23, 2024

Conversation

coachchucksol
Copy link
Contributor

@coachchucksol coachchucksol commented Oct 25, 2024

We require an intial deposit of some amount of the supported token to create the vault - the resulting VRT is "burned" meaning the vault will always have some min supply

@coachchucksol coachchucksol marked this pull request as draft October 25, 2024 01:59
@coachchucksol coachchucksol marked this pull request as ready for review October 25, 2024 02:24
coachchucksol and others added 2 commits October 24, 2024 20:27
Take out slash.

I've opted for removal over no-op since we'll learn things as the
program goes live. Slash should be designed around that new information.
Rotates the operator index we start on based on epoch % num_operators.
Internally just tracks a counter from 0..num_operators and increments
that, converting to the expected index number in
check_and_update_index().

---------

Co-authored-by: Coach Chuck <[email protected]>
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 97.72727% with 8 lines in your changes missing coverage. Please review.

Project coverage is 79.97%. Comparing base (00eb1c8) to head (1d42507).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
vault_program/src/initialize_vault.rs 95.65% 4 Missing ⚠️
core/src/loader.rs 75.00% 2 Missing ⚠️
vault_program/src/mint_to.rs 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
+ Coverage   79.39%   79.97%   +0.57%     
==========================================
  Files          89       90       +1     
  Lines        9338     9688     +350     
==========================================
+ Hits         7414     7748     +334     
- Misses       1924     1940      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ebatsell ebatsell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

vault_program/src/initialize_vault.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@buffalu buffalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets actually get more eyes on this

rust-toolchain.toml Outdated Show resolved Hide resolved
@coachchucksol coachchucksol merged commit 2b0ef85 into master Dec 23, 2024
10 checks passed
@coachchucksol coachchucksol deleted the ck/frontrun-creation branch December 23, 2024 17:44
coachchucksol added a commit that referenced this pull request Dec 23, 2024
We require an intial deposit of some amount of the supported token to
create the vault - the resulting VRT is "burned" meaning the vault will
always have some min supply

---------

Co-authored-by: Evan B <[email protected]>
Co-authored-by: buffalu <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants