Skip to content

Instantly share code, notes, and snippets.

View ArnaudBernaille's full-sized avatar

Arnaud Bernaille ArnaudBernaille

View GitHub Profile
@poly-rodr
poly-rodr / set_allowances.py
Last active February 26, 2025 12:56
CLOB Allowance Setting Python + Neg Risk
from web3 import Web3
from web3.constants import MAX_INT
from web3.middleware import geth_poa_middleware
rpc_url = "" # Polygon rpc url
priv_key = "" # Polygon account private key (needs some MATIC)
pub_key = "" # Polygon account public key corresponding to private key
chain_id = 137