Verified contractExactMIT
MindVault
Address0xdb3f630660d51ecbce040da1f9ced2665dfd2772
- Balance
0.041797 ETH
- Transactions
11
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- Yes, 800 runs
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,284,624
- Creation transaction
- 0x858f0642fc…6d5499cae3
Read24
- BACK_MIN_AGE() → (uint256)
- CAP_ACTION_BPS() → (uint16)
- CAP_DAY_BPS() → (uint16)
- CAP_HOUR_BPS() → (uint16)
- CAP_IMPACT_BPS() → (uint16)
- CAP_PAYOUT_HOUR_BPS() → (uint16)
- MAX_RECIPIENTS() → (uint256)
- PAYOUT_GAS() → (uint256)
- creditsOf(address) → (uint256)
- creditsPayee() → (address)
- ethOf(address) → (uint256)
- factory() → (address)
- guardian() → (address)
- heldOf(address,address) → (uint256)
- heldRoom(address,address) → (uint256,uint256,uint256)
- limits() → (uint16,uint16,uint16,uint16,uint16)
- operator() → (address)
- owner() → (address)
- paused(address) → (bool)
- pausedAll() → (bool)
- payoutRoom(address) → (uint256)
- pendingOwner() → (address)
- poolManager() → (address)
- spendRoom(address) → (uint256,uint256,uint256)
Write13
- acceptOwnership()
- airdrop(address,address[],uint256[],bool,bytes32)
- back(address,address,uint256,uint256,bytes32)
- burn(address,uint256,bytes32)
- buyback(address,uint256,uint256,bool,bytes32)
- deposit(address,uint256,uint256)
- drawCredits(address,uint256)
- renounceOwnership()
- sell(address,address,uint256,uint256,bytes32)
- setLimits(tuple)
- setPaused(address,bool)
- setRoles(address,address,address)
- transferOwnership(address)
Events10
- Action(address,bytes32,string,address,uint256,uint256,int256)
- AirdropFailed(address,bytes32,address,uint256)
- Airdropped(address,bytes32,address,uint256,bool)
- CreditsDrawn(address,uint256)
- Deposited(address,uint256,uint256,uint256)
- LimitsSet(tuple)
- OwnershipTransferStarted(address,address)
- OwnershipTransferred(address,address)
- Paused(address,bool)
- RolesSet(address,address,address)
Errors24
- BadLength()
- BadLimits()
- BadRecipient(address)
- BadRole()
- CoinPulled()
- EthTransfer()
- Insufficient()
- IsPaused()
- NotFactory()
- NotGraduated()
- NotGuardian()
- NotHolder(address)
- NotMind()
- NotOperator()
- OverActionLimit()
- OverDayLimit()
- OverHourLimit()
- OverImpact()
- OverPayoutLimit()
- OwnableInvalidOwner(address)
- OwnableUnauthorizedAccount(address)
- ReentrancyGuardReentrantCall()
- SafeERC20FailedOperation(address)
- TooYoung()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_factory",
"type": "address",
"internalType": "contract MindFactory"
},
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_operator",
"type": "address",
"internalType": "address"
},
{
"name": "_guardian",
"type": "address",
"internalType": "address"
},
{
"name": "_creditsPayee",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "BadLength",
"type": "error",
"inputs": []
},
{
"name": "BadLimits",
"type": "error",
"inputs": []
},
{
"name": "BadRecipient",
"type": "error",
"inputs": [
{
"name": "who",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "BadRole",
"type": "error",
"inputs": []
},
{
"name": "CoinPulled",
"type": "error",
"inputs": []
},
{
"name": "EthTransfer",
"type": "error",
"inputs": []
},
{
"name": "Insufficient",
"type": "error",
"inputs": []
},
{
"name": "IsPaused",
"type": "error",
"inputs": []
},
{
"name": "NotFactory",
"type": "error",
"inputs": []
},
{
"name": "NotGraduated",
"type": "error",
"inputs": []
},
{
"name": "NotGuardian",
"type": "error",
"inputs": []
},
{
"name": "NotHolder",
"type": "error",
"inputs": [
{
"name": "who",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "NotMind",
"type": "error",
"inputs": []
},
{
"name": "NotOperator",
"type": "error",
"inputs": []
},
{
"name": "OverActionLimit",
"type": "error",
"inputs": []
},
{
"name": "OverDayLimit",
"type": "error",
"inputs": []
},
{
"name": "OverHourLimit",
"type": "error",
"inputs": []
},
{
"name": "OverImpact",
"type": "error",
"inputs": []
},
{
"name": "OverPayoutLimit",
"type": "error",
"inputs": []
},
{
"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": "TooYoung",
"type": "error",
"inputs": []
},
{
"name": "Action",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "thought",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "kind",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "ethDelta",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenDelta",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "sign",
"type": "int256",
"indexed": false,
"internalType": "int256"
}
],
"anonymous": false
},
{
"name": "AirdropFailed",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "thought",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Airdropped",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "thought",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "inEth",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "CreditsDrawn",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Deposited",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "eth",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "credits",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "coinAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LimitsSet",
"type": "event",
"inputs": [
{
"name": "limits",
"type": "tuple",
"indexed": false,
"components": [
{
"name": "actionBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "hourBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "dayBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "impactBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "payoutHourBps",
"type": "uint16",
"internalType": "uint16"
}
],
"internalType": "struct MindVault.Limits"
}
],
"anonymous": false
},
{
"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": "Paused",
"type": "event",
"inputs": [
{
"name": "coin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "paused",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "RolesSet",
"type": "event",
"inputs": [
{
"name": "operator",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "guardian",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "creditsPayee",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "BACK_MIN_AGE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "CAP_ACTION_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "CAP_DAY_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "CAP_HOUR_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "CAP_IMPACT_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "CAP_PAYOUT_HOUR_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "MAX_RECIPIENTS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "PAYOUT_GAS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "airdrop",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amounts",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "inEth",
"type": "bool",
"internalType": "bool"
},
{
"name": "thought",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "back",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "target",
"type": "address",
"internalType": "address"
},
{
"name": "ethAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "thought",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "burn",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "thought",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "buyback",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "ethAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "burnIt",
"type": "bool",
"internalType": "bool"
},
{
"name": "thought",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "creditsOf",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "creditsPayee",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "credits",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "coinAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "drawCredits",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "ethOf",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "factory",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract MindFactory"
}
],
"stateMutability": "view"
},
{
"name": "guardian",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "heldOf",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "heldRoom",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "perAction",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hourLeft",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "dayLeft",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "limits",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "actionBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "hourBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "dayBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "impactBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "payoutHourBps",
"type": "uint16",
"internalType": "uint16"
}
],
"stateMutability": "view"
},
{
"name": "operator",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "paused",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "pausedAll",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "payoutRoom",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "pendingOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "poolManager",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IPoolManager"
}
],
"stateMutability": "view"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "sell",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "thought",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setLimits",
"type": "function",
"inputs": [
{
"name": "l",
"type": "tuple",
"components": [
{
"name": "actionBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "hourBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "dayBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "impactBps",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "payoutHourBps",
"type": "uint16",
"internalType": "uint16"
}
],
"internalType": "struct MindVault.Limits"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setPaused",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
},
{
"name": "p",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setRoles",
"type": "function",
"inputs": [
{
"name": "_operator",
"type": "address",
"internalType": "address"
},
{
"name": "_guardian",
"type": "address",
"internalType": "address"
},
{
"name": "_creditsPayee",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "spendRoom",
"type": "function",
"inputs": [
{
"name": "coin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "perAction",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "hourLeft",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "dayLeft",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.