Skip to content

Instantly share code, notes, and snippets.

View Samuel1-ona's full-sized avatar
🏠
Working from home

Eagle Samuel1-ona

🏠
Working from home
View GitHub Profile
// 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 {
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
interface IVIP_BANK {
function withdraw(uint _amount) external ;
function deposit() external payable;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract AttackCoinFlip {
CoinFlip flip = CoinFlip(0x075cD2051Faf6824c981B9b05Afb79db6cBd4cEa);
uint256 FACTOR = 57896044618658097711785492504343953926634992332820282019728792003956564819968;
// 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);
// 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;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
contract Factory {
address Principal;
constructor(address _principal){
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
contract token {
// State variables
uint public totalSupply;
string public symbol;
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
error Staking__TransferFailed();
error Staking__NeedsMoreThanZero();
contract Staking {
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
error Staking__TransferFailed();
error Staking__NeedsMoreThanZero();
contract Staking {