ETH Price: $3,890.87 (-0.76%)

Contract

0xC9aCB83ADa68413a6Aa57007BC720EE2E2b3C46D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeRegistry

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : FeeRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;



/*
Module that just holds fee information. This allow various contracts to grab required information without
needing a reference to the current "booster" or management contract
*/
contract FeeRegistry{

    address public constant owner = address(0x59CFCD384746ec3035299D90782Be065e466800B);

    uint256 public cvxfxsIncentive = 1000;
    uint256 public cvxIncentive = 700;
    uint256 public platformIncentive = 0;
    uint256 public totalFees = 1700;
    address public feeDeposit;
    uint256 public constant maxFees = 2000;
    uint256 public constant FEE_DENOMINATOR = 10000;


    mapping(address => address) public redirectDepositMap;

    constructor() {}

    /////// Owner Section /////////

    modifier onlyOwner() {
        require(owner == msg.sender, "!auth");
        _;
    }

    //set platform fees
    function setFees(uint256 _cvxfxs, uint256 _cvx, uint256 _platform) external onlyOwner{
        totalFees = _cvxfxs + _cvx + _platform;
        require(totalFees <= maxFees, "fees over");

        cvxfxsIncentive = _cvxfxs;
        cvxIncentive = _cvx;
        platformIncentive = _platform;
    }

    function setDepositAddress(address _deposit) external onlyOwner{
        require(_deposit != address(0),"zero");
        feeDeposit = _deposit;
    }

    function setRedirectDepositAddress(address _from, address _deposit) external onlyOwner{
        redirectDepositMap[_from] = _deposit;
    }

    function getFeeDepositor(address _from) external view returns(address){
        //check if in redirect map
        if(redirectDepositMap[_from] != address(0)){
            return redirectDepositMap[_from];
        }

        //return default
        return feeDeposit;
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxfxsIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDeposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"}],"name":"getFeeDepositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"redirectDepositMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_deposit","type":"address"}],"name":"setDepositAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cvxfxs","type":"uint256"},{"internalType":"uint256","name":"_cvx","type":"uint256"},{"internalType":"uint256","name":"_platform","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_deposit","type":"address"}],"name":"setRedirectDepositAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526103e86000556102bc60015560006002556106a460035534801561002757600080fd5b506104da806100376000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063abca72901161008c578063d73792a911610066578063d73792a9146101b6578063e83e34b1146101bf578063f1e6ac9a146101c8578063fd106774146101d157600080fd5b8063abca729014610167578063c3bac6b31461017a578063cec10c11146101a357600080fd5b806313114a9d146100d45780632b0166df146100f05780638da5cb5b146100f9578063998cbb431461012c578063a46f004d1461013f578063ab18af2714610154575b600080fd5b6100dd60035481565b6040519081526020015b60405180910390f35b6100dd60015481565b6101147359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b0390911681526020016100e7565b61011461013a3660046103de565b6101da565b61015261014d366004610400565b61022c565b005b6101526101623660046103de565b610296565b600454610114906001600160a01b031681565b6101146101883660046103de565b6005602052600090815260409020546001600160a01b031681565b6101526101b1366004610433565b61032a565b6100dd61271081565b6100dd6107d081565b6100dd60005481565b6100dd60025481565b6001600160a01b038181166000908152600560205260408120549091161561021b57506001600160a01b039081166000908152600560205260409020541690565b50506004546001600160a01b031690565b7359cfcd384746ec3035299d90782be065e466800b33146102685760405162461bcd60e51b815260040161025f9061045f565b60405180910390fd5b6001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b7359cfcd384746ec3035299d90782be065e466800b33146102c95760405162461bcd60e51b815260040161025f9061045f565b6001600160a01b0381166103085760405162461bcd60e51b815260040161025f906020808252600490820152637a65726f60e01b604082015260600190565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b7359cfcd384746ec3035299d90782be065e466800b331461035d5760405162461bcd60e51b815260040161025f9061045f565b80610368838561047e565b610372919061047e565b60038190556107d010156103b45760405162461bcd60e51b81526020600482015260096024820152683332b2b99037bb32b960b91b604482015260640161025f565b600092909255600155600255565b80356001600160a01b03811681146103d957600080fd5b919050565b6000602082840312156103f057600080fd5b6103f9826103c2565b9392505050565b6000806040838503121561041357600080fd5b61041c836103c2565b915061042a602084016103c2565b90509250929050565b60008060006060848603121561044857600080fd5b505081359360208301359350604090920135919050565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6000821982111561049f57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212206dfecf21542187416d80ef03d78374e686321157bb763e009a12c1d97dce881e64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063abca72901161008c578063d73792a911610066578063d73792a9146101b6578063e83e34b1146101bf578063f1e6ac9a146101c8578063fd106774146101d157600080fd5b8063abca729014610167578063c3bac6b31461017a578063cec10c11146101a357600080fd5b806313114a9d146100d45780632b0166df146100f05780638da5cb5b146100f9578063998cbb431461012c578063a46f004d1461013f578063ab18af2714610154575b600080fd5b6100dd60035481565b6040519081526020015b60405180910390f35b6100dd60015481565b6101147359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b0390911681526020016100e7565b61011461013a3660046103de565b6101da565b61015261014d366004610400565b61022c565b005b6101526101623660046103de565b610296565b600454610114906001600160a01b031681565b6101146101883660046103de565b6005602052600090815260409020546001600160a01b031681565b6101526101b1366004610433565b61032a565b6100dd61271081565b6100dd6107d081565b6100dd60005481565b6100dd60025481565b6001600160a01b038181166000908152600560205260408120549091161561021b57506001600160a01b039081166000908152600560205260409020541690565b50506004546001600160a01b031690565b7359cfcd384746ec3035299d90782be065e466800b33146102685760405162461bcd60e51b815260040161025f9061045f565b60405180910390fd5b6001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b7359cfcd384746ec3035299d90782be065e466800b33146102c95760405162461bcd60e51b815260040161025f9061045f565b6001600160a01b0381166103085760405162461bcd60e51b815260040161025f906020808252600490820152637a65726f60e01b604082015260600190565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b7359cfcd384746ec3035299d90782be065e466800b331461035d5760405162461bcd60e51b815260040161025f9061045f565b80610368838561047e565b610372919061047e565b60038190556107d010156103b45760405162461bcd60e51b81526020600482015260096024820152683332b2b99037bb32b960b91b604482015260640161025f565b600092909255600155600255565b80356001600160a01b03811681146103d957600080fd5b919050565b6000602082840312156103f057600080fd5b6103f9826103c2565b9392505050565b6000806040838503121561041357600080fd5b61041c836103c2565b915061042a602084016103c2565b90509250929050565b60008060006060848603121561044857600080fd5b505081359360208301359350604090920135919050565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6000821982111561049f57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212206dfecf21542187416d80ef03d78374e686321157bb763e009a12c1d97dce881e64736f6c634300080a0033

Block Transaction Difficulty 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
Loading...
Loading

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.