Verified contractPartialMIT
AaveRecipient
Address0x01d60dd27e94e03662d5878d7bfef60b8a4cb502
- Balance
0.000081 ETH
- Transactions
116
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- EVM version
- shanghai
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 17,954,149
- Creation transaction
- 0xd952f9bd31…6b4a73d360
AaveRecipient.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract AaveRecipient {
uint256 public totalSupply = 10000;
address Aave;
constructor(address _delegate) {
Aave = _delegate;
}
fallback() external payable {
(bool success, bytes memory data) = Aave.delegatecall(msg.data);
// Properly return the response
if (success) {
assembly {
return(add(data, 0x20), mload(data))
}
} else {
// In the case the delegatecall failed, revert with the returned error data
assembly {
let returndataSize := returndatasize()
returndatacopy(0, 0, returndataSize)
revert(0, returndataSize)
}
}
}
receive() external payable {}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "shanghai",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.