/solfarm_leverage_positions

Simple use of solana-py API for retrieving Solfarm Leverage Farming LP tokens

Primary LanguagePythonMIT LicenseMIT

Solfarm Leverage Positions

Simple use of solana-py API for retrieving Solfarm Leverage Farming LP tokens

Solana Python API built on the JSON RPC API: https://github.com/michaelhly/solana-py

Position Value = user_leverage_LP_tokens * LP_price + user_coin_deposits * coin_price + user_pc_deposits * pc_price