-
Notifications
You must be signed in to change notification settings - Fork 49
Sov 3884 cleanup vestingregistry #540
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
base: development
Are you sure you want to change the base?
Conversation
add sip args add on-chain test
ran prettier
|
|
||
| event CSOVReImburse(address from, uint256 CSOVamount, uint256 reImburseAmount); | ||
| event CSOVTokensExchanged(address indexed caller, uint256 amount); | ||
| contract VestingRegistry is VestingRegistryStorage { |
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.
pls add natspec - clear description of the purpose of 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.
updated in this commit
tests/Locked/anyone.test.js
Outdated
| ); | ||
|
|
||
| vestingRegistry = await VestingRegistry.new(); | ||
| vesting = await VestingRegistryProxy.new(); |
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.
| vesting = await VestingRegistryProxy.new(); | |
| vestingRegistryProxy = await VestingRegistryProxy.new(); |
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.
updated in this commit
tests/Locked/event.test.js
Outdated
| creator // This should be Governance Timelock Contract. | ||
| ); | ||
| vestingRegistry = await VestingRegistry.new(); | ||
| vesting = await VestingRegistryProxy.new(); |
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.
| vesting = await VestingRegistryProxy.new(); | |
| vestingRegistryProxy = await VestingRegistryProxy.new(); |
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.
updated in this commit
tests/Locked/state.test.js
Outdated
| ); | ||
|
|
||
| vestingRegistry = await VestingRegistry.new(); | ||
| vesting = await VestingRegistryProxy.new(); |
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.
| vesting = await VestingRegistryProxy.new(); | |
| vestingRegistryProxy = await VestingRegistryProxy.new(); |
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.
updated in this commit
tests/staking/ExtendedStakingTest.js
Outdated
| // Upgradable Vesting Registry | ||
| vestingRegistryLogic = await VestingRegistryLogic.new(); | ||
| vestingRegistry = await VestingRegistry.new(); | ||
| vesting = await VestingRegistryProxy.new(); |
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.
| vesting = await VestingRegistryProxy.new(); | |
| vestingRegistryProxy = await VestingRegistryProxy.new(); |
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.
updated in this commit
tests/staking/PauseStaking.test.js
Outdated
| // Upgradable Vesting Registry | ||
| vestingRegistryLogic = await VestingRegistryLogic.new(); | ||
| vestingRegistry = await VestingRegistry.new(); | ||
| vesting = await VestingRegistryProxy.new(); |
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.
pls replace all the occurences in the tests for better readability
| vesting = await VestingRegistryProxy.new(); | |
| vestingRegistryProxy = await VestingRegistryProxy.new(); |
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.
updated in this commit
| import "../governance/Vesting/VestingRegistry.sol"; | ||
|
|
||
| contract VestingRegistryLogicMockup is VestingRegistryLogic { | ||
| contract VestingRegistryMockup is VestingRegistry { |
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.
pls also rename the contract file
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.
updated in this commit
tests/OriginInvestorsClaim.test.js
Outdated
| }); | ||
|
|
||
| it("should create vesting contract within vesting period", async () => { | ||
| it("should be able to sert investor initial amount list", async () => { |
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.
looks like a typo in the test description.
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.
also, the test does nothing, pls check the removed tests.
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.
Apparently, we need to update the OriginInvestorsClaim contract (because initially it was using cliff & duration from staking contract), meanwhile when trying to get the vesting, it's using the cliff & duration from lockedSOV
updated in this commit
tests/OriginInvestorsClaim.test.js
Outdated
| investorsClaim.claim({ from: investor1 }), | ||
| "OriginInvestorsClaim::onlyWhitelisted: not whitelisted or already claimed" | ||
| ); | ||
| it("investors should be able to claim", async () => { |
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 test was inverted - why?
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.
updated in this commit
No description provided.