ETH Price: $1,978.52 (-4.56%)

Contract

0xE4a8ed6c1D8d048bD29A00946BFcf2DB10E7923B
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...122855812021-04-21 19:58:171780 days ago1619035097IN
0xE4a8ed6c...B10E7923B
0 ETH0.00384151134

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
GauntletFeeSetter

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-04-21
*/

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: balancer/GauntletFeeSetter.sol


pragma solidity ^0.7.6;

// todo: add Ownable


/// @title Balancer Weighted Pool Proxy
/// @author Gauntlet
/// @dev This contract is used as a proxy to call the Balancer WeightedPools setSwapFee
interface PoolProxy {
    function setSwapFeePercentage(uint256 _fee) external;
}

/// @title Proxy to batch update Balancer pools
/// @author Gauntlet
/// @dev This contract takes in input the list of pools and fees and loop through them to update the Balancer's WeightedPools calling setSwapFee
contract GauntletFeeSetter is Ownable {

    /// @notice Emitted when setSwapFeePercentage is called
    event NewSwapFeePercentage(address _address, uint _fee);

    /**
     * @param addresses The list of addresses of the pools we're updating
     * @param fees The list of fees we're updating in the pool
     */
    function setSwapFees(address[] calldata addresses, uint[] calldata fees) public onlyOwner {
        require(addresses.length == fees.length, "Addresses and Fees are not the same length");
        for (uint i = 0; i < addresses.length; i++) {
            PoolProxy(addresses[i]).setSwapFeePercentage(fees[i]);
            emit NewSwapFeePercentage(addresses[i], fees[i]);
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"NewSwapFeePercentage","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"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"fees","type":"uint256[]"}],"name":"setSwapFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b61059e8061007d6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631082dd0714610051578063715018a6146101155780638da5cb5b1461011d578063f2fde38b14610141575b600080fd5b6101136004803603604081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460208302840111640100000000831117156100b657600080fd5b9193909290916020810190356401000000008111156100d457600080fd5b8201836020820111156100e657600080fd5b8035906020019184602083028401116401000000008311171561010857600080fd5b509092509050610167565b005b610113610333565b6101256103f1565b604080516001600160a01b039092168252519081900360200190f35b6101136004803603602081101561015757600080fd5b50356001600160a01b0316610400565b61016f610514565b6001600160a01b03166101806103f1565b6001600160a01b0316146101db576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8281146102195760405162461bcd60e51b815260040180806020018281038252602a815260200180610519602a913960400191505060405180910390fd5b60005b8381101561032c5784848281811061023057fe5b905060200201356001600160a01b03166001600160a01b03166338e9922e84848481811061025a57fe5b905060200201356040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561029757600080fd5b505af11580156102ab573d6000803e3d6000fd5b505050507f859cc45f81279d219b0b035d5a00e32926a401f9037738cc935d89c63b6e3afd8585838181106102dc57fe5b905060200201356001600160a01b03168484848181106102f857fe5b9050602002013560405180836001600160a01b031681526020018281526020019250505060405180910390a160010161021c565b5050505050565b61033b610514565b6001600160a01b031661034c6103f1565b6001600160a01b0316146103a7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610408610514565b6001600160a01b03166104196103f1565b6001600160a01b031614610474576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166104b95760405162461bcd60e51b81526004018080602001828103825260268152602001806105436026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe41646472657373657320616e64204665657320617265206e6f74207468652073616d65206c656e6774684f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220ba08b548a413542270f2229542c6fa25f52a4aed070a89c2437c10af38eb258464736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631082dd0714610051578063715018a6146101155780638da5cb5b1461011d578063f2fde38b14610141575b600080fd5b6101136004803603604081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460208302840111640100000000831117156100b657600080fd5b9193909290916020810190356401000000008111156100d457600080fd5b8201836020820111156100e657600080fd5b8035906020019184602083028401116401000000008311171561010857600080fd5b509092509050610167565b005b610113610333565b6101256103f1565b604080516001600160a01b039092168252519081900360200190f35b6101136004803603602081101561015757600080fd5b50356001600160a01b0316610400565b61016f610514565b6001600160a01b03166101806103f1565b6001600160a01b0316146101db576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8281146102195760405162461bcd60e51b815260040180806020018281038252602a815260200180610519602a913960400191505060405180910390fd5b60005b8381101561032c5784848281811061023057fe5b905060200201356001600160a01b03166001600160a01b03166338e9922e84848481811061025a57fe5b905060200201356040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561029757600080fd5b505af11580156102ab573d6000803e3d6000fd5b505050507f859cc45f81279d219b0b035d5a00e32926a401f9037738cc935d89c63b6e3afd8585838181106102dc57fe5b905060200201356001600160a01b03168484848181106102f857fe5b9050602002013560405180836001600160a01b031681526020018281526020019250505060405180910390a160010161021c565b5050505050565b61033b610514565b6001600160a01b031661034c6103f1565b6001600160a01b0316146103a7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610408610514565b6001600160a01b03166104196103f1565b6001600160a01b031614610474576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166104b95760405162461bcd60e51b81526004018080602001828103825260268152602001806105436026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe41646472657373657320616e64204665657320617265206e6f74207468652073616d65206c656e6774684f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220ba08b548a413542270f2229542c6fa25f52a4aed070a89c2437c10af38eb258464736f6c63430007060033

Deployed Bytecode Sourcemap

3993:724:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4322:392;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4322:392:0;;-1:-1:-1;4322:392:0;-1:-1:-1;4322:392:0;:::i;:::-;;2885:148;;;:::i;2234:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;2234:87:0;;;;;;;;;;;;;;3188:244;;;;;;;;;;;;;;;;-1:-1:-1;3188:244:0;-1:-1:-1;;;;;3188:244:0;;:::i;4322:392::-;2465:12;:10;:12::i;:::-;-1:-1:-1;;;;;2454:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2454:23:0;;2446:68;;;;;-1:-1:-1;;;2446:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4431:31;;::::1;4423:86;;;;-1:-1:-1::0;;;4423:86:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4525:6;4520:187;4537:20:::0;;::::1;4520:187;;;4589:9;;4599:1;4589:12;;;;;;;;;;;;;-1:-1:-1::0;;;;;4589:12:0::1;-1:-1:-1::0;;;;;4579:44:0::1;;4624:4;;4629:1;4624:7;;;;;;;;;;;;;4579:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4652:43;4673:9;;4683:1;4673:12;;;;;;;;;;;;;-1:-1:-1::0;;;;;4673:12:0::1;4687:4;;4692:1;4687:7;;;;;;;;;;;;;4652:43;;;;-1:-1:-1::0;;;;;4652:43:0::1;;;;;;;;;;;;;;;;;;;;;4559:3;;4520:187;;;;4322:392:::0;;;;:::o;2885:148::-;2465:12;:10;:12::i;:::-;-1:-1:-1;;;;;2454:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2454:23:0;;2446:68;;;;;-1:-1:-1;;;2446:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2992:1:::1;2976:6:::0;;2955:40:::1;::::0;-1:-1:-1;;;;;2976:6:0;;::::1;::::0;2955:40:::1;::::0;2992:1;;2955:40:::1;3023:1;3006:19:::0;;-1:-1:-1;;;;;;3006:19:0::1;::::0;;2885:148::o;2234:87::-;2280:7;2307:6;-1:-1:-1;;;;;2307:6:0;2234:87;:::o;3188:244::-;2465:12;:10;:12::i;:::-;-1:-1:-1;;;;;2454:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2454:23:0;;2446:68;;;;;-1:-1:-1;;;2446:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3277:22:0;::::1;3269:73;;;;-1:-1:-1::0;;;3269:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3379:6;::::0;;3358:38:::1;::::0;-1:-1:-1;;;;;3358:38:0;;::::1;::::0;3379:6;::::1;::::0;3358:38:::1;::::0;::::1;3407:6;:17:::0;;-1:-1:-1;;;;;;3407:17:0::1;-1:-1:-1::0;;;;;3407:17:0;;;::::1;::::0;;;::::1;::::0;;3188:244::o;720:106::-;808:10;720:106;:::o

Swarm Source

ipfs://ba08b548a413542270f2229542c6fa25f52a4aed070a89c2437c10af38eb2584

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.