This contract is a lockup facility template. Creators who has tokens should deploy this contract from Facility-Factory. Creators make claim lists into this contract, and specify a lockup period so users in lists can get tokens periodicly.
Contents
owner_id
: The owner of this contract, which is creator that determined by Facility-Factory.tokens
: Registered tokens, contains tasks and balance for every token.
Initial function is called by Facility-Factory when this contract is deployed.
Creator should specify token, claim list, start time, close time, vesting period and amount. Time related arguments should be in nanosecond timestamp.
Claim acion checks if a user is in a given task, and check if there's any amount of token to be claimed. Then after claim, the task records the timestamp that user claims.