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 Name:
PlatformFeeClaimer
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./interfaces/IFeeReceiver.sol"; import "./interfaces/IPrismaFeeDistributor.sol"; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; //claim prisma platform fees //can be replaced if tokens change contract PlatformFeeClaimer is IFeeReceiver { address public immutable distributor; address public immutable veProxy; address public immutable operator; address public immutable mkusd; constructor(address _distributor, address _veProxy, address _operator, address _mkusd) { distributor = _distributor; veProxy = _veProxy; operator = _operator; mkusd = _mkusd; } modifier onlyOperator() { require(msg.sender == operator, "!op"); _; } function processFees() external onlyOperator{ //claim latest address[] memory tokens = new address[](1); tokens[0] = mkusd; IPrismaFeeDistributor(distributor).claim(veProxy, msg.sender, tokens); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; //interface for Prisma Fee Distribution. interface IPrismaFeeDistributor { struct BoundedClaim { address token; uint256 claimFromWeek; uint256 claimUntilWeek; } function feeTokensLength() external view returns (uint); function claimable(address account, address[] calldata tokens) external view returns (uint256[] memory amounts); function claim( address account, address receiver, address[] calldata tokens ) external returns (uint256[] memory claimedAmounts); function claimWithBounds( address account, address receiver, BoundedClaim[] calldata claims ) external returns (uint256[] memory claimedAmounts); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IFeeReceiver { function processFees() external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"address","name":"_veProxy","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_mkusd","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mkusd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"processFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"veProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61010060405234801561001157600080fd5b506040516105373803806105378339810160408190526100309161006e565b6001600160a01b0393841660805291831660a052821660c0521660e0526100c2565b80516001600160a01b038116811461006957600080fd5b919050565b6000806000806080858703121561008457600080fd5b61008d85610052565b935061009b60208601610052565b92506100a960408601610052565b91506100b760608601610052565b905092959194509250565b60805160a05160c05160e0516104246101136000396000818160a401526101a40152600081816061015261012901526000818160cb015261022a01526000818160fc01526101fb01526104246000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063570ca7351461005c578063675c63bc1461009f5780637f9cbccf146100c6578063ba69ebed146100ed578063bfe10928146100f7575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6100f561011e565b005b6100837f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101805760405162461bcd60e51b81526020600482015260036024820152620216f760ec1b604482015260640160405180910390fd5b604080516001808252818301909252600091602080830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106101d6576101d66102b7565b6001600160a01b0392831660209182029290920101526040516323bb111d60e21b81527f000000000000000000000000000000000000000000000000000000000000000090911690638eec447490610256907f000000000000000000000000000000000000000000000000000000000000000090339086906004016102cd565b6000604051808303816000875af1158015610275573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261029d9190810190610330565b5050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006060820160018060a01b03808716845260208187168186015260606040860152828651808552608087019150828801945060005b81811015610321578551851683529483019491830191600101610303565b50909998505050505050505050565b6000602080838503121561034357600080fd5b825167ffffffffffffffff8082111561035b57600080fd5b818501915085601f83011261036f57600080fd5b815181811115610381576103816102a1565b8060051b604051601f19603f830116810181811085821117156103a6576103a66102a1565b6040529182528482019250838101850191888311156103c457600080fd5b938501935b828510156103e2578451845293850193928501926103c9565b9897505050505050505056fea2646970667358221220d0115f5c0bcf346da9a96dbef8583a788cc55331e287a9bee8829443bf437ed364736f6c6343000813003300000000000000000000000062253f7c165e34fd7343b37839bf5186a9e21d4a0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000e91861cb57c6c2aa55b7ab0e6853ae1d96b63efa0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063570ca7351461005c578063675c63bc1461009f5780637f9cbccf146100c6578063ba69ebed146100ed578063bfe10928146100f7575b600080fd5b6100837f000000000000000000000000e91861cb57c6c2aa55b7ab0e6853ae1d96b63efa81565b6040516001600160a01b03909116815260200160405180910390f35b6100837f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb2881565b6100837f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b6100f561011e565b005b6100837f00000000000000000000000062253f7c165e34fd7343b37839bf5186a9e21d4a81565b336001600160a01b037f000000000000000000000000e91861cb57c6c2aa55b7ab0e6853ae1d96b63efa16146101805760405162461bcd60e51b81526020600482015260036024820152620216f760ec1b604482015260640160405180910390fd5b604080516001808252818301909252600091602080830190803683370190505090507f0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28816000815181106101d6576101d66102b7565b6001600160a01b0392831660209182029290920101526040516323bb111d60e21b81527f00000000000000000000000062253f7c165e34fd7343b37839bf5186a9e21d4a90911690638eec447490610256907f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b90339086906004016102cd565b6000604051808303816000875af1158015610275573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261029d9190810190610330565b5050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006060820160018060a01b03808716845260208187168186015260606040860152828651808552608087019150828801945060005b81811015610321578551851683529483019491830191600101610303565b50909998505050505050505050565b6000602080838503121561034357600080fd5b825167ffffffffffffffff8082111561035b57600080fd5b818501915085601f83011261036f57600080fd5b815181811115610381576103816102a1565b8060051b604051601f19603f830116810181811085821117156103a6576103a66102a1565b6040529182528482019250838101850191888311156103c457600080fd5b938501935b828510156103e2578451845293850193928501926103c9565b9897505050505050505056fea2646970667358221220d0115f5c0bcf346da9a96dbef8583a788cc55331e287a9bee8829443bf437ed364736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000062253f7c165e34fd7343b37839bf5186a9e21d4a0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000e91861cb57c6c2aa55b7ab0e6853ae1d96b63efa0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
-----Decoded View---------------
Arg [0] : _distributor (address): 0x62253F7c165e34fd7343b37839bf5186a9E21D4a
Arg [1] : _veProxy (address): 0x8ad7a9e2B3Cd9214f36Cb871336d8ab34DdFdD5b
Arg [2] : _operator (address): 0xe91861cB57C6C2AA55B7AB0E6853ae1D96b63EFA
Arg [3] : _mkusd (address): 0x4591DBfF62656E7859Afe5e45f6f47D3669fBB28
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000062253f7c165e34fd7343b37839bf5186a9e21d4a
Arg [1] : 0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b
Arg [2] : 000000000000000000000000e91861cb57c6c2aa55b7ab0e6853ae1d96b63efa
Arg [3] : 0000000000000000000000004591dbff62656e7859afe5e45f6f47d3669fbb28
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
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.