Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- GUNFinanceTreasury
- Optimization enabled
- true
- Compiler version
- v0.8.9+commit.e5eed63a
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2024-11-21T15:47:36.484174Z
Contract source code
// Sources flattened with hardhat v2.22.10 https://hardhat.org// SPDX-License-Identifier: MIT// File openzeppelin-contracts-upgradeable/access/IAccessControlUpgradeable.sol// Original license: SPDX_License_Identifier: MIT// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)pragma solidity ^0.8.0;/*** @dev External interface of AccessControl declared to support ERC165 detection.*/interface IAccessControlUpgradeable {/*** @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`** `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite* {RoleAdminChanged} not being emitted signaling this.** _Available since v3.1._*/event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);/*** @dev Emitted when `account` is granted `role`.** `sender` is the account that originated the contract call, an admin role* bearer except when using {AccessControl-_setupRole}.*/event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);/*** @dev Emitted when `account` is revoked `role`.** `sender` is the account that originated the contract call:* - if using `revokeRole`, it is the admin role bearer* - if using `renounceRole`, it is the role bearer (i.e. `account`)*/
Contract ABI
[{"type":"error","name":"ContractsIsPaused","inputs":[]},{"type":"error","name":"IncorrectDistribution","inputs":[]},{"type":"error","name":"InsufficientBalance","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"balance","internalType":"uint256"}]},{"type":"error","name":"InvalidRole","inputs":[{"type":"address","name":"caller","internalType":"address"},{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"error","name":"UnsuccessfulPayment","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"event","name":"TransferFunds","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"batchSendToAddress","inputs":[{"type":"address[]","name":"_receivers","internalType":"address[]"},{"type":"uint256[]","name":"_amounts","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_platformSettingsContractAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"platformSettingsContractAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sendToAddress","inputs":[{"type":"address","name":"_receiver","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"version","inputs":[]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x608060405234801561001057600080fd5b50610d5a806100206000396000f3fe60806040526004361061004e5760003560e01c80633debd2d81461013557806354fd4d5014610157578063c4d66de81461017a578063c6a319fa1461019a578063ccf98453146101d857600080fd5b3661013057600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100a157600080fd5b505afa1580156100b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d99190610aac565b156100f75760405163487ea6bb60e11b815260040160405180910390fd5b604051348152309033907f5a0155838afb0f859197785e575b9ad1afeb456c6e522b6f632ee8465941315e9060200160405180910390a3005b600080fd5b34801561014157600080fd5b50610155610150366004610af1565b6101f8565b005b34801561016357600080fd5b50604051620f424081526020015b60405180910390f35b34801561018657600080fd5b50610155610195366004610b1b565b610568565b3480156101a657600080fd5b506000546101c0906201000090046001600160a01b031681565b6040516001600160a01b039091168152602001610171565b3480156101e457600080fd5b506101556101f3366004610c0c565b61063d565b6000546040805163a217fddf60e01b81529051620100009092046001600160a01b0316916391d1485491839163a217fddf91600480820192602092909190829003018186803b15801561024a57600080fd5b505afa15801561025e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102829190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b1580156102bf57600080fd5b505afa1580156102d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f79190610aac565b806103fc57506000546040805163a6b4321160e01b81529051620100009092046001600160a01b0316916391d1485491839163a6b4321191600480820192602092909190829003018186803b15801561034f57600080fd5b505afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fc9190610aac565b6104b65733600060029054906101000a90046001600160a01b03166001600160a01b031663a6b432116040518163ffffffff1660e01b815260040160206040518083038186803b15801561044f57600080fd5b505afa158015610463573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104879190610ccc565b6040516316b4d34b60e31b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561050457600080fd5b505afa158015610518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053c9190610aac565b1561055a5760405163487ea6bb60e11b815260040160405180910390fd5b61056482826109b7565b5050565b600054610100900460ff1680610581575060005460ff16155b6105e45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104ad565b600054610100900460ff16158015610606576000805461ffff19166101011790555b6000805462010000600160b01b031916620100006001600160a01b038516021790558015610564576000805461ff00191690555050565b6000546040805163a217fddf60e01b81529051620100009092046001600160a01b0316916391d1485491839163a217fddf91600480820192602092909190829003018186803b15801561068f57600080fd5b505afa1580156106a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c79190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b15801561070457600080fd5b505afa158015610718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073c9190610aac565b8061084157506000546040805163a6b4321160e01b81529051620100009092046001600160a01b0316916391d1485491839163a6b4321191600480820192602092909190829003018186803b15801561079457600080fd5b505afa1580156107a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cc9190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b15801561080957600080fd5b505afa15801561081d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108419190610aac565b6108945733600060029054906101000a90046001600160a01b03166001600160a01b031663a6b432116040518163ffffffff1660e01b815260040160206040518083038186803b15801561044f57600080fd5b600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e257600080fd5b505afa1580156108f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091a9190610aac565b156109385760405163487ea6bb60e11b815260040160405180910390fd5b815181511461095a57604051635c3810af60e01b815260040160405180910390fd5b60005b82518110156109b2576109a283828151811061097b5761097b610ce5565b602002602001015183838151811061099557610995610ce5565b60200260200101516109b7565b6109ab81610cfb565b905061095d565b505050565b478111156109e15760405163cf47918160e01b8152600481018290524760248201526044016104ad565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a2e576040519150601f19603f3d011682016040523d82523d6000602084013e610a33565b606091505b5050905080610a675760405163299f419960e21b81526001600160a01b0384166004820152602481018390526044016104ad565b6040518281526001600160a01b0384169030907f5a0155838afb0f859197785e575b9ad1afeb456c6e522b6f632ee8465941315e9060200160405180910390a3505050565b600060208284031215610abe57600080fd5b81518015158114610ace57600080fd5b9392505050565b80356001600160a01b0381168114610aec57600080fd5b919050565b60008060408385031215610b0457600080fd5b610b0d83610ad5565b946020939093013593505050565b600060208284031215610b2d57600080fd5b610ace82610ad5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b7557610b75610b36565b604052919050565b600067ffffffffffffffff821115610b9757610b97610b36565b5060051b60200190565b600082601f830112610bb257600080fd5b81356020610bc7610bc283610b7d565b610b4c565b82815260059290921b84018101918181019086841115610be657600080fd5b8286015b84811015610c015780358352918301918301610bea565b509695505050505050565b60008060408385031215610c1f57600080fd5b823567ffffffffffffffff80821115610c3757600080fd5b818501915085601f830112610c4b57600080fd5b81356020610c5b610bc283610b7d565b82815260059290921b84018101918181019089841115610c7a57600080fd5b948201945b83861015610c9f57610c9086610ad5565b82529482019490820190610c7f565b96505086013592505080821115610cb557600080fd5b50610cc285828601610ba1565b9150509250929050565b600060208284031215610cde57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610d1d57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220cc2c11152d722d856d990e40ed7d2d9a4645d0372c06c493d5fd0b7ce3d4409864736f6c63430008090033
Deployed ByteCode
0x60806040526004361061004e5760003560e01c80633debd2d81461013557806354fd4d5014610157578063c4d66de81461017a578063c6a319fa1461019a578063ccf98453146101d857600080fd5b3661013057600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100a157600080fd5b505afa1580156100b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d99190610aac565b156100f75760405163487ea6bb60e11b815260040160405180910390fd5b604051348152309033907f5a0155838afb0f859197785e575b9ad1afeb456c6e522b6f632ee8465941315e9060200160405180910390a3005b600080fd5b34801561014157600080fd5b50610155610150366004610af1565b6101f8565b005b34801561016357600080fd5b50604051620f424081526020015b60405180910390f35b34801561018657600080fd5b50610155610195366004610b1b565b610568565b3480156101a657600080fd5b506000546101c0906201000090046001600160a01b031681565b6040516001600160a01b039091168152602001610171565b3480156101e457600080fd5b506101556101f3366004610c0c565b61063d565b6000546040805163a217fddf60e01b81529051620100009092046001600160a01b0316916391d1485491839163a217fddf91600480820192602092909190829003018186803b15801561024a57600080fd5b505afa15801561025e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102829190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b1580156102bf57600080fd5b505afa1580156102d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f79190610aac565b806103fc57506000546040805163a6b4321160e01b81529051620100009092046001600160a01b0316916391d1485491839163a6b4321191600480820192602092909190829003018186803b15801561034f57600080fd5b505afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fc9190610aac565b6104b65733600060029054906101000a90046001600160a01b03166001600160a01b031663a6b432116040518163ffffffff1660e01b815260040160206040518083038186803b15801561044f57600080fd5b505afa158015610463573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104879190610ccc565b6040516316b4d34b60e31b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561050457600080fd5b505afa158015610518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053c9190610aac565b1561055a5760405163487ea6bb60e11b815260040160405180910390fd5b61056482826109b7565b5050565b600054610100900460ff1680610581575060005460ff16155b6105e45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104ad565b600054610100900460ff16158015610606576000805461ffff19166101011790555b6000805462010000600160b01b031916620100006001600160a01b038516021790558015610564576000805461ff00191690555050565b6000546040805163a217fddf60e01b81529051620100009092046001600160a01b0316916391d1485491839163a217fddf91600480820192602092909190829003018186803b15801561068f57600080fd5b505afa1580156106a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c79190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b15801561070457600080fd5b505afa158015610718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073c9190610aac565b8061084157506000546040805163a6b4321160e01b81529051620100009092046001600160a01b0316916391d1485491839163a6b4321191600480820192602092909190829003018186803b15801561079457600080fd5b505afa1580156107a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cc9190610ccc565b6040516001600160e01b031960e084901b168152600481019190915233602482015260440160206040518083038186803b15801561080957600080fd5b505afa15801561081d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108419190610aac565b6108945733600060029054906101000a90046001600160a01b03166001600160a01b031663a6b432116040518163ffffffff1660e01b815260040160206040518083038186803b15801561044f57600080fd5b600060029054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e257600080fd5b505afa1580156108f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091a9190610aac565b156109385760405163487ea6bb60e11b815260040160405180910390fd5b815181511461095a57604051635c3810af60e01b815260040160405180910390fd5b60005b82518110156109b2576109a283828151811061097b5761097b610ce5565b602002602001015183838151811061099557610995610ce5565b60200260200101516109b7565b6109ab81610cfb565b905061095d565b505050565b478111156109e15760405163cf47918160e01b8152600481018290524760248201526044016104ad565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a2e576040519150601f19603f3d011682016040523d82523d6000602084013e610a33565b606091505b5050905080610a675760405163299f419960e21b81526001600160a01b0384166004820152602481018390526044016104ad565b6040518281526001600160a01b0384169030907f5a0155838afb0f859197785e575b9ad1afeb456c6e522b6f632ee8465941315e9060200160405180910390a3505050565b600060208284031215610abe57600080fd5b81518015158114610ace57600080fd5b9392505050565b80356001600160a01b0381168114610aec57600080fd5b919050565b60008060408385031215610b0457600080fd5b610b0d83610ad5565b946020939093013593505050565b600060208284031215610b2d57600080fd5b610ace82610ad5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610b7557610b75610b36565b604052919050565b600067ffffffffffffffff821115610b9757610b97610b36565b5060051b60200190565b600082601f830112610bb257600080fd5b81356020610bc7610bc283610b7d565b610b4c565b82815260059290921b84018101918181019086841115610be657600080fd5b8286015b84811015610c015780358352918301918301610bea565b509695505050505050565b60008060408385031215610c1f57600080fd5b823567ffffffffffffffff80821115610c3757600080fd5b818501915085601f830112610c4b57600080fd5b81356020610c5b610bc283610b7d565b82815260059290921b84018101918181019089841115610c7a57600080fd5b948201945b83861015610c9f57610c9086610ad5565b82529482019490820190610c7f565b96505086013592505080821115610cb557600080fd5b50610cc285828601610ba1565b9150509250929050565b600060208284031215610cde57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610d1d57634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220cc2c11152d722d856d990e40ed7d2d9a4645d0372c06c493d5fd0b7ce3d4409864736f6c63430008090033