XDC Price: $0.0269 (+0.41%)

Contract

0xD910E7E0dC457Ccd425E9a5cF716b0F6B7045549

Overview

XDC Balance

XDC LogoXDC LogoXDC Logo0 XDC

XDC Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading
Source Code Verified Exact Match

Contract Name

ReferralRewards

Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled
Yes with 100 runs
Other Settings
paris EvmVersion
License
-NA-
Contract Source Code (Solidity Standard Json-Input format)
Contract Security Audit
No Contract Security Audit SubmittedSubmit Audit Here
Contract ABI
API
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressZero","type":"error"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"EmptyRoot","type":"error"},{"inputs":[],"name":"InsufficientFunding","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"RootAlreadySet","type":"error"},{"inputs":[],"name":"RootNotSet","type":"error"},{"inputs":[],"name":"SweepExceedsSurplus","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"ZeroPayout","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"totalPayout","type":"uint256"}],"name":"EpochRootSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Funded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Swept","type":"event"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochs","outputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint256","name":"totalPayout","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint256","name":"totalPayout","type":"uint256"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalOutstanding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
608060405234801561001057600080fd5b50604051610b69380380610b6983398101604081905261002f916100c2565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61006781610072565b5050600180556100f2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d457600080fd5b81516001600160a01b03811681146100eb57600080fd5b9392505050565b610a68806101016000396000f3fe60806040526004361061007a5760003560e01c806316078d04146100bb5780636ea056a9146100e4578063715018a6146101065780638da5cb5b1461011b578063c6ab7b2e14610141578063c6b61e4c14610161578063cc3c0f06146101b7578063ea25e176146101f7578063f2fde38b1461021757600080fd5b366100b65760405134815233907f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5249060200160405180910390a2005b600080fd5b3480156100c757600080fd5b506100d160045481565b6040519081526020015b60405180910390f35b3480156100f057600080fd5b506101046100ff3660046108a5565b610237565b005b34801561011257600080fd5b50610104610360565b34801561012757600080fd5b506000546001600160a01b03166040516100db91906108d1565b34801561014d57600080fd5b5061010461015c3660046108e5565b610374565b34801561016d57600080fd5b5061019c61017c366004610911565b600260208190526000918252604090912080546001820154919092015483565b604080519384526020840192909252908201526060016100db565b3480156101c357600080fd5b506101e76101d2366004610911565b60036020526000908152604090205460ff1681565b60405190151581526020016100db565b34801561020357600080fd5b5061010461021236600461092a565b6104a6565b34801561022357600080fd5b506101046102323660046109bc565b610714565b61023f61075b565b610247610788565b6001600160a01b03821661026e57604051639fabe1c160e01b815260040160405180910390fd5b60045461027b90476109f6565b81111561029b57604051633c8d43e560e11b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146102e8576040519150601f19603f3d011682016040523d82523d6000602084013e6102ed565b606091505b505090508061030f576040516312171d8360e31b815260040160405180910390fd5b826001600160a01b03167fc36b5179cb9c303b200074996eab2b3473eac370fdd7eba3bec636fe351096968360405161034a91815260200190565b60405180910390a25061035c60018055565b5050565b61036861075b565b61037260006107b2565b565b61037c61075b565b8161039a576040516329e7276760e11b815260040160405180910390fd5b806000036103bb57604051635788801b60e11b815260040160405180910390fd5b600083815260026020526040902054156103e85760405163b466ddbf60e01b815260040160405180910390fd5b806004546103f69190610a09565b471015610416576040516357e000b160e01b815260040160405180910390fd5b60408051606081018252838152602080820184815260008385018181528882526002938490529481209351845590516001840155925191015560048054839290610461908490610a09565b9091555050604080518381526020810183905284917fb1e84f0e16ad503c316d64a7caf01a922416ce7b735d499cdd9134489483c85b910160405180910390a2505050565b6104ae610788565b600085815260026020526040902080546104db57604051631c8b625960e01b815260040160405180910390fd5b604080516020810188905290810186905233606082015260009060800160408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161561054157604051630c8d9eab60e31b815260040160405180910390fd5b60408051602081018890529081018890524660608201523060808201523360a082015260c0810186905260009060e00160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506105b68585856000015484610802565b6105d3576040516309bde33960e01b815260040160405180910390fd5b82600101548684600201546105e89190610a09565b1115610607576040516357e000b160e01b815260040160405180910390fd5b6000828152600360205260408120805460ff19166001179055600284018054889290610634908490610a09565b92505081905550856004600082825461064d91906109f6565b9091555050604051600090339088908381818185875af1925050503d8060008114610694576040519150601f19603f3d011682016040523d82523d6000602084013e610699565b606091505b50509050806106bb576040516312171d8360e31b815260040160405180910390fd5b336001600160a01b0316888a7fb94bf7f9302edf52a596286915a69b4b0685574cffdedd0712e3c62f2550f0ba8a6040516106f891815260200190565b60405180910390a45050505061070d60018055565b5050505050565b61071c61075b565b6001600160a01b03811661074f576000604051631e4fbdf760e01b815260040161074691906108d1565b60405180910390fd5b610758816107b2565b50565b6000546001600160a01b03163314610372573360405163118cdaa760e01b815260040161074691906108d1565b6002600154036107ab57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008261081086868561081a565b1495945050505050565b600081815b84811015610853576108498287878481811061083d5761083d610a1c565b9050602002013561085c565b915060010161081f565b50949350505050565b6000818310610878576000828152602084905260409020610887565b60008381526020839052604090205b90505b92915050565b6001600160a01b038116811461075857600080fd5b600080604083850312156108b857600080fd5b82356108c381610890565b946020939093013593505050565b6001600160a01b0391909116815260200190565b6000806000606084860312156108fa57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561092357600080fd5b5035919050565b60008060008060006080868803121561094257600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561096e57600080fd5b8601601f8101881361097f57600080fd5b803567ffffffffffffffff81111561099657600080fd5b8860208260051b84010111156109ab57600080fd5b959894975092955050506020019190565b6000602082840312156109ce57600080fd5b81356109d981610890565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561088a5761088a6109e0565b8082018082111561088a5761088a6109e0565b634e487b7160e01b600052603260045260246000fdfea26469706673582212202d84b0fed7e5af235b5704aabf140562017c708802ba0f8efd073c8d7c9472e364736f6c634300081c0033000000000000000000000000440cd932957a06cfae5a4e1d29d504069b6f113d
Deployed Bytecode
0x60806040526004361061007a5760003560e01c806316078d04146100bb5780636ea056a9146100e4578063715018a6146101065780638da5cb5b1461011b578063c6ab7b2e14610141578063c6b61e4c14610161578063cc3c0f06146101b7578063ea25e176146101f7578063f2fde38b1461021757600080fd5b366100b65760405134815233907f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5249060200160405180910390a2005b600080fd5b3480156100c757600080fd5b506100d160045481565b6040519081526020015b60405180910390f35b3480156100f057600080fd5b506101046100ff3660046108a5565b610237565b005b34801561011257600080fd5b50610104610360565b34801561012757600080fd5b506000546001600160a01b03166040516100db91906108d1565b34801561014d57600080fd5b5061010461015c3660046108e5565b610374565b34801561016d57600080fd5b5061019c61017c366004610911565b600260208190526000918252604090912080546001820154919092015483565b604080519384526020840192909252908201526060016100db565b3480156101c357600080fd5b506101e76101d2366004610911565b60036020526000908152604090205460ff1681565b60405190151581526020016100db565b34801561020357600080fd5b5061010461021236600461092a565b6104a6565b34801561022357600080fd5b506101046102323660046109bc565b610714565b61023f61075b565b610247610788565b6001600160a01b03821661026e57604051639fabe1c160e01b815260040160405180910390fd5b60045461027b90476109f6565b81111561029b57604051633c8d43e560e11b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146102e8576040519150601f19603f3d011682016040523d82523d6000602084013e6102ed565b606091505b505090508061030f576040516312171d8360e31b815260040160405180910390fd5b826001600160a01b03167fc36b5179cb9c303b200074996eab2b3473eac370fdd7eba3bec636fe351096968360405161034a91815260200190565b60405180910390a25061035c60018055565b5050565b61036861075b565b61037260006107b2565b565b61037c61075b565b8161039a576040516329e7276760e11b815260040160405180910390fd5b806000036103bb57604051635788801b60e11b815260040160405180910390fd5b600083815260026020526040902054156103e85760405163b466ddbf60e01b815260040160405180910390fd5b806004546103f69190610a09565b471015610416576040516357e000b160e01b815260040160405180910390fd5b60408051606081018252838152602080820184815260008385018181528882526002938490529481209351845590516001840155925191015560048054839290610461908490610a09565b9091555050604080518381526020810183905284917fb1e84f0e16ad503c316d64a7caf01a922416ce7b735d499cdd9134489483c85b910160405180910390a2505050565b6104ae610788565b600085815260026020526040902080546104db57604051631c8b625960e01b815260040160405180910390fd5b604080516020810188905290810186905233606082015260009060800160408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161561054157604051630c8d9eab60e31b815260040160405180910390fd5b60408051602081018890529081018890524660608201523060808201523360a082015260c0810186905260009060e00160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506105b68585856000015484610802565b6105d3576040516309bde33960e01b815260040160405180910390fd5b82600101548684600201546105e89190610a09565b1115610607576040516357e000b160e01b815260040160405180910390fd5b6000828152600360205260408120805460ff19166001179055600284018054889290610634908490610a09565b92505081905550856004600082825461064d91906109f6565b9091555050604051600090339088908381818185875af1925050503d8060008114610694576040519150601f19603f3d011682016040523d82523d6000602084013e610699565b606091505b50509050806106bb576040516312171d8360e31b815260040160405180910390fd5b336001600160a01b0316888a7fb94bf7f9302edf52a596286915a69b4b0685574cffdedd0712e3c62f2550f0ba8a6040516106f891815260200190565b60405180910390a45050505061070d60018055565b5050505050565b61071c61075b565b6001600160a01b03811661074f576000604051631e4fbdf760e01b815260040161074691906108d1565b60405180910390fd5b610758816107b2565b50565b6000546001600160a01b03163314610372573360405163118cdaa760e01b815260040161074691906108d1565b6002600154036107ab57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008261081086868561081a565b1495945050505050565b600081815b84811015610853576108498287878481811061083d5761083d610a1c565b9050602002013561085c565b915060010161081f565b50949350505050565b6000818310610878576000828152602084905260409020610887565b60008381526020839052604090205b90505b92915050565b6001600160a01b038116811461075857600080fd5b600080604083850312156108b857600080fd5b82356108c381610890565b946020939093013593505050565b6001600160a01b0391909116815260200190565b6000806000606084860312156108fa57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561092357600080fd5b5035919050565b60008060008060006080868803121561094257600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561096e57600080fd5b8601601f8101881361097f57600080fd5b803567ffffffffffffffff81111561099657600080fd5b8860208260051b84010111156109ab57600080fd5b959894975092955050506020019190565b6000602082840312156109ce57600080fd5b81356109d981610890565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561088a5761088a6109e0565b8082018082111561088a5761088a6109e0565b634e487b7160e01b600052603260045260246000fdfea26469706673582212202d84b0fed7e5af235b5704aabf140562017c708802ba0f8efd073c8d7c9472e364736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000440cd932957a06cfae5a4e1d29d504069b6f113d

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x440cD932957a06cfae5a4e1D29D504069B6f113d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000440cd932957a06cfae5a4e1d29d504069b6f113d

🤖 Code Reader

Generate instant answers for your smart contract questions using Al Models. Read more.

Block Transaction Gas Used Reward
view all blocks validated

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.