Verified contractExactAGPL-3.0-only
OwnableERC4626Migrator
Address0x70d7359cd520f4c6df281dbaffc3d205dfed0bcd
- Balance
0 ETH
- Transactions
18
- Compiler
solc 0.8.18
- Same code
4 more contracts
Details
- Compiler
- solc 0.8.18+commit.87f61d96
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- london
- License
- AGPL-3.0-only
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 17,052,364
- Creation transaction
- 0x78fc3b43fa…5fc5dd0805
Read9
- DAI() → (address)
- ERC4626Token() → (address)
- USDC() → (address)
- WETH() → (address)
- daiPerERC4626() → (uint256)
- owner() → (address)
- termsAndConditionsHash() → (bytes32)
- usdcPerERC4626() → (uint256)
- wethPerERC4626() → (uint256)
Write6
- adminMigrate(uint256,address) → (uint256,uint256,uint256)
- adminRecover(address,uint256,address)
- migrate(uint256,bytes32) → (uint256,uint256,uint256)
- renounceOwnership()
- transferOwnership(address)
- updateRates(uint256) → (uint256,uint256,uint256)
Events3
- MigratedAndAgreed(address,uint256,uint256,uint256,uint256)
- MigratedByAdmin(address,uint256,uint256,uint256,uint256)
- OwnershipTransferred(address,address)
Errors1
- InvalidAcceptanceToken(address,bytes32)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_erc4626",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "nonpayable"
},
{
"name": "InvalidAcceptanceToken",
"type": "error",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
},
{
"name": "acceptanceToken",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "MigratedAndAgreed",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "wethAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "daiAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "usdcAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MigratedByAdmin",
"type": "event",
"inputs": [
{
"name": "user",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "wethAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "daiAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "usdcAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"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": "DAI",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "ERC4626Token",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "USDC",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "WETH",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ERC20"
}
],
"stateMutability": "view"
},
{
"name": "adminMigrate",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_to",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "adminRecover",
"type": "function",
"inputs": [
{
"name": "_token",
"type": "address",
"internalType": "address"
},
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "daiPerERC4626",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "migrate",
"type": "function",
"inputs": [
{
"name": "_amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_acceptanceToken",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "termsAndConditionsHash",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateRates",
"type": "function",
"inputs": [
{
"name": "_floatingSupply",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "usdcPerERC4626",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "wethPerERC4626",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.