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.
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).
- Copy the
.env.examplefile to.envand fill in the variables. - Install the dependencies by running
yarn install. In case there is an error with the commands, runfoundryupand try them again. - Run
yarn testto make sure everything is working.
# Deploys to mainnet
yarn deploy
# Deploys to Sepolia
yarn deploy:sepoliaThe primary license for the contracts is MIT, see LICENSE.
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.