5 txs
5 calls
constructor
constructor(address initialOwner)
functions
getSchedule
viewfunction getSchedule(uint256 id) view returns (tuple s)
nextId
viewfunction nextId() view returns (uint256)
owner
viewfunction owner() view returns (address)
releasable
viewfunction releasable(uint256 id, uint64 timepoint) view returns (uint256)
releasableNow
viewfunction releasableNow(uint256 id) view returns (uint256)
schedules
viewfunction schedules(uint256) view returns (address token, address beneficiary, uint128 total, uint128 released, uint64 start, uint32 cliff, uint32 duration, uint32 slice, bool revocable, bool revoked, uint64 stop)
vestedAmount
viewfunction vestedAmount(uint256 id, uint64 timepoint) view returns (uint256)
createImmediateAtTGE
nonpayablefunction createImmediateAtTGE(address token_, address beneficiary_, uint128 amount_, uint64 tgeTs_) returns (uint256)
createSchedule
nonpayablefunction createSchedule(address token, address beneficiary, uint128 total, uint64 start, uint32 cliff, uint32 duration, uint32 slice, bool revocable) returns (uint256 id)
release
nonpayablefunction release(uint256 id)
renounceOwnership
nonpayablefunction renounceOwnership()
rescueERC20
nonpayablefunction rescueERC20(address token, address to, uint256 amount)
rescueETH
nonpayablefunction rescueETH(address to, uint256 amount)
revoke
nonpayablefunction revoke(uint256 id, address refundTo)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Released
event Released(uint256 indexed id, address indexed to, uint256 amount)
Rescue
event Rescue(address indexed token, address indexed to, uint256 amount)
RescueETH
event RescueETH(address indexed to, uint256 amount)
Revoked
event Revoked(uint256 indexed id, uint256 vested, uint256 refunded, address refundTo)
ScheduleCreated
event ScheduleCreated(uint256 indexed id, address indexed token, address indexed beneficiary, uint128 total, uint64 start, uint32 cliff, uint32 duration, uint32 slice, bool revocable)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
BadParams
error BadParams()
FailedInnerCall
error FailedInnerCall()
NotExist
error NotExist()
NothingToRelease
error NothingToRelease()
NotRevocable
error NotRevocable()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
ZeroAddress
error ZeroAddress()
ZeroAmount
error ZeroAmount()
creation bytecode
0x60803460bc57601f61155738819003918201601f19168301916001600160401b0383118484101760c05780849260209460405283398101031260bc57516001600160a01b0381169081900360bc57801560a9575f80546001600160a01b031981168317825560405192916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001805561148290816100d58239f35b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080604052600436101561001a575b3615610018575f80fd5b005b5f803560e01c8063099a04e514610f655780631587a49f14610f3d57806320d154da14610d3657806337bdc99b14610c2157806345c5401114610bfb578063488ef1f8146108a15780635cfa10c81461087357806361b8ce8c14610856578063715018a6146107ff5780638da5cb5b146107d8578063b05a25e114610498578063b2118a8d146103f0578063bdc6d9ab14610320578063c5ca93a7146101525763f2fde38b146100ca575061000e565b3461014f57602036600319011261014f576100e3611018565b6100eb611228565b6001600160a01b0316801561013b5781546001600160a01b03198116821783556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b631e4fbdf760e01b82526004829052602482fd5b80fd5b503461014f57602036600319011261014f578060405161017181611086565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e0820152816101008201528161012082015261014001526004358152600360205260409020604051906101cc82611086565b600160a01b6001900381541691828152600160a01b600190036001830154166020820190815260028301549260408301906001600160801b0385168252606084019460801c85526003015493608084016001600160401b038616815260a08501908660401c63ffffffff16825260c08601928760601c63ffffffff16845260e08701948860801c63ffffffff1686526101008801968960a01c60ff16151588526101208901988a60a81c60ff1615158a52610140019960b01c6001600160401b03168a526040519a8b52600160a01b6001900390511660208b0152516001600160801b031660408a0152516001600160801b03166060890152516001600160401b031660808801525163ffffffff1660a08701525163ffffffff1660c08601525163ffffffff1660e0850152511515610100840152511515610120830152516001600160401b031661014082015261016090f35b503461014f57602036600319011261014f5760406101609160043581526003602052206001600160401b0360018060a01b038254169160018060a01b0360018201541690600360028201549101549160405194855260208501526001600160801b038116604085015260801c6060840152818116608084015263ffffffff8160401c1660a084015263ffffffff8160601c1660c084015263ffffffff8160801c1660e084015260ff8160a01c16151561010084015260ff8160a81c16151561012084015260b01c16610140820152f35b503461014f57606036600319011261014f5761040a611018565b61041261102e565b6044359161041e611228565b6001600160a01b03169081158015610487575b61047857602081610464857fe01920728668d89f092ef9cb92036bad90964bb622eec508d2c3ffe1d582efb29486611338565b6040519485526001600160a01b031693a380f35b63d92e233d60e01b8452600484fd5b506001600160a01b03811615610431565b346107d45760803660031901126107d4576104b1611018565b6104b961102e565b6104c1611070565b6104c961105a565b6104d1611228565b6001600160401b035f19911601926001600160401b038411610791576104f5611228565b6001600160a01b031690811580156107c3575b6107b4576001600160801b03169283156107a5576002545f19811461079157600101938491826002556040519061053e82611086565b8482526020820195600160a01b600190031695868152604083019284845260608101905f825260808101936001600160401b03169485855260a08201916001835260c081016001815260e082019160018352610100810193600185526101208201965f88526101408301985f8a528d5f52600360205260405f2093600160a01b6001900390600160a01b60019003905116166001600160601b0360a01b855416178455600160a01b600190039051166001840190600160a01b60019003166001600160601b0360a01b8254161790556002830191516001600160801b03166001600160801b0319835416178255516001600160801b031661065391906001600160801b0382549181199060801b169116179055565b96516003979097018054945191519251935195516001600160b01b03199095166001600160401b039098169790971763ffffffff60401b60409290921b919091161760609190911b63ffffffff60601b161760809190911b63ffffffff60801b161791151560a01b60ff60a01b169190911790151560a81b60ff60a81b1617825551815467ffffffffffffffff60b01b191660b09190911b67ffffffffffffffff60b01b161790556040516323b872dd60e01b60208201523360248201523060448201526064808201849052815261072c6084826110b6565b610736908561137a565b604051918252602082015260408101600190526060810160019052608081016001905260a081016001905260c07f4d79defe9fc5918308ac5d121e89e3923ba182002793e1ba4dd101281a47470491a4604051908152602090f35b634e487b7160e01b5f52601160045260245ffd5b631f2a200560e01b5f5260045ffd5b63d92e233d60e01b5f5260045ffd5b506001600160a01b03831615610508565b5f80fd5b346107d4575f3660031901126107d4575f546040516001600160a01b039091168152602090f35b346107d4575f3660031901126107d457610817611228565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346107d4575f3660031901126107d4576020600254604051908152f35b346107d45760403660031901126107d4576020610899610891611044565b6004356111da565b604051908152f35b346107d4576101003660031901126107d4576108bb611018565b6108c361102e565b6108cb611070565b6108d361105a565b6084359363ffffffff85168095036107d45760a4359063ffffffff82168092036107d45760c4359063ffffffff8216928383036107d45760e435928315158094036107d457610920611228565b6001600160a01b039092169586158015610bea575b6107b4576001600160801b03169384156107a55781158015610be1575b610bd25715610bc9575b6002545f19811461079157600101978895866002556040519061097e82611086565b88825287602083019a600160a01b60019003169a8b815260408401938985528860608201985f8a5260808301956001600160401b03169687875260a084019389855260c08101918b835260e082019363ffffffff169c8d855261010083019586526101208301975f89526101408401995f8b525f52600360205260405f2093600160a01b6001900390600160a01b60019003905116166001600160601b0360a01b855416178455600160a01b600190039051166001840190600160a01b60019003166001600160601b0360a01b8254161790556002830191516001600160801b03166001600160801b0319835416178255516001600160801b0316610a9791906001600160801b0382549181199060801b169116179055565b96516003979097018054945191519251935195516001600160b01b03199095166001600160401b039098169790971763ffffffff60401b60409290921b919091161760609190911b63ffffffff60601b161760809190911b63ffffffff60801b161791151560a01b60ff60a01b169190911790151560a81b60ff60a81b1617825551815467ffffffffffffffff60b01b191660b09190911b67ffffffffffffffff60b01b161790556040516323b872dd60e01b602082015233602482015230604482015260648082018890528152610b706084826110b6565b610b7a908961137a565b604051958652602086015260408501526060840152608083015260a082015260c07f4d79defe9fc5918308ac5d121e89e3923ba182002793e1ba4dd101281a47470491a4604051908152602090f35b6001915061095c565b63019af63760e01b5f5260045ffd5b50818911610952565b506001600160a01b03881615610935565b346107d45760403660031901126107d4576020610899610c19611044565b600435611142565b346107d45760203660031901126107d457600435610c3d61124e565b5f8181526003602052604090206001810180549192916001600160a01b031615610d2757610c746001600160401b034216836111da565b928315610d18577f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce39291610d008583610ceb600260209601610cc26001600160801b038516825460801c611122565b81546001600160801b031660809190911b6fffffffffffffffffffffffffffffffff1916179055565b5483546001600160a01b039081169116611338565b546040519485526001600160a01b031693a360018055005b63b10205ed60e01b5f5260045ffd5b63ad5679e160e01b5f5260045ffd5b346107d45760403660031901126107d457600435610d5261102e565b610d5a611228565b610d6261124e565b6001600160a01b0381169081156107b4575f838152600360205260409020600181018054919390916001600160a01b031615610d2757600384019283549460ff8660a01c16158015610f30575b610f215768ffffffffffffffffff60a81b199095164260b081901b67ffffffffffffffff60b01b1691909117600160a81b179094557f424b52bc407b18c08831955a4ba3f2c44bec50ceb769a15dfdc6e58401adaf2d94606094610e1c906001600160401b03168261128c565b9360028201928354898160801c8089115f14610f0e57610e50896001600160801b03610e488483611115565b955b16611115565b96879584610e9b575b505050505081610e7e575b50505060405192835260208301526040820152a260018055005b9154610e9392906001600160a01b0316611338565b868181610e64565b610ed6602092610cc27f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce392956001600160801b03891690611122565b87548154610ef29187916001600160a01b039081169116611338565b546040519485526001600160a01b031693a38989818080610e59565b610e50896001600160801b035f95610e4a565b639414820d60e01b5f5260045ffd5b5060ff8660a81c16610daf565b346107d45760203660031901126107d45760206108996001600160401b0342166004356111da565b346107d45760403660031901126107d457610f7e611018565b602435610f89611228565b6001600160a01b0382169182156107b4575f80808481945af1610faa6110d7565b5015610fdd5760207f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da691604051908152a2005b60405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606490fd5b600435906001600160a01b03821682036107d457565b602435906001600160a01b03821682036107d457565b602435906001600160401b03821682036107d457565b606435906001600160401b03821682036107d457565b604435906001600160801b03821682036107d457565b61016081019081106001600160401b038211176110a257604052565b634e487b7160e01b5f52604160045260245ffd5b90601f801991011681019081106001600160401b038211176110a257604052565b3d15611110573d906001600160401b0382116110a25760405191611105601f8201601f1916602001846110b6565b82523d5f602084013e565b606090565b9190820391821161079157565b906001600160801b03809116911601906001600160801b03821161079157565b5f90815260036020526040902060018101546001600160a01b0316156111d45761119791600382015460ff8160a81c16806111bf575b806111a1575b1561119a576001600160401b03915060b01c169061128c565b90565b509061128c565b506001600160401b038160b01c166001600160401b0383161161117e565b506001600160401b038160b01c161515611178565b50505f90565b5f8181526003602052604090206001810154909291906001600160a01b0316156112215760029161120a91611142565b91015460801c808211156111d45761119791611115565b5050505f90565b5f546001600160a01b0316330361123b57565b63118cdaa760e01b5f523360045260245ffd5b60026001541461125f576002600155565b633ee5aeb560e01b5f5260045ffd5b8115611278570490565b634e487b7160e01b5f52601260045260245ffd5b906003820154906001600160401b038216906001600160401b038116926001600160401b0363ffffffff8260401c16840116841061132f5763ffffffff8160601c16936001600160401b0385850116111561131b5761119794926113106001600160801b03936001600160401b0363ffffffff60029560801c16938492031661126e565b02920154160261126e565b50505050600201546001600160801b031690565b50505050505f90565b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152611378916113736064836110b6565b61137a565b565b5f806113a29260018060a01b03169360208151910182865af161139b6110d7565b90836113ee565b80519081151591826113ca575b50506113b85750565b635274afe760e01b5f5260045260245ffd5b81925090602091810103126107d457602001518015908115036107d4575f806113af565b90611412575080511561140357805190602001fd5b630a12f52160e11b5f5260045ffd5b81511580611443575b611423575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b1561141b56fea2646970667358221220910dace3b215a57c617709b244aaf9ebce15dadd6488417d3296a4797feb567a64736f6c634300081a00330000000000000000000000004ef4f1514cbb140afd6a7476a7955132fb8839cb