Skip to content

Instantly share code, notes, and snippets.

# ./flap_checker.sh 1 10 1900
# will check flaps 1 through 9 if they are selling at more than 6% deviation from 1900
ID=$1
END_ID=$2
FAIR_PRICE=$3
while [[ ID -ne END_ID ]]
do
ret=`seth call 0xC4269cC7acDEdC3794b221aA4D9205F564e27f0d "bids(uint256)(uint256,uint256,address,uint48,uint48)" $ID`
a=($(echo "$ret" | tr ',' '\n'))
@kmbarry1
kmbarry1 / minority_wins
Last active April 11, 2022 23:41
Minority Wins...
// BUGGED, DO NOT DEPLOY
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.11;
/// @title AvsBGame
/// @notice A Liar's Game: Vote by putting ETH behind A or B ... the side with the least votes gets all the ETH
/// @author AvsB Team
/// @dev Built using a Commit-Reveal scheme