This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
from sys import exit | |
import time | |
import datetime | |
import math | |
import swivel-py | |
def truncate(number, digits) -> float: | |
stepper = 10.0 ** digits | |
return math.trunc(stepper * number) / stepper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Swivel Launch Key" | |
"description": "This key gives access to Swivel Finance's Mainnet Launch!" | |
"image": "https://gateway.pinata.cloud/ipfs/QmVs6zzNk1LKGMmf9Hh64ViTtqkHMyUFMV8v33cSpxvJ5j", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0xe14c894FFA7404d493217Cd97Cdca415979f750D": "2000000000000000000000", | |
"0x68251b5f3889b1B98349f8aF8dbC1FAc75Ab4Ce9": "2000000000000000000000", | |
"0xC7D2c67bC38b0E8b15B632c19Ef629022FD56543": "4000000000000000000000", | |
"0x5517968D4289e068aA74b4Aa9450aa18eE2d14A3": "4000000000000000000000", | |
"0x01628A344a6E8Db2aa3E0954BC2C2D1e26444f9D": "5937007874015748300000", | |
"0x7eb6d04f63521a2e993F5D74F5e18a3e99085BB7": "2000000000000000000000", | |
"0x087Eae3a20901197F68bAb6fAD5966254c8Dd52e": "2000000000000000000000", | |
"0xF72F3240728C65F04948bC28a7F6772B590cb56F": "5937007874015748300000", | |
"0x5DdA68A8990038a13f8B4937e01Be1236c36C018": "4000000000000000000000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SUBJECT TO DILUTION AS ADDITIONAL ADDRESSES ARE ADDED. THIS JSON PROVIDES NO GAURANTEE OF A CLAIM TO SWIV TOKENS, AND ANY ADDRESSES FOUND TO BE IN VIOLATION OF OFAC RESTRICTIONS WILL BE REMOVED. | |
{ | |
"0xbB5cF2A9f62fee113b16b351d79e80414ed25499": "2164502164502164300000", | |
"0x005f3B2bf4E071C0814B84312cbeda304a6ABd97": "2164502164502164300000", | |
"0x41cd412117D5D72e954606dF5C389A19D0688376": "2164502164502164300000", | |
"0xcaFd650401708ca4f65a22340D07f78E18f8C332": "2164502164502164300000", | |
"0xbD992D49e212661623A571c307E5564461F43a82": "2164502164502164300000", | |
"0x12B25E23F35A3FA9540270a2641d946153feAd38": "2164502164502164300000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import math | |
from web3 import Web3 | |
_cache = dict() | |
infura = "https://mainnet.infura.io/v3/b58baa11e019484890eff1543c3dc78f" | |
polygon = "https://polygon-mainnet.infura.io/v3/150d34e9b0294313991d57ac8200160a" | |
web3 = Web3(Web3.HTTPProvider(infura)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0xC7D2c67bC38b0E8b15B632c19Ef629022FD56543": 100000000000000000000, | |
"0x01628A344a6E8Db2aa3E0954BC2C2D1e26444f9D": 3600000000000000000000, | |
"0xF72F3240728C65F04948bC28a7F6772B590cb56F": 5937007874015748300000, | |
"0xCc8c3176C69e8cbb60903cFC91Afd383eB6739d7": 2100000000000000000000, | |
"0x94F5C85ee0233F8D053126cA71d7F4A51101db40": 4800000000000000000000, | |
"0x512aaD1d0E1492a9C4075aBa58cE1a944A74f973": 5937007874015748300000, | |
"0xC487f60b6fA6d7CC1e51908b383385CbfC6c30B5": 4000000000000000000000, | |
"0x570Ad1a6011c6F8d86BB688eD6fD10d55d0DD809": 4000000000000000000000, | |
"0x84817254031e40aA1Ee5c0b144118eF9A029cEAc": 3800000000000000000000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"market": { | |
"underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", | |
"maturity": "1648177200" | |
}, | |
"users": [ | |
{ | |
"user": "0xe6d79FD38ad0b7C9be78F03f8fBe4CF01B49a559", | |
"amounts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from web3._utils.events import get_event_data | |
from web3._utils.filters import construct_event_filter_params | |
import requests | |
import json | |
from web3 import Web3 | |
import math | |
_cache = dict() | |
def truncate(number, digits) -> float: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"market": { | |
"underlying": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b", | |
"maturity": "1639112399" | |
}, | |
"users": [ | |
{ | |
"user": "0x3f60008Dfd0EfC03F476D9B489D6C5B13B3eBF2C", | |
"amounts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web3 = Web3(Web3.HTTPProvider(infura)) | |
swivelcontract = create_contract(web3, False, contract_abi, swivel) | |
marketplacecontract = create_contract(web3, False, marketplace_abi, marketplace) | |
vault = marketplacecontract.functions.markets('0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa',1669957199).call()[2] | |
vaultcontract = create_contract(web3, False, vaulttracker_abi, vault) | |
exits =[] |