Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BoostFeeClaimer
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/IBooster.sol";
import "./interfaces/IVoterProxy.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
interface IProxyVault{
function withdrawTo(address _asset, uint256 _amount, address _to) external;
function withdrawLocked(uint256 _amount) external;
}
//claim fees from the proxyvault which is holding expired and/or locked tokens
contract BoostFeeClaimer is IFeeReceiver {
address public immutable prisma;
address public immutable vault;
address public immutable operator;
address public immutable veProxy;
constructor(address _proxy, address _vault, address _prisma, address _operator) {
veProxy = _proxy;
vault = _vault;
prisma = _prisma;
operator = _operator;
}
modifier onlyOperator() {
require(msg.sender == operator, "!op");
_;
}
function processFees() external onlyOperator{
//claim latest
IBooster(IVoterProxy(veProxy).operator()).claimFees();
//withdraw locked
IProxyVault(vault).withdrawLocked(type(uint256).max);
//get balance
uint256 tokenbalance = IERC20(prisma).balanceOf(vault);
if(tokenbalance > 0){
//pull to operator
IProxyVault(vault).withdrawTo(prisma, tokenbalance, operator);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IVoterProxy{
function operator() external view returns(address);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IFeeReceiver {
function processFees() external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IBooster {
function owner() external returns(address);
function rewardManager() external returns(address);
function isShutdown() external returns(bool);
function recoverERC20FromProxy(address _tokenAddress, uint256 _tokenAmount, address _withdrawTo) external;
function claimFees() 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":"_proxy","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_prisma","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"processFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
61010060405234801561001157600080fd5b506040516106003803806106008339810160408190526100309161006e565b6001600160a01b0393841660e05291831660a05282166080521660c0526100c2565b80516001600160a01b038116811461006957600080fd5b919050565b6000806000806080858703121561008457600080fd5b61008d85610052565b935061009b60208601610052565b92506100a960408601610052565b91506100b760608601610052565b905092959194509250565b60805160a05160c05160e0516104d161012f6000396000818160cb015261018201526000818160a40152818161012901526103ca01526000818160fc01528181610269015281816102e401526103f2015260008181606101528181610310015261039b01526104d16000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3266b01461005c578063570ca7351461009f5780637f9cbccf146100c6578063ba69ebed146100ed578063fbfa77cf146100f7575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6100f561011e565b005b6100837f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101805760405162461bcd60e51b81526020600482015260036024820152620216f760ec1b604482015260640160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102029190610452565b6001600160a01b031663d294f0936040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561023c57600080fd5b505af1158015610250573d6000803e3d6000fd5b50506040516332d342b760e01b815260001960048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506332d342b79150602401600060405180830381600087803b1580156102b757600080fd5b505af11580156102cb573d6000803e3d6000fd5b50506040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152600093507f00000000000000000000000000000000000000000000000000000000000000001691506370a0823190602401602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610482565b9050801561044f5760405163627160f360e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000811660448301527f0000000000000000000000000000000000000000000000000000000000000000169063c4e2c1e690606401600060405180830381600087803b15801561043657600080fd5b505af115801561044a573d6000803e3d6000fd5b505050505b50565b60006020828403121561046457600080fd5b81516001600160a01b038116811461047b57600080fd5b9392505050565b60006020828403121561049457600080fd5b505191905056fea264697066735822122043229eddc0e0a0d7ab102a447878c83000d5ca073e342cc19c4c21273ac822d764736f6c634300081300330000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3266b01461005c578063570ca7351461009f5780637f9cbccf146100c6578063ba69ebed146100ed578063fbfa77cf146100f7575b600080fd5b6100837f000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c81565b6040516001600160a01b03909116815260200160405180910390f35b6100837f0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d581565b6100837f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b6100f561011e565b005b6100837f000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a81565b336001600160a01b037f0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d516146101805760405162461bcd60e51b81526020600482015260036024820152620216f760ec1b604482015260640160405180910390fd5b7f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102029190610452565b6001600160a01b031663d294f0936040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561023c57600080fd5b505af1158015610250573d6000803e3d6000fd5b50506040516332d342b760e01b815260001960048201527f000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a6001600160a01b031692506332d342b79150602401600060405180830381600087803b1580156102b757600080fd5b505af11580156102cb573d6000803e3d6000fd5b50506040516370a0823160e01b81526001600160a01b037f000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a81166004830152600093507f000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c1691506370a0823190602401602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610482565b9050801561044f5760405163627160f360e11b81526001600160a01b037f000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c81166004830152602482018390527f0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d5811660448301527f000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a169063c4e2c1e690606401600060405180830381600087803b15801561043657600080fd5b505af115801561044a573d6000803e3d6000fd5b505050505b50565b60006020828403121561046457600080fd5b81516001600160a01b038116811461047b57600080fd5b9392505050565b60006020828403121561049457600080fd5b505191905056fea264697066735822122043229eddc0e0a0d7ab102a447878c83000d5ca073e342cc19c4c21273ac822d764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d5
-----Decoded View---------------
Arg [0] : _proxy (address): 0x8ad7a9e2B3Cd9214f36Cb871336d8ab34DdFdD5b
Arg [1] : _vault (address): 0xb20b384C2F958f2100E14C5048922613F937674A
Arg [2] : _prisma (address): 0xdA47862a83dac0c112BA89c6abC2159b95afd71C
Arg [3] : _operator (address): 0x4B33E944E4Ae1Cb58ABfED5a16a4E25b041Fb5d5
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b
Arg [1] : 000000000000000000000000b20b384c2f958f2100e14c5048922613f937674a
Arg [2] : 000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71c
Arg [3] : 0000000000000000000000004b33e944e4ae1cb58abfed5a16a4e25b041fb5d5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 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.