Skip to content

Instantly share code, notes, and snippets.

View BenFaruna's full-sized avatar
🐍

Benjamin Faruna BenFaruna

🐍
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 Exploit {
address sideAddr;
import { useState } from "react";
function App() {
const [selectedFile, setSelectedFile]: any = useState();
const [image, setImage] = useState<string>("");
const changeHandler = (event: any) => {
setSelectedFile(event.target.files[0]);
};
const handleSubmission = async () => {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC165 {
function supportsInterface(bytes4 interfaceID) external pure returns (bool);
}
interface IERC721 is IERC165 {
function balanceOf(address _owner) external view returns (uint _balance);
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./SchoolManagement.sol";
contract SchoolFactory {
address public immutable owner;
SchoolManagement[] schools;
constructor() {
@BenFaruna
BenFaruna / NFTstaking.sol
Last active January 27, 2024 18:11
Staking contract
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
@BenFaruna
BenFaruna / Keybase.md
Created November 23, 2019 09:06
Keybase.md

Keybase proof

I hereby claim:

  • I am benfaruna on github.
  • I am neobot (https://keybase.io/neobot) on keybase.
  • I have a public key ASC5DVcCrPmAL_SCORGtzYMtXKT01xcei6QQJdYsawPBTwo

To claim this, I am signing this object: