Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Add vesting contract and tests #65

Closed
wants to merge 1 commit into from
Closed

Conversation

antisaa
Copy link
Contributor

@antisaa antisaa commented May 17, 2024

Description

Forked Radiant's TokenVesting, added penalty slash and replaced minter with simple token transfer. https://github.com/radiant-capital/radiant-protocol/blob/main/contracts/staking/TokenVesting.sol

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)

Fixes

Related pull request(s)

assertEq(tokenVesting.getVestingAmount(bob), 300);
}

function testFail_nonOwnerSettingVestingAmounts() public {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can do this as a fuzz test actually: https://book.getfoundry.sh/forge/fuzz-testing

@antisaa antisaa closed this May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants