Skip to content

connext/connext-vesting

 
 

Repository files navigation

Connext Unlock Contract

The Unlock contract is meant to be used as a receiver of a Yearn Vesting Escrow. It allows the owner to unlock their vested tokens at a different rate than the vesting. The main goal of that would be to delay the unlocking of the tokens in case of an early cancellation of the vesting stream.

vesting and unlocking

Dependencies

This contract is designed to be integrated with Yearn's Vesting Escrow v0.3.0 contract, (audited). The ConnextVestingWallet contract is meant to be the receiver of the tokens that are being vested.

NOTE: This Vesting Escrow contract version is compatible with post-shangai EVM versions only (as it requires PUSH0 compatibility).

Setup

  1. Copy the .env.example file to .env and fill in the variables.
  2. Install the dependencies by running yarn install. In case there is an error with the commands, run foundryup and try them again.
  3. Run yarn test to make sure everything is working.

Deploy & verify

# Deploys to mainnet
yarn deploy

# Deploys to Sepolia
yarn deploy:sepolia

Licensing

The primary license for the contracts is MIT, see LICENSE.

Contributors

Built with ❤️ by Wonderland, a team of top Web3 researchers, developers, and operators who believe that the future needs to be open-source, permissionless, and decentralized.

DeFi sucks, but Wonderland is here to make it better.

About

Vesting contract for the NEXT token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 98.1%
  • JavaScript 1.2%
  • Shell 0.7%