-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,158 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
contracts/CTF/Damn-Vulnerable-DeFi/00.Base/DamnValuableTokenSnapshot.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
// Wrapped Ether https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code | ||
interface IWETH { | ||
function name() external view returns (string memory); | ||
function approve(address guy, uint256 amount) external returns (bool); | ||
function totalSupply() external view returns (uint256); | ||
function transferFrom(address src, address dst, uint256 amount) external returns (bool); | ||
function withdraw(uint256 amount) external; | ||
function decimals() external view returns (uint8); | ||
function balanceOf(address) external view returns (uint256); | ||
function symbol() external view returns (string memory); | ||
function transfer(address dst, uint256 amount) external returns (bool); | ||
function deposit() external payable; | ||
function allowance(address, address) external view returns (uint256); | ||
|
||
event Approval(address indexed src, address indexed guy, uint256 amount); | ||
event Transfer(address indexed src, address indexed dst, uint256 amount); | ||
event Deposit(address indexed dst, uint256 amount); | ||
event Withdrawal(address indexed src, uint256 amount); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.