-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: vesting and vault interface #18
Conversation
Co-authored-by: Murad <muradkarammaev@gmail.com>
…' into feat/vesting-and-vault-interface
Co-authored-by: Sergey R <serg.s.r@gmail.com>
@@ -0,0 +1,25 @@ | |||
[package] | |||
name = "vesting-lp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it vesting-lp? what does lp mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually lp stands for liquidity provider, but to be honest I don't see anything related to market making in this contract.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, make check_contracts
fails on this branch with a following error:
artifacts/vesting_lp.wasm: failure
Error compiling Wasm: Could not compile: WebAssembly translation error: Error in middleware Gatekeeper: Float operator detected: F32Load { memarg: MemoryImmediate { align: 2, offset: 0, memory: 0 } }. The use of floats is not supported.
…anager exists before add/remove him
* feat: added managed vesting #NTRN-409 * added tests for register_vesting_accounts() * more remove_vesting_accounts() tests, added a VestingState query * added cliff test cases, cargo fmt & cargo clippy * merged base, more clippy fixes * more cargo fmt * restore astroport contracts * 300 -> 400 * fixed #2 scenario comment (300 -> 400) * review fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rename the vesting-lp contract as we discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm in general but I made a really quick look. Hope I got the tests logic properly btw
assert_eq!(vesting_res, Uint128::new(0u128)); | ||
let max_unclaimed_user1: u128 = 200; | ||
let max_unclaimed_total: u128 = 1200; | ||
for i in 0..=10 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic with loops in tests looks a bit non-obvious to me… Like, I got to think to understand it. It's not a request for change though
Implemets the besing vesting contract with interface for VotingVault type contract.
The following things have been done during moving contract into new type:
Basic Vesting(
vesting-lp
) contract implementation in addition to parent type:UnclaimedAmountAtHeight
andUnclaimedTotalAmountAtHeight