Skip to content

Instantly share code, notes, and snippets.

@bankrollnetwork
bankrollnetwork / Arbitrage.sol
Created November 30, 2023 05:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=true&runs=200&gist=
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IWETH {
function deposit() external payable;
function withdraw(uint) external;
@bankrollnetwork
bankrollnetwork / FarmDepot.sol
Created December 3, 2022 05:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Elephant Money
Copyright 2022
*/
/*
Elephant Money Farms - Farmers' Depot
@bankrollnetwork
bankrollnetwork / FarmDepot.sol
Created December 2, 2022 17:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Elephant Money
Copyright 2022
*/
/*
Elephant Money Farms - Farmers' Depot
@bankrollnetwork
bankrollnetwork / FarmStamp.sol
Created November 17, 2022 03:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Elephant Money
Copyright 2022
*/
/*
Elephant Money Farms
@bankrollnetwork
bankrollnetwork / PcsPeriodicTwapOracle_flat.sol
Created November 17, 2022 02:59
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
// File: https://github.com/pancakeswap/pancake-swap-periphery/blob/master/contracts/libraries/SafeMath.sol
pragma solidity =0.6.6;
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
library SafeMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, 'ds-math-add-overflow');
@bankrollnetwork
bankrollnetwork / FarmStamp.sol
Created November 8, 2022 06:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Elephant Money
Copyright 2022
*/
/*
Elephant Money Farms
@bankrollnetwork
bankrollnetwork / FarmStamp.sol
Created November 3, 2022 00:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Elephant Money
Copyright 2022
*/
/*
Elephant Money Farms
@bankrollnetwork
bankrollnetwork / Whitelist.sol
Created October 23, 2021 03:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Bankroll Network
Copyright 2021
*/
pragma solidity ^0.6.8;
@bankrollnetwork
bankrollnetwork / ElephantStack.sol
Created October 23, 2021 03:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Bankroll Network
Copyright 2021
*/
pragma solidity ^0.6.8;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
@bankrollnetwork
bankrollnetwork / Treasury.sol
Created October 23, 2021 03:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
pragma solidity ^0.6.8;
/*
SPDX-License-Identifier: MIT
A Bankteller Production
Bankroll Network
Copyright 2021
*/
abstract contract Context {