Skip to content

Instantly share code, notes, and snippets.

View williamsfu99's full-sized avatar

williamsfu99

View GitHub Profile
@williamsfu99
williamsfu99 / keeper-example.py
Created February 2, 2022 20:35
Python example of Leveraged Index Strategy Rebalancing
import os
from web3 import Web3
# Populate these fields.
WEB3_PROVIDER = Web3(Web3.HTTPProvider('https://<your-provider-url>'))
LEVERAGE_STRATEGY_ADAPTER_ADDRESS = '<your-strategy-address-here>'
LEVERAGE_REBALANCE_VIEWER_ADDRESS = '<your-viewer-address-here>'
LEVERAGE_STRATEGY_ADAPTER_ABI = '[<your ABI>]'
LEVERAGE_REBALANCE_VIEWER_ABI = '[<your ABI>]'