A modified version of Yearn Vesting Escrow contracts with added functionality:
- Only
admin
ofVestingEscrowFactory
can create new vesting escrows. VestingEscrowFactory
keeps track of all the created escrows for the beneficiary.VestingEscrowFactory
has abalanceOf
function for retrieving the total number of unclaimed tokens of the beneficiary. The retrieved amount can be used for counting user's locked tokens as an additional voting power.
VestingEscrowFactory
: Factory to deploy many simplified vesting contractsVestingEscrowSimple
: Simplified vesting contract that holds tokens for a single beneficiary
$ brownie console --network mainnet
funder = accounts.load(name)
factory = VestingEscrowFactory.at('<factory address>', owner=funder)
factory.deploy_vesting_contract(token, recipient, amount, vesting_duration, vesting_start, cliff_length)