Verified contractExactMIT
TaxSplitter
Address0xa2dcf3b3f12eef1bcd604ea8d6dbb76ce2b256e3
- Balance
0 ETH
- Transactions
4
- Compiler
solc 0.8.30
- Same code
1 more contract
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- No
- EVM version
- osaka
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,364,417
- Creation transaction
- 0x4ca60938af…e5a7a41b0c
Read10
- BPS_DENOMINATOR() → (uint256)
- FUND_1_BPS() → (uint256)
- FUND_2_BPS() → (uint256)
- FUND_3_BPS() → (uint256)
- accrued(uint8) → (uint256)
- i_usdc() → (address)
- owner() → (address)
- pendingOwner() → (address)
- pool() → (address)
- recipient(uint8) → (address)
Write7
- acceptOwnership()
- accrue(uint256)
- release(uint8)
- renounceOwnership()
- setPool(address)
- setRecipient(uint8,address)
- transferOwnership(address)
Events6
- OwnershipTransferStarted(address,address)
- OwnershipTransferred(address,address)
- PoolSet(address)
- RecipientSet(uint8,address)
- TaxAccrued(uint256,uint256,uint256,uint256)
- TaxReleased(uint8,address,uint256)
Errors12
- OwnableInvalidOwner(address)
- OwnableUnauthorizedAccount(address)
- ReentrancyGuardReentrantCall()
- SafeERC20FailedOperation(address)
- TaxSplitter__CallerNotPool(address)
- TaxSplitter__CallerNotRecipient(uint8,address)
- TaxSplitter__PoolAlreadySet()
- TaxSplitter__PoolMismatch(address)
- TaxSplitter__RecipientAlreadySet(uint8)
- TaxSplitter__RecipientNotSet(uint8)
- TaxSplitter__ZeroAddress()
- TaxSplitter__ZeroAmount()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "usdc",
"type": "address",
"internalType": "contract MockUSDC"
},
{
"name": "initialOwner",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "OwnableInvalidOwner",
"type": "error",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "OwnableUnauthorizedAccount",
"type": "error",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ReentrancyGuardReentrantCall",
"type": "error",
"inputs": []
},
{
"name": "SafeERC20FailedOperation",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TaxSplitter__CallerNotPool",
"type": "error",
"inputs": [
{
"name": "caller",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TaxSplitter__CallerNotRecipient",
"type": "error",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
},
{
"name": "caller",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TaxSplitter__PoolAlreadySet",
"type": "error",
"inputs": []
},
{
"name": "TaxSplitter__PoolMismatch",
"type": "error",
"inputs": [
{
"name": "pool",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TaxSplitter__RecipientAlreadySet",
"type": "error",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
}
]
},
{
"name": "TaxSplitter__RecipientNotSet",
"type": "error",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
}
]
},
{
"name": "TaxSplitter__ZeroAddress",
"type": "error",
"inputs": []
},
{
"name": "TaxSplitter__ZeroAmount",
"type": "error",
"inputs": []
},
{
"name": "OwnershipTransferStarted",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PoolSet",
"type": "event",
"inputs": [
{
"name": "pool",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RecipientSet",
"type": "event",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"indexed": true,
"internalType": "enum TaxSplitter.FundId"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "TaxAccrued",
"type": "event",
"inputs": [
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fund1Share",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fund2Share",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fund3Share",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TaxReleased",
"type": "event",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"indexed": true,
"internalType": "enum TaxSplitter.FundId"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "BPS_DENOMINATOR",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FUND_1_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FUND_2_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FUND_3_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "accrue",
"type": "function",
"inputs": [
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "accrued",
"type": "function",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
}
],
"outputs": [
{
"name": "accrued_",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "i_usdc",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract MockUSDC"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pendingOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pool",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "pool_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "recipient",
"type": "function",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
}
],
"outputs": [
{
"name": "recipient_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "release",
"type": "function",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setPool",
"type": "function",
"inputs": [
{
"name": "newPool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setRecipient",
"type": "function",
"inputs": [
{
"name": "fundId",
"type": "uint8",
"internalType": "enum TaxSplitter.FundId"
},
{
"name": "newRecipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.