0 txs
0 calls
constructor
constructor(address carrot, address initialOwner)
functions
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
approve
purefunction approve(address, uint256) pure returns (bool)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
CARROT
viewfunction CARROT() view returns (address)
decimals
viewfunction decimals() view returns (uint8)
isUnstakingAllowed
viewfunction isUnstakingAllowed() view returns (bool)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
pendingOwner
viewfunction pendingOwner() view returns (address)
symbol
viewfunction symbol() view returns (string)
totalSupply
viewfunction totalSupply() view returns (uint256)
transfer
purefunction transfer(address, uint256) pure returns (bool)
transferFrom
purefunction transferFrom(address, address, uint256) pure returns (bool)
UNSTAKING_OPEN_TIMESTAMP
viewfunction UNSTAKING_OPEN_TIMESTAMP() view returns (uint256)
acceptOwnership
nonpayablefunction acceptOwnership()
allowUnstake
nonpayablefunction allowUnstake()
renounceOwnership
nonpayablefunction renounceOwnership()
stake
nonpayablefunction stake(uint256 amount)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unstake
nonpayablefunction unstake(uint256 amount, address recipient)
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
Staked
event Staked(address indexed staker, uint256 amount)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
Unstaked
event Unstaked(address indexed staker, address indexed recipient, uint256 amount)
UnstakingAllowed
event UnstakingAllowed(bool allowed)
errors
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
InvalidAddress
error InvalidAddress()
MethodNotAllowed
error MethodNotAllowed()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
UnauthorizedUnstakeEnable
error UnauthorizedUnstakeEnable()
UnstakingNotAllowed
error UnstakingNotAllowed()
creation bytecode
0x60a060405234801561000f575f5ffd5b50604051610e07380380610e0783398101604081905261002e9161018c565b806040518060400160405280600d81526020016c14dd185ad9590810d85c9c9bdd609a1b815250604051806040016040528060078152602001661cd0d0549493d560ca1b81525081600390816100849190610255565b5060046100918282610255565b5050506001600160a01b0381166100c157604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100ca81610104565b506001600160a01b0382166100f25760405163e6c4247b60e01b815260040160405180910390fd5b506001600160a01b031660805261030f565b600680546001600160a01b031916905561011d81610120565b50565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b0381168114610187575f5ffd5b919050565b5f5f6040838503121561019d575f5ffd5b6101a683610171565b91506101b460208401610171565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806101e557607f821691505b60208210810361020357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561025057805f5260205f20601f840160051c8101602085101561022e5750805b601f840160051c820191505b8181101561024d575f815560010161023a565b50505b505050565b81516001600160401b0381111561026e5761026e6101bd565b6102828161027c84546101d1565b84610209565b6020601f8211600181146102b4575f831561029d5750848201515b5f19600385901b1c1916600184901b17845561024d565b5f84815260208120601f198516915b828110156102e357878501518255602094850194600190920191016102c3565b508482101561030057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b608051610ad26103355f395f818161024c0152818161040d01526104ed0152610ad25ff3fe608060405234801561000f575f5ffd5b5060043610610127575f3560e01c80638da5cb5b116100a9578063ccc3aeec1161006e578063ccc3aeec14610247578063dd62ed3e1461026e578063de190da414610281578063e30c397814610289578063f2fde38b1461029a575f5ffd5b80638da5cb5b146101f357806395d89b4114610218578063a694fc3a14610220578063a9059cbb14610149578063b8d0f07c14610233575f5ffd5b806370a08231116100ef57806370a082311461019b578063715018a6146101c357806376330ea5146101cd57806379ba5097146101d85780638381e182146101e0575f5ffd5b806306fdde031461012b578063095ea7b31461014957806318160ddd1461016c57806323b872dd1461017e578063313ce5671461018c575b5f5ffd5b6101336102ad565b60405161014091906108eb565b60405180910390f35b61015c61015736600461093b565b61033d565b6040519015158152602001610140565b6002545b604051908152602001610140565b61015c610157366004610963565b60405160128152602001610140565b6101706101a936600461099d565b6001600160a01b03165f9081526020819052604090205490565b6101cb610357565b005b6101706368058a8081565b6101cb61036a565b6101cb6101ee3660046109bd565b6103b3565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610140565b6101336104bc565b6101cb61022e3660046109e7565b6104cb565b60065461015c90600160a01b900460ff1681565b6102007f000000000000000000000000000000000000000000000000000000000000000081565b61017061027c3660046109fe565b6105a2565b6101cb6105ce565b6006546001600160a01b0316610200565b6101cb6102a836600461099d565b610651565b6060600380546102bc90610a26565b80601f01602080910402602001604051908101604052809291908181526020018280546102e890610a26565b80156103335780601f1061030a57610100808354040283529160200191610333565b820191905f5260205f20905b81548152906001019060200180831161031657829003601f168201915b5050505050905090565b5f6040516341f8b8eb60e11b815260040160405180910390fd5b61035f6106c2565b6103685f6106ef565b565b60065433906001600160a01b031681146103a75760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6103b0816106ef565b50565b600654600160a01b900460ff166103dd57604051630d4cda0760e21b815260040160405180910390fd5b6103e73383610708565b60405163a9059cbb60e01b81526001600160a01b038281166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303815f875af1158015610453573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104779190610a5e565b506040518281526001600160a01b0382169033907fd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e39060200160405180910390a35050565b6060600480546102bc90610a26565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303815f875af115801561053b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055f9190610a5e565b5061056a3382610740565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a250565b6001600160a01b038083165f908152600160209081526040808320938516835292905220545b92915050565b6005546001600160a01b03163314806105eb57506368058a804210155b6106085760405163634ad4f760e01b815260040160405180910390fd5b6006805460ff60a01b1916600160a01b179055604051600181527f0388fcc74d67c9b5bc7e52a8f25d2a79ce47b3a13ab01d3f635b5df5d80691009060200160405180910390a1565b6106596106c2565b600680546001600160a01b0383166001600160a01b0319909116811790915561068a6005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6005546001600160a01b031633146103685760405163118cdaa760e01b815233600482015260240161039e565b600680546001600160a01b03191690556103b081610774565b6001600160a01b03821661073157604051634b637e8f60e11b81525f600482015260240161039e565b61073c825f836107c5565b5050565b6001600160a01b0382166107695760405163ec442f0560e01b81525f600482015260240161039e565b61073c5f83836107c5565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0383166107ef578060025f8282546107e49190610a7d565b9091555061085f9050565b6001600160a01b0383165f90815260208190526040902054818110156108415760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161039e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661087b57600280548290039055610899565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516108de91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610936575f5ffd5b919050565b5f5f6040838503121561094c575f5ffd5b61095583610920565b946020939093013593505050565b5f5f5f60608486031215610975575f5ffd5b61097e84610920565b925061098c60208501610920565b929592945050506040919091013590565b5f602082840312156109ad575f5ffd5b6109b682610920565b9392505050565b5f5f604083850312156109ce575f5ffd5b823591506109de60208401610920565b90509250929050565b5f602082840312156109f7575f5ffd5b5035919050565b5f5f60408385031215610a0f575f5ffd5b610a1883610920565b91506109de60208401610920565b600181811c90821680610a3a57607f821691505b602082108103610a5857634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610a6e575f5ffd5b815180151581146109b6575f5ffd5b808201808211156105c857634e487b7160e01b5f52601160045260245ffdfea2646970667358221220ce709745bbabecdc9bf897f285135d6876ddabbfd2d93e2f8a9531a5a84c0fdb64736f6c634300081c0033000000000000000000000000282a69142bac47855c3fbe1693fcc4ba3b4d5ed6000000000000000000000000e06a1ad7346dfda7ce9bcfba751dabfd754bafad