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

feat: release v1 #8

Merged
merged 4 commits into from
Feb 23, 2024
Merged

feat: release v1 #8

merged 4 commits into from
Feb 23, 2024

Conversation

gas1cent
Copy link
Member

No description provided.

dristpunk and others added 4 commits January 4, 2024 19:26
…ch (#5)

According to [Connext
Forum](https://forum.connext.network/t/rfc-partnership-token-agreements/938),
the agreement that Wonderland, Veil and Bootload (other partners have),
unlocks at the same time, for every partner, one year after launch, a
date that we all know (sept 5th 2023), and have the same 1/13ths
schedule.

So, inputting `startTime` at constructor makes no logic, since that's
sth that can be shared accross all partners, this PR aims to reduce that
unnecessary constructor argument.

In the process of crafting this PR, a test failed hinting me that we
missed a big issue, we need to use Llamapay V2. Luckily, this means no
contract changes, and only to the test suite, but because of this test,
we've realized that we almost failed BIG time.

Pushing this PoC with some TODOs in the codebase, the constructor args
are gonna be only beneficiary and amount (only thing that differs
between partners), and in the testing suite, we need to be using
LlamaPay v2.

Let's do this approach:
- import the Deploy script in the Integration tests
- generically test `ConnextVestingWallet` using portions of
`TOTAL_AMOUNT()` (and not precise numbers)
- specify test `LlamaVesting` showing the expected limiting behaviours:
    - launch date
    - launch + 1yr - 1
    - launch + 1yr (e.g. `assertEq(.., 1_920_000 ether)`)
    - launch + 1yr + 1mth
    - launch + 1yr + 1yr


![image](https://github.com/defi-wonderland/connext-vesting/assets/84595958/13d698a9-7c29-459b-9121-dd3f7d93d712)

The way to do this test is probably run it, see the failing
expectations, and input what's expected to receive in the tests, right?
like, too lazy to calc, but that's a good thing!! the fact that the dev
KNOWS and inputs the expected amount at each date, means that there are
no doubts about what's expected to happen, please declare those
expectations as `x ether` numbers (having a max delta of `1 ether`)

---------

Co-authored-by: Dristpunk <[email protected]>
Apply natspec-smells and fix missing natspec

---------

Co-authored-by: Gas <[email protected]>
@gas1cent gas1cent self-assigned this Feb 23, 2024
Copy link
Contributor

@dristpunk dristpunk left a comment

Choose a reason for hiding this comment

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

legit

Copy link
Member

@wei3erHase wei3erHase left a comment

Choose a reason for hiding this comment

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

👍

@0xGorilla 0xGorilla merged commit a21e8a0 into main Feb 23, 2024
3 checks passed
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.

4 participants