Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
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:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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 Most vaults should just use the default feeDeposit address to send fees to. However the system also allows custom vault types to override where fees are sent (ex. some collaboration) */ contract FeeRegistry{ //owner is the voteproxy contract holding vefxn address public constant owner = address(0xd11a4Ee017cA0BECA8FA45fF2abFe9C6267b7881); //fees uint256 public totalFees = 1700; uint256 public constant maxFees = 2000; uint256 public constant FEE_DENOMINATOR = 10000; //deposit to send fees to address public feeDeposit; //mapping to allow certain pools to send fees to a different deposit address mapping(address => address) public redirectDepositMap; constructor() {} /////// Owner Section ///////// modifier onlyOwner() { require(owner == msg.sender, "!auth"); _; } //set platform fees function setFees(uint256 _fees) external onlyOwner{ require(_fees <= maxFees, "fees over"); totalFees = _fees; } //set main deposit address function setDepositAddress(address _deposit) external onlyOwner{ require(_deposit != address(0),"zero"); feeDeposit = _deposit; } //set redirect to a given deposit address function setRedirectDepositAddress(address _from, address _deposit) external onlyOwner{ redirectDepositMap[_from] = _deposit; } //get the current deposit address 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; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FEE_DENOMINATOR","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":[{"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":"_fees","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"}]
Contract Creation Code
60806040526106a460005534801561001657600080fd5b50610433806100266000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063ab18af2711610066578063ab18af271461012d578063abca729014610140578063c3bac6b314610153578063d73792a91461017c578063e83e34b11461018557600080fd5b806313114a9d146100a35780633d18678e146100bf5780638da5cb5b146100d4578063998cbb4314610107578063a46f004d1461011a575b600080fd5b6100ac60005481565b6040519081526020015b60405180910390f35b6100d26100cd366004610354565b61018e565b005b6100ef73d11a4ee017ca0beca8fa45ff2abfe9c6267b788181565b6040516001600160a01b0390911681526020016100b6565b6100ef610115366004610389565b61020d565b6100d26101283660046103ab565b61025f565b6100d261013b366004610389565b6102c0565b6001546100ef906001600160a01b031681565b6100ef610161366004610389565b6002602052600090815260409020546001600160a01b031681565b6100ac61271081565b6100ac6107d081565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146101ca5760405162461bcd60e51b81526004016101c1906103de565b60405180910390fd5b6107d08111156102085760405162461bcd60e51b81526020600482015260096024820152683332b2b99037bb32b960b91b60448201526064016101c1565b600055565b6001600160a01b038181166000908152600260205260408120549091161561024e57506001600160a01b039081166000908152600260205260409020541690565b50506001546001600160a01b031690565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146102925760405162461bcd60e51b81526004016101c1906103de565b6001600160a01b03918216600090815260026020526040902080546001600160a01b03191691909216179055565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146102f35760405162461bcd60e51b81526004016101c1906103de565b6001600160a01b0381166103325760405162461bcd60e51b81526004016101c1906020808252600490820152637a65726f60e01b604082015260600190565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561036657600080fd5b5035919050565b80356001600160a01b038116811461038457600080fd5b919050565b60006020828403121561039b57600080fd5b6103a48261036d565b9392505050565b600080604083850312156103be57600080fd5b6103c78361036d565b91506103d56020840161036d565b90509250929050565b602080825260059082015264042c2eae8d60db1b60408201526060019056fea264697066735822122026d298e698d99f8e8aefacdedd983dc3642dd5c7a4a5e7ac39dc263f5efabca564736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063ab18af2711610066578063ab18af271461012d578063abca729014610140578063c3bac6b314610153578063d73792a91461017c578063e83e34b11461018557600080fd5b806313114a9d146100a35780633d18678e146100bf5780638da5cb5b146100d4578063998cbb4314610107578063a46f004d1461011a575b600080fd5b6100ac60005481565b6040519081526020015b60405180910390f35b6100d26100cd366004610354565b61018e565b005b6100ef73d11a4ee017ca0beca8fa45ff2abfe9c6267b788181565b6040516001600160a01b0390911681526020016100b6565b6100ef610115366004610389565b61020d565b6100d26101283660046103ab565b61025f565b6100d261013b366004610389565b6102c0565b6001546100ef906001600160a01b031681565b6100ef610161366004610389565b6002602052600090815260409020546001600160a01b031681565b6100ac61271081565b6100ac6107d081565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146101ca5760405162461bcd60e51b81526004016101c1906103de565b60405180910390fd5b6107d08111156102085760405162461bcd60e51b81526020600482015260096024820152683332b2b99037bb32b960b91b60448201526064016101c1565b600055565b6001600160a01b038181166000908152600260205260408120549091161561024e57506001600160a01b039081166000908152600260205260409020541690565b50506001546001600160a01b031690565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146102925760405162461bcd60e51b81526004016101c1906103de565b6001600160a01b03918216600090815260026020526040902080546001600160a01b03191691909216179055565b73d11a4ee017ca0beca8fa45ff2abfe9c6267b788133146102f35760405162461bcd60e51b81526004016101c1906103de565b6001600160a01b0381166103325760405162461bcd60e51b81526004016101c1906020808252600490820152637a65726f60e01b604082015260600190565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561036657600080fd5b5035919050565b80356001600160a01b038116811461038457600080fd5b919050565b60006020828403121561039b57600080fd5b6103a48261036d565b9392505050565b600080604083850312156103be57600080fd5b6103c78361036d565b91506103d56020840161036d565b90509250929050565b602080825260059082015264042c2eae8d60db1b60408201526060019056fea264697066735822122026d298e698d99f8e8aefacdedd983dc3642dd5c7a4a5e7ac39dc263f5efabca564736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.