More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Disperse Fees | 60277712 | 121 days ago | IN | 0 POL | 0.00325804 | ||||
Disperse Fees | 55729018 | 238 days ago | IN | 0 POL | 0.01920531 | ||||
Disperse Fees | 54589394 | 268 days ago | IN | 0 POL | 0.00624605 | ||||
Disperse Fees | 53525516 | 295 days ago | IN | 0 POL | 0.00389411 | ||||
Disperse Fees | 52640362 | 318 days ago | IN | 0 POL | 0.00372314 | ||||
Disperse Fees | 50319985 | 378 days ago | IN | 0 POL | 0.04118304 | ||||
Disperse Fees | 50319979 | 378 days ago | IN | 0 POL | 0.03887904 | ||||
Disperse Fees | 50319970 | 378 days ago | IN | 0 POL | 0.04118304 | ||||
Disperse Fees | 50319961 | 378 days ago | IN | 0 POL | 0.04118304 | ||||
Disperse Fees | 49921498 | 388 days ago | IN | 0 POL | 0.00721329 | ||||
Disperse Fees | 49417606 | 401 days ago | IN | 0 POL | 0.0200065 | ||||
Disperse Fees | 47246768 | 456 days ago | IN | 0 POL | 0.01312709 | ||||
Disperse Fees | 46998551 | 462 days ago | IN | 0 POL | 0.00938507 | ||||
Disperse Fees | 46361161 | 478 days ago | IN | 0 POL | 0.00615025 | ||||
Disperse Fees | 45639535 | 496 days ago | IN | 0 POL | 0.00460795 | ||||
Disperse Fees | 43543761 | 550 days ago | IN | 0 POL | 0.00575386 | ||||
Disperse Fees | 43540930 | 550 days ago | IN | 0 POL | 0.00685992 | ||||
Disperse Fees | 41433884 | 604 days ago | IN | 0 POL | 0.01068808 | ||||
Disperse Fees | 37863072 | 697 days ago | IN | 0 POL | 0.01093066 |
Loading...
Loading
Contract Name:
PolygonProtocolFeesDistributor
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.6; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; contract PolygonProtocolFeesDistributor { address immutable BALANCER_FEE_COLLECTOR = 0xce88686553686DA562CE7Cea497CE749DA109f9F; address immutable XAVE_FEES_COLLECTOR = 0x5560659d9a4aB330dE2112fc8Ee0989857197728; event FeesCollected(uint256 xaveProfit, uint256 balancerProfit, address token); function disperseFees(address token) external { uint256 tokenBalance = IERC20(token).balanceOf(address(this)); require(tokenBalance > 0, 'FeesDistributor/zero-balance'); uint256 balancerProfit = tokenBalance / 2; uint256 xaveProfit = tokenBalance / 2; IERC20(token).transfer(BALANCER_FEE_COLLECTOR, balancerProfit); IERC20(token).transfer(XAVE_FEES_COLLECTOR, xaveProfit); emit FeesCollected(xaveProfit, balancerProfit, token); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"xaveProfit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balancerProfit","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"FeesCollected","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"disperseFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405273ce88686553686da562ce7cea497ce749da109f9f73ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1660601b815250735560659d9a4ab330de2112fc8ee098985719772873ffffffffffffffffffffffffffffffffffffffff1660a09073ffffffffffffffffffffffffffffffffffffffff1660601b8152503480156100a457600080fd5b5060805160601c60a05160601c6105df6100d0600039600061020a0152600061015c01526105df6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80637d1849a814610030575b600080fd5b61004a6004803603810190610045919061031a565b61004c565b005b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161008791906103e2565b60206040518083038186803b15801561009f57600080fd5b505afa1580156100b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d79190610374565b90506000811161011c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011390610426565b60405180910390fd5b600060028261012b919061048e565b9050600060028361013c919061048e565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b81526004016101999291906103fd565b602060405180830381600087803b1580156101b357600080fd5b505af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610347565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b81526004016102479291906103fd565b602060405180830381600087803b15801561026157600080fd5b505af1158015610275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102999190610347565b507f1b4adb9070e1d08c74353b02e137a2c8fe592b8e2e17179a4e53fb5f8f19ce9f8183866040516102cd93929190610446565b60405180910390a150505050565b6000813590506102ea81610564565b92915050565b6000815190506102ff8161057b565b92915050565b60008151905061031481610592565b92915050565b6000602082840312156103305761032f610536565b5b600061033e848285016102db565b91505092915050565b60006020828403121561035d5761035c610536565b5b600061036b848285016102f0565b91505092915050565b60006020828403121561038a57610389610536565b5b600061039884828501610305565b91505092915050565b6103aa816104bf565b82525050565b60006103bd601c8361047d565b91506103c88261053b565b602082019050919050565b6103dc816104fd565b82525050565b60006020820190506103f760008301846103a1565b92915050565b600060408201905061041260008301856103a1565b61041f60208301846103d3565b9392505050565b6000602082019050818103600083015261043f816103b0565b9050919050565b600060608201905061045b60008301866103d3565b61046860208301856103d3565b61047560408301846103a1565b949350505050565b600082825260208201905092915050565b6000610499826104fd565b91506104a4836104fd565b9250826104b4576104b3610507565b5b828204905092915050565b60006104ca826104dd565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f466565734469737472696275746f722f7a65726f2d62616c616e636500000000600082015250565b61056d816104bf565b811461057857600080fd5b50565b610584816104d1565b811461058f57600080fd5b50565b61059b816104fd565b81146105a657600080fd5b5056fea2646970667358221220230970c46586860a317988cc68bfe3ec38e6dd11b37a5e31eb86261509ed2bff64736f6c63430008060033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80637d1849a814610030575b600080fd5b61004a6004803603810190610045919061031a565b61004c565b005b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161008791906103e2565b60206040518083038186803b15801561009f57600080fd5b505afa1580156100b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d79190610374565b90506000811161011c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011390610426565b60405180910390fd5b600060028261012b919061048e565b9050600060028361013c919061048e565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f000000000000000000000000ce88686553686da562ce7cea497ce749da109f9f846040518363ffffffff1660e01b81526004016101999291906103fd565b602060405180830381600087803b1580156101b357600080fd5b505af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610347565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000005560659d9a4ab330de2112fc8ee0989857197728836040518363ffffffff1660e01b81526004016102479291906103fd565b602060405180830381600087803b15801561026157600080fd5b505af1158015610275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102999190610347565b507f1b4adb9070e1d08c74353b02e137a2c8fe592b8e2e17179a4e53fb5f8f19ce9f8183866040516102cd93929190610446565b60405180910390a150505050565b6000813590506102ea81610564565b92915050565b6000815190506102ff8161057b565b92915050565b60008151905061031481610592565b92915050565b6000602082840312156103305761032f610536565b5b600061033e848285016102db565b91505092915050565b60006020828403121561035d5761035c610536565b5b600061036b848285016102f0565b91505092915050565b60006020828403121561038a57610389610536565b5b600061039884828501610305565b91505092915050565b6103aa816104bf565b82525050565b60006103bd601c8361047d565b91506103c88261053b565b602082019050919050565b6103dc816104fd565b82525050565b60006020820190506103f760008301846103a1565b92915050565b600060408201905061041260008301856103a1565b61041f60208301846103d3565b9392505050565b6000602082019050818103600083015261043f816103b0565b9050919050565b600060608201905061045b60008301866103d3565b61046860208301856103d3565b61047560408301846103a1565b949350505050565b600082825260208201905092915050565b6000610499826104fd565b91506104a4836104fd565b9250826104b4576104b3610507565b5b828204905092915050565b60006104ca826104dd565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f466565734469737472696275746f722f7a65726f2d62616c616e636500000000600082015250565b61056d816104bf565b811461057857600080fd5b50565b610584816104d1565b811461058f57600080fd5b50565b61059b816104fd565b81146105a657600080fd5b5056fea2646970667358221220230970c46586860a317988cc68bfe3ec38e6dd11b37a5e31eb86261509ed2bff64736f6c63430008060033
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.