Skip to content

Instantly share code, notes, and snippets.

@cryptofish7
cryptofish7 / verify_creeps_airdrop.py
Created August 2, 2022 13:43
Simple script to verify airdrop
import json
import pandas as pd
from web3 import Web3
AVAX_NODE = "https://api.avax.network/ext/bc/C/rpc"
SMOL_CREEPS_ADDRESS = "0x2cd4dbcbfc005f8096c22579585fb91097d8d259"
provider = Web3(Web3.HTTPProvider(AVAX_NODE))
with open("abi.json", "r") as f:
abi = json.load(f)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
interface ERC3156FlashBorrowerInterface {
/**
* @dev Receive a flash loan.
* @param initiator The initiator of the loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
interface ERC3156FlashBorrowerInterface {
/**
* @dev Receive a flash loan.
* @param initiator The initiator of the loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
pragma solidity 0.5.16;
pragma experimental ABIEncoderV2;
// uniswap
import { IUniswapExchange } from "./IUniswapExchange.sol";
// dydx
import { IErc20 } from "./IErc20.sol";
// compound
pragma solidity 0.5.16;
pragma experimental ABIEncoderV2;
// uniswap
import { IUniswapExchange } from "./IUniswapExchange.sol";
// dydx
import { IErc20 } from "./IErc20.sol";
// compound
pragma solidity 0.5.16;
pragma experimental ABIEncoderV2;
// uniswap
import { IUniswapExchange } from "./IUniswapExchange.sol";
// compound
import "compound-protocol/contracts/CErc20.sol";
import "compound-protocol/contracts/CEther.sol";
import "compound-protocol/contracts/Comptroller.sol";
pragma solidity 0.5.16;
pragma experimental ABIEncoderV2;
// uniswap
import { IUniswapExchange } from "./IUniswapExchange.sol";
// dydx
import { IErc20 } from "./IErc20.sol";
// compound
@cryptofish7
cryptofish7 / CErc20Delegator_flat.sol
Created August 18, 2021 06:51
Flattened CErc20Delegator
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
/**
* @title Compound's InterestRateModel Interface
* @author Compound
*/
contract InterestRateModel {
/// @notice Indicator that this is an InterestRateModel contract (for inspection)