0 txs
1.1k calls
constructor
constructor()
functions
available
viewfunction available(address account) view returns (uint256)
deployer
viewfunction deployer() view returns (address)
distributed
viewfunction distributed(address account) view returns (uint256)
endDate
viewfunction endDate() view returns (uint256)
info
viewfunction info(address account) view returns (uint256 allocation_, uint256 released_, uint256 distributed_)
lastVestingUpgrade
viewfunction lastVestingUpgrade() view returns (uint256)
owner
viewfunction owner() view returns (address)
pendingOwner
viewfunction pendingOwner() view returns (address)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
released
viewfunction released() view returns (uint256)
released
viewfunction released(address account) view returns (uint256)
releasedRange
viewfunction releasedRange(uint256, uint256) view returns (uint256)
rewardPerSecond
viewfunction rewardPerSecond() view returns (uint256)
startDate
viewfunction startDate() view returns (uint256)
token
viewfunction token() view returns (address)
totalAmount
viewfunction totalAmount() view returns (uint256)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
acceptOwnership
nonpayablefunction acceptOwnership()
addAccount
nonpayablefunction addAccount(address account, uint256[] allocations)
distribute
nonpayablefunction distribute(address receiver, uint256 amount)
initialize
nonpayablefunction initialize(address owner_, address token_, uint256 totalAmount_, uint256 startDate_, uint256 endDate_)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateAllocation
nonpayablefunction updateAllocation(uint256[] allocations)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
upgradeVestingByEndDate
nonpayablefunction upgradeVestingByEndDate(uint256 newEndDate_)
upgradeVestingByRewardPerSecond
nonpayablefunction upgradeVestingByRewardPerSecond(uint256 newRewardPerSecond_)
events
Distribute
event Distribute(address indexed account, uint256 amount)
InitDistributionVaultUpgradeable
event InitDistributionVaultUpgradeable(address token)
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
UpdateAllocation
event UpdateAllocation(address indexed account, uint256 allocation)
Upgraded
event Upgraded(address indexed implementation)
UpgradeVesting
event UpgradeVesting(uint256 newEndDate, uint256 newRewardPerSecond)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
FailedInnerCall
error FailedInnerCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a0604052306080523480156200001557600080fd5b506200002062000044565b6200002a62000044565b6200003462000044565b6200003e62000044565b620000f8565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000955760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000f55780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516118d56200012260003960008181610cda01528181610d030152610e4401526118d56000f3fe60806040526004361061019c5760003560e01c806379ba5097116100ec578063c24a0f8b1161008a578063e30c397811610064578063e30c3978146104bb578063f2fde38b146104d0578063fb932108146104f0578063fc0c546a1461051057600080fd5b8063c24a0f8b14610466578063d13f90b41461047b578063d5f394881461049b57600080fd5b80638f10369a116100c65780638f10369a146103de57806396132521146103f35780639852595c14610408578063ad3cb1cc1461042857600080fd5b806379ba50971461037c5780638b9d1375146103915780638da5cb5b146103b157600080fd5b806337cb9e6711610159578063578bcf3511610133578063578bcf35146102fc5780635f4f7153146103325780636867aac514610347578063715018a61461036757600080fd5b806337cb9e67146102b45780634f1ef286146102d457806352d1902d146102e757600080fd5b80630aae7a6b146101a15780630b97bc861461021e57806310098ad51461023d5780631a39d8ef1461025d5780632aa7184a146102725780632c37d37014610294575b600080fd5b3480156101ad57600080fd5b506101fe6101bc3660046114c9565b6001600160a01b031660008181526065602090815260408083208151808301835281548082526001928301549185018290529585529252909120549192909190565b604080519384526020840192909252908201526060015b60405180910390f35b34801561022a57600080fd5b506033545b604051908152602001610215565b34801561024957600080fd5b5061022f6102583660046114c9565b61052e565b34801561026957600080fd5b5060325461022f565b34801561027e57600080fd5b5061029261028d3660046114e4565b61053f565b005b3480156102a057600080fd5b506102926102af3660046114e4565b61060a565b3480156102c057600080fd5b506102926102cf366004611549565b610710565b6102926102e23660046115a1565b610726565b3480156102f357600080fd5b5061022f610741565b34801561030857600080fd5b5061022f6103173660046114c9565b6001600160a01b031660009081526001602052604090205490565b34801561033e57600080fd5b5060365461022f565b34801561035357600080fd5b5061022f610362366004611663565b61075e565b34801561037357600080fd5b50610292610770565b34801561038857600080fd5b50610292610784565b34801561039d57600080fd5b506102926103ac366004611685565b6107cc565b3480156103bd57600080fd5b506103c66107e4565b6040516001600160a01b039091168152602001610215565b3480156103ea57600080fd5b5060355461022f565b3480156103ff57600080fd5b5061022f610819565b34801561041457600080fd5b5061022f6104233660046114c9565b610835565b34801561043457600080fd5b50610459604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161021591906116fc565b34801561047257600080fd5b5060345461022f565b34801561048757600080fd5b5061029261049636600461172f565b610840565b3480156104a757600080fd5b506096546103c6906001600160a01b031681565b3480156104c757600080fd5b506103c6610982565b3480156104dc57600080fd5b506102926104eb3660046114c9565b6109ab565b3480156104fc57600080fd5b5061029261050b36600461177c565b610a30565b34801561051c57600080fd5b506000546001600160a01b03166103c6565b600061053982610a8d565b92915050565b4281116105845760405162461bcd60e51b815260206004820152600e60248201526d696e76616c6964456e644461746560901b60448201526064015b60405180910390fd5b61058c610ab9565b610594610ac1565b60006037546032546105a691906117bc565b905060006105b442846117bc565b6105be90836117cf565b6035819055603484905560408051858152602081018390529192507f119c6a7644a5e23a68f1ae5864ffae553f2bb1ec24b4058930f62086e69db43491015b60405180910390a1505050565b600081116106535760405162461bcd60e51b81526020600482015260166024820152751a5b9d985b1a5914995dd85c9914195c94d958dbdb9960521b604482015260640161057b565b61065b610ab9565b610663610ac1565b600060375460325461067591906117bc565b9050808211156106b75760405162461bcd60e51b815260206004820152600d60248201526c70656e64696e67546f6f4c6f7760981b604482015260640161057b565b60006106c383836117cf565b6106cd90426117f1565b6035849055603481905560408051828152602081018690529192507f119c6a7644a5e23a68f1ae5864ffae553f2bb1ec24b4058930f62086e69db43491016105fd565b610718610ad2565b6107228282610b45565b5050565b61072e610ccf565b61073782610d74565b6107228282610d7c565b600061074b610e39565b5060008051602061188083398151915290565b600061076960355490565b9392505050565b610778610e82565b6107826000610eb4565b565b338061078e610982565b6001600160a01b0316146107c05760405163118cdaa760e01b81526001600160a01b038216600482015260240161057b565b6107c981610eb4565b50565b6107d4610ad2565b6107df838383610eec565b505050565b6000807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6000610823610f41565b60375461083091906117f1565b905090565b600061053982610f85565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156108865750825b905060008267ffffffffffffffff1660011480156108a35750303b155b9050811580156108b1575080155b156108cf5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156108f957845460ff60401b1916600160401b1785555b61090589898989610ff1565b61090e8a611015565b610916611026565b61091e611026565b609680546001600160a01b03191633179055831561097657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b6000807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00610809565b6109b3610e82565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b03831690811782556109f76107e4565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b33610a3a81610a8d565b821115610a825760405162461bcd60e51b8152602060048201526016602482015275616d6f756e7445786365656473417661696c61626c6560501b604482015260640161057b565b6107df81848461102e565b6001600160a01b038116600090815260016020526040812054610aaf83610f85565b61053991906117bc565b610782610e82565b610ac9610819565b60375542603655565b610ada6107e4565b6001600160a01b0316336001600160a01b03161480610b0357506096546001600160a01b031633145b6107825760405162461bcd60e51b815260206004820152601360248201527237b7363ca7bbb732b927b92232b83637bcb2b960691b604482015260640161057b565b606454600090815b81811015610c7057600060648281548110610b6a57610b6a611804565b6000918252602090912001546001600160a01b03169050610b8a81610f85565b6001600160a01b038216600090815260656020526040902060010155858583818110610bb857610bb8611804565b6001600160a01b03841660009081526065602090815260409091209102929092013590915550858583818110610bf057610bf0611804565b9050602002013584610c0291906117f1565b9350806001600160a01b03167f575db113df1f1e13b1df1ef4754e3e20f895deed50cdbbd9ab76c3eff78bdb05878785818110610c4157610c41611804565b90506020020135604051610c5791815260200190565b60405180910390a250610c698161181a565b9050610b4d565b508168056bc75e2d6310000014610cb85760405162461bcd60e51b815260206004820152600c60248201526b073756d4d75737442653130360a41b604482015260640161057b565b6033544210610cc957610cc9610ac1565b50505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610d5657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d4a600080516020611880833981519152546001600160a01b031690565b6001600160a01b031614155b156107825760405163703e46dd60e11b815260040160405180910390fd5b6107c9610e82565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610dd6575060408051601f3d908101601f19168201909252610dd391810190611833565b60015b610dfe57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161057b565b6000805160206118808339815191528114610e2f57604051632a87526960e21b81526004810182905260240161057b565b6107df83836110ba565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107825760405163703e46dd60e11b815260040160405180910390fd5b33610e8b6107e4565b6001600160a01b0316146107825760405163118cdaa760e01b815233600482015260240161057b565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b031916815561072282611110565b606480546001810182556000919091527f26700e13983fefbd9cf16da2ed70fa5c6798ac55062a4803121a869731e308d20180546001600160a01b0319166001600160a01b0385161790556107df8282610b45565b60006036544211610f525750600090565b6034544210610f6b5760375460325461083091906117bc565b603654610f7890426117bc565b603554610830919061184c565b6001600160a01b038116600090815260656020908152604080832081518083019092528054808352600190910154928201929092529068056bc75e2d6310000090610fce610f41565b610fd8919061184c565b610fe291906117cf565b816020015161076991906117f1565b610ff9611181565b611002846111ca565b61100d8383836111db565b610cc9611026565b61101d611181565b6107c9816111ee565b610782611181565b6001600160a01b038316600090815260016020526040812080548392906110569084906117f1565b9091555050600054611072906001600160a01b03168383611220565b826001600160a01b03167fc1d32ad5cca423e7dda2123dbf8c482f8e77d00b631c06e903a47f2cec1334df826040516110ad91815260200190565b60405180910390a2505050565b6110c382611298565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115611108576107df82826112fd565b610722611373565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661078257604051631afcd79f60e31b815260040160405180910390fd5b6111d2611181565b6107c981611392565b6111e3611181565b6107df8383836113ee565b6111f6611181565b6001600160a01b0381166107c057604051631e4fbdf760e01b81526000600482015260240161057b565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080610cc95760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b604482015260640161057b565b806001600160a01b03163b6000036112ce57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161057b565b60008051602061188083398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161131a9190611863565b600060405180830381855af49150503d8060008114611355576040519150601f19603f3d011682016040523d82523d6000602084013e61135a565b606091505b509150915061136a858383611428565b95945050505050565b34156107825760405163b398979f60e01b815260040160405180910390fd5b61139a611181565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527fca2461d31e00485b1c8eb7f0e3b7013d247e2007e230a4253c105247888cbcbe9060200160405180910390a150565b6113f6611181565b60328390556033829055603481905561140f82826117bc565b61141990846117cf565b60355550603655506000603755565b60608261143d5761143882611484565b610769565b815115801561145457506001600160a01b0384163b155b1561147d57604051639996b31560e01b81526001600160a01b038516600482015260240161057b565b5092915050565b8051156114945780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b03811681146114c457600080fd5b919050565b6000602082840312156114db57600080fd5b610769826114ad565b6000602082840312156114f657600080fd5b5035919050565b60008083601f84011261150f57600080fd5b50813567ffffffffffffffff81111561152757600080fd5b6020830191508360208260051b850101111561154257600080fd5b9250929050565b6000806020838503121561155c57600080fd5b823567ffffffffffffffff81111561157357600080fd5b61157f858286016114fd565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156115b457600080fd5b6115bd836114ad565b9150602083013567ffffffffffffffff808211156115da57600080fd5b818501915085601f8301126115ee57600080fd5b8135818111156116005761160061158b565b604051601f8201601f19908116603f011681019083821181831017156116285761162861158b565b8160405282815288602084870101111561164157600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121561167657600080fd5b50508035926020909101359150565b60008060006040848603121561169a57600080fd5b6116a3846114ad565b9250602084013567ffffffffffffffff8111156116bf57600080fd5b6116cb868287016114fd565b9497909650939450505050565b60005b838110156116f35781810151838201526020016116db565b50506000910152565b602081526000825180602084015261171b8160408501602087016116d8565b601f01601f19169190910160400192915050565b600080600080600060a0868803121561174757600080fd5b611750866114ad565b945061175e602087016114ad565b94979496505050506040830135926060810135926080909101359150565b6000806040838503121561178f57600080fd5b611798836114ad565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610539576105396117a6565b6000826117ec57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610539576105396117a6565b634e487b7160e01b600052603260045260246000fd5b60006001820161182c5761182c6117a6565b5060010190565b60006020828403121561184557600080fd5b5051919050565b8082028115828204841417610539576105396117a6565b600082516118758184602087016116d8565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a5ca2af19c570b00d81f49957f18465535eb91cdc6853c199619c9c92e4e408964736f6c63430008140033