POL Price: $0.716453 (+4.05%)
Gas: 27.7 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Disperse Fees602777122024-08-06 22:22:36121 days ago1722982956IN
0x06Cc3a57...41A14a369
0 POL0.0032580438
Disperse Fees557290182024-04-12 6:20:57238 days ago1712902857IN
0x06Cc3a57...41A14a369
0 POL0.01920531224
Disperse Fees545893942024-03-13 0:57:07268 days ago1710291427IN
0x06Cc3a57...41A14a369
0 POL0.0062460591
Disperse Fees535255162024-02-14 20:59:11295 days ago1707944351IN
0x06Cc3a57...41A14a369
0 POL0.0038941161
Disperse Fees526403622024-01-23 1:28:46318 days ago1705973326IN
0x06Cc3a57...41A14a369
0 POL0.0037231446
Disperse Fees503199852023-11-24 5:07:25378 days ago1700802445IN
0x06Cc3a57...41A14a369
0 POL0.04118304480
Disperse Fees503199792023-11-24 5:07:11378 days ago1700802431IN
0x06Cc3a57...41A14a369
0 POL0.03887904480
Disperse Fees503199702023-11-24 5:06:53378 days ago1700802413IN
0x06Cc3a57...41A14a369
0 POL0.04118304480
Disperse Fees503199612023-11-24 5:06:33378 days ago1700802393IN
0x06Cc3a57...41A14a369
0 POL0.04118304480
Disperse Fees499214982023-11-14 5:22:08388 days ago1699939328IN
0x06Cc3a57...41A14a369
0 POL0.00721329105
Disperse Fees494176062023-11-01 14:58:11401 days ago1698850691IN
0x06Cc3a57...41A14a369
0 POL0.0200065247
Disperse Fees472467682023-09-07 8:03:23456 days ago1694073803IN
0x06Cc3a57...41A14a369
0 POL0.01312709153
Disperse Fees469985512023-09-01 2:14:16462 days ago1693534456IN
0x06Cc3a57...41A14a369
0 POL0.00938507109.38576374
Disperse Fees463611612023-08-16 3:38:28478 days ago1692157108IN
0x06Cc3a57...41A14a369
0 POL0.0061502575.93091373
Disperse Fees456395352023-07-29 0:19:23496 days ago1690589963IN
0x06Cc3a57...41A14a369
0 POL0.0046079572.11423705
Disperse Fees435437612023-06-05 4:03:07550 days ago1685937787IN
0x06Cc3a57...41A14a369
0 POL0.00575386133.19738526
Disperse Fees435409302023-06-05 2:16:31550 days ago1685931391IN
0x06Cc3a57...41A14a369
0 POL0.00685992132.94935955
Disperse Fees414338842023-04-12 5:27:19604 days ago1681277239IN
0x06Cc3a57...41A14a369
0 POL0.01068808207.14140056
Disperse Fees378630722023-01-09 12:42:05697 days ago1673268125IN
0x06Cc3a57...41A14a369
0 POL0.01093066134.94979052

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PolygonProtocolFeesDistributor

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 2 : PolygonProtocolFeesDistributor.sol
// 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);
    }
}

File 2 of 2 : IERC20.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

60c060405273ce88686553686da562ce7cea497ce749da109f9f73ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1660601b815250735560659d9a4ab330de2112fc8ee098985719772873ffffffffffffffffffffffffffffffffffffffff1660a09073ffffffffffffffffffffffffffffffffffffffff1660601b8152503480156100a457600080fd5b5060805160601c60a05160601c6105df6100d0600039600061020a0152600061015c01526105df6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80637d1849a814610030575b600080fd5b61004a6004803603810190610045919061031a565b61004c565b005b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161008791906103e2565b60206040518083038186803b15801561009f57600080fd5b505afa1580156100b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d79190610374565b90506000811161011c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011390610426565b60405180910390fd5b600060028261012b919061048e565b9050600060028361013c919061048e565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b81526004016101999291906103fd565b602060405180830381600087803b1580156101b357600080fd5b505af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610347565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b81526004016102479291906103fd565b602060405180830381600087803b15801561026157600080fd5b505af1158015610275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102999190610347565b507f1b4adb9070e1d08c74353b02e137a2c8fe592b8e2e17179a4e53fb5f8f19ce9f8183866040516102cd93929190610446565b60405180910390a150505050565b6000813590506102ea81610564565b92915050565b6000815190506102ff8161057b565b92915050565b60008151905061031481610592565b92915050565b6000602082840312156103305761032f610536565b5b600061033e848285016102db565b91505092915050565b60006020828403121561035d5761035c610536565b5b600061036b848285016102f0565b91505092915050565b60006020828403121561038a57610389610536565b5b600061039884828501610305565b91505092915050565b6103aa816104bf565b82525050565b60006103bd601c8361047d565b91506103c88261053b565b602082019050919050565b6103dc816104fd565b82525050565b60006020820190506103f760008301846103a1565b92915050565b600060408201905061041260008301856103a1565b61041f60208301846103d3565b9392505050565b6000602082019050818103600083015261043f816103b0565b9050919050565b600060608201905061045b60008301866103d3565b61046860208301856103d3565b61047560408301846103a1565b949350505050565b600082825260208201905092915050565b6000610499826104fd565b91506104a4836104fd565b9250826104b4576104b3610507565b5b828204905092915050565b60006104ca826104dd565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f466565734469737472696275746f722f7a65726f2d62616c616e636500000000600082015250565b61056d816104bf565b811461057857600080fd5b50565b610584816104d1565b811461058f57600080fd5b50565b61059b816104fd565b81146105a657600080fd5b5056fea2646970667358221220230970c46586860a317988cc68bfe3ec38e6dd11b37a5e31eb86261509ed2bff64736f6c63430008060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80637d1849a814610030575b600080fd5b61004a6004803603810190610045919061031a565b61004c565b005b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161008791906103e2565b60206040518083038186803b15801561009f57600080fd5b505afa1580156100b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d79190610374565b90506000811161011c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011390610426565b60405180910390fd5b600060028261012b919061048e565b9050600060028361013c919061048e565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f000000000000000000000000ce88686553686da562ce7cea497ce749da109f9f846040518363ffffffff1660e01b81526004016101999291906103fd565b602060405180830381600087803b1580156101b357600080fd5b505af11580156101c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101eb9190610347565b508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb7f0000000000000000000000005560659d9a4ab330de2112fc8ee0989857197728836040518363ffffffff1660e01b81526004016102479291906103fd565b602060405180830381600087803b15801561026157600080fd5b505af1158015610275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102999190610347565b507f1b4adb9070e1d08c74353b02e137a2c8fe592b8e2e17179a4e53fb5f8f19ce9f8183866040516102cd93929190610446565b60405180910390a150505050565b6000813590506102ea81610564565b92915050565b6000815190506102ff8161057b565b92915050565b60008151905061031481610592565b92915050565b6000602082840312156103305761032f610536565b5b600061033e848285016102db565b91505092915050565b60006020828403121561035d5761035c610536565b5b600061036b848285016102f0565b91505092915050565b60006020828403121561038a57610389610536565b5b600061039884828501610305565b91505092915050565b6103aa816104bf565b82525050565b60006103bd601c8361047d565b91506103c88261053b565b602082019050919050565b6103dc816104fd565b82525050565b60006020820190506103f760008301846103a1565b92915050565b600060408201905061041260008301856103a1565b61041f60208301846103d3565b9392505050565b6000602082019050818103600083015261043f816103b0565b9050919050565b600060608201905061045b60008301866103d3565b61046860208301856103d3565b61047560408301846103a1565b949350505050565b600082825260208201905092915050565b6000610499826104fd565b91506104a4836104fd565b9250826104b4576104b3610507565b5b828204905092915050565b60006104ca826104dd565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f466565734469737472696275746f722f7a65726f2d62616c616e636500000000600082015250565b61056d816104bf565b811461057857600080fd5b50565b610584816104d1565b811461058f57600080fd5b50565b61059b816104fd565b81146105a657600080fd5b5056fea2646970667358221220230970c46586860a317988cc68bfe3ec38e6dd11b37a5e31eb86261509ed2bff64736f6c63430008060033

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.