Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
443172 | 32 hrs ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xbAF08905...83d78b696 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
GiveawayPolicy
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.28; import {IRewardPolicy} from "./interfaces/IRewardPolicy.sol"; contract GiveawayPolicy is IRewardPolicy { function escrow(uint256 toll, address player, bytes calldata rewardData) external pure returns (uint256) { if (toll != 0) { revert("GiveawayPolicy: Toll must be zero"); } (address whitelistedPlayer, uint256 amount) = abi.decode(rewardData, (address, uint256)); if (player != whitelistedPlayer) { revert("GiveawayPolicy: Player must be whitelisted"); } return amount; } function payout(uint256 max, bytes32) external pure returns (uint256) { return max; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.28; interface IRewardPolicy { // The maximum amount that can be paid out. function escrow(uint256 toll, address player, bytes calldata data) external returns (uint256 amount); // The actual amount that will be paid out. function payout(uint256 reward, bytes32 data) external returns (uint256 amount); }
{ "viaIR": false, "codegen": "yul", "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "optimizer": { "enabled": true, "mode": "3", "fallback_to_optimizing_for_size": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"toll","type":"uint256"},{"internalType":"address","name":"player","type":"address"},{"internalType":"bytes","name":"rewardData","type":"bytes"}],"name":"escrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"payout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]
Deployed Bytecode
0x0000008003000039000000400030043f0000000100200190000000380000c13d00000060021002700000001a02200197000000040020008c0000004a0000413d000000000301043b000000e0033002700000001c0030009c000000400000613d0000001d0030009c0000004a0000c13d000000640020008c0000004a0000413d0000000003000416000000000003004b0000004a0000c13d0000002403100370000000000303043b0000001f0030009c0000004a0000213d0000004404100370000000000504043b000000200050009c0000004a0000213d0000002304500039000000000024004b0000004a0000813d0000000404500039000000000641034f000000000606043b000000200060009c0000004a0000213d00000000056500190000002405500039000000000025004b0000004a0000213d0000000402100370000000000202043b000000000002004b0000004c0000c13d000000400060008c0000004a0000413d0000002002400039000000000421034f000000000404043b0000001f0040009c0000004a0000213d0000001f03300197000000000043004b000000580000c13d0000002002200039000000000121034f000000460000013d0000000001000416000000000001004b0000004a0000c13d0000002001000039000001000010044300000120000004430000001b01000041000000650001042e000000440020008c0000004a0000413d0000000002000416000000000002004b0000004a0000c13d0000000401100370000000000101043b000000800010043f0000001e01000041000000650001042e000000000100001900000066000104300000002101000041000000800010043f0000002001000039000000840010043f0000002101000039000000a40010043f0000002201000041000000c40010043f0000002301000041000000e40010043f000000240100004100000066000104300000002101000041000000800010043f0000002001000039000000840010043f0000002a01000039000000a40010043f0000002501000041000000c40010043f0000002601000041000000e40010043f000000240100004100000066000104300000006400000432000000650001042e0000006600010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000c809356100000000000000000000000000000000000000000000000000000000437b50310000000000000000000000000000000000000020000000800000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff08c379a0000000000000000000000000000000000000000000000000000000004769766561776179506f6c6963793a20546f6c6c206d757374206265207a65726f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000004769766561776179506f6c6963793a20506c61796572206d7573742062652077686974656c697374656400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000091fa5f67bb2e33b49d8af872001d4736a4d71933d394333de528f180efeb2f06
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
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.