This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity >=0.8.0; | |
| import {Utilities} from "../../utils/Utilities.sol"; | |
| import "forge-std/Test.sol"; | |
| import {SideEntranceLenderPool} from "../src/SideEntranceLenderPool.sol"; | |
| contract SideEntrance is Test { |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.19; | |
| interface IVIP_BANK { | |
| function withdraw(uint _amount) external ; | |
| function deposit() external payable; | |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| contract AttackCoinFlip { | |
| CoinFlip flip = CoinFlip(0x075cD2051Faf6824c981B9b05Afb79db6cBd4cEa); | |
| uint256 FACTOR = 57896044618658097711785492504343953926634992332820282019728792003956564819968; |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| contract FundDeposit { | |
| // Mapping to store the balance of each address | |
| mapping(address => uint) public balances; | |
| // Event to emit when a deposit is made | |
| event DepositEvent(address indexed account, uint amount); |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.9; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| contract Web3BridgeNFT is ERC721URIStorage { | |
| constructor() ERC721("Coval", "CQT") {} | |
| uint256 public nextTokenId = 0; |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.22; | |
| contract Factory { | |
| address Principal; | |
| constructor(address _principal){ |
This file contains hidden or 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
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8.9; | |
| contract token { | |
| // State variables | |
| uint public totalSupply; | |
| string public symbol; |
This file contains hidden or 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
| //SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.7; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| error Staking__TransferFailed(); | |
| error Staking__NeedsMoreThanZero(); | |
| contract Staking { |
This file contains hidden or 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
| //SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.7; | |
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
| error Staking__TransferFailed(); | |
| error Staking__NeedsMoreThanZero(); | |
| contract Staking { |