Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- ZeroTreasuryHandler
- Optimization enabled
- true
- Compiler version
- v0.8.11+commit.d7f03943
- Optimization runs
- 888
- EVM Version
- london
- Verified at
- 2026-04-15T00:58:14.253587Z
contracts/treasury/ZeroTreasuryHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "./ITreasuryHandler.sol";
contract ZeroTreasuryHandler is ITreasuryHandler {
/**
* @notice Perform operations before a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function beforeTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external {}
/**
* @notice Perform operations after a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function afterTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external {}
}
/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
/**
* @title Treasury handler interface
* @dev Any class that implements this interface can be used for protocol-specific operations pertaining to the treasury.
*/
interface ITreasuryHandler {
/**
* @notice Perform operations before a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function beforeTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external;
/**
* @notice Perform operations after a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function afterTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external;
}
/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
/**
* @title Treasury handler interface
* @dev Any class that implements this interface can be used for protocol-specific operations pertaining to the treasury.
*/
interface ITreasuryHandler {
/**
* @notice Perform operations before a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function beforeTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external;
/**
* @notice Perform operations after a transfer is executed.
* @param benefactor Address of the benefactor.
* @param beneficiary Address of the beneficiary.
* @param amount Number of tokens in the transfer.
*/
function afterTransferHandler(
address benefactor,
address beneficiary,
uint256 amount
) external;
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":888,"enabled":true},"metadata":{"bytecodeHash":"none"},"libraries":{},"evmVersion":"london","compilationTarget":{"contracts/treasury/ZeroTreasuryHandler.sol":"ZeroTreasuryHandler"}}
Contract ABI
[{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"afterTransferHandler","inputs":[{"type":"address","name":"benefactor","internalType":"address"},{"type":"address","name":"beneficiary","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"beforeTransferHandler","inputs":[{"type":"address","name":"benefactor","internalType":"address"},{"type":"address","name":"beneficiary","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b5060b58061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063c6512cc1146037578063e613b1cd146037575b600080fd5b604760423660046071565b505050565b005b803573ffffffffffffffffffffffffffffffffffffffff81168114606c57600080fd5b919050565b600080600060608486031215608557600080fd5b608c846049565b92506098602085016049565b915060408401359050925092509256fea164736f6c634300080b000a
Deployed ByteCode
0x6080604052348015600f57600080fd5b506004361060325760003560e01c8063c6512cc1146037578063e613b1cd146037575b600080fd5b604760423660046071565b505050565b005b803573ffffffffffffffffffffffffffffffffffffffff81168114606c57600080fd5b919050565b600080600060608486031215608557600080fd5b608c846049565b92506098602085016049565b915060408401359050925092509256fea164736f6c634300080b000a