V2 Fringe Finance Platform Docs
  • What is Fringe Finance?
  • Platform Overview
    • Multi-Chain Support
    • Censorship Resistance
  • Roadmap
  • Product Versions
    • v1 (deprecating)
      • v1 Audits
    • v2 (live)
      • v2.1
      • v2.2
    • Fringe v3
  • Fringe Lending
    • Fringe Lending
    • Borrowing
    • Lending
    • Interest Rates
    • Partial Liquidations
    • Collateral Asset Parameter Modeling
      • Loan-To-Value Ratio (LVR)
      • Maximum Borrowing Capacity (MBC)
      • Liquidator Reward Percentage
    • Amplify and Margin Trade
    • Fringe Price Oracle Model
  • USB Stablecoin
    • Stablecoin Components
    • Minting
    • USB Savings
    • Interest Rates
    • Liquidations
  • Staking, Rewards and Fees
    • Fringe Staking
    • Fee Structure
  • FAQs
  • Fringe Finance Whitepaper v1.4
  • PLP Liquidation Instructions
  • User guides and use cases
    • Hedge both assets underlying an LP token - and - hedge impermanent loss
    • Hedging Exposure to the More Volatile Underlying Asset in an LP Token
    • Isolating ERC4626 yield exposure - using Superform
    • Isolating ERC4626 yield
    • Go long BTC - with Amplify
    • Trade BTC vs ETH dominance - using Margin Trade
    • New Opportunities for ERC4626 Token Holders
Powered by GitBook
On this page

PLP Liquidation Instructions

PreviousFringe Finance Whitepaper v1.4NextHedge both assets underlying an LP token - and - hedge impermanent loss

Last updated 1 year ago

The following document describes how to undertake liquidations. It also includes links to our template liquidation bot as a starting point to help liquidators build their more sophisticated, custom liquidation engines.

The liquidation query (described in the embedded document - in relation to the liquidation query NPM package ) requires you to define the setup in .env files - which declare the relevant Fringe V2 contract addresses and subgraph query endpoints. The setups required for the .env file for each chain are listed below (you'll also find related instructions in the github repo README.md file for the Fringe V2 liquidation bot ==> : )

Configuration for mainnet ⚙️

(you may alter the following network RPCs if they are not working suitably for you.)

Ethereum mainnet

NETWORK_RPC='https://mainnet.infura.io/v3/'
PIT_CONTRACT_ADDRESS='0x70467416507B75543C18093096BA4612a9261DB8'
PIT_LIQUIDATION_CONTRACT_ADDRESS='0x747088fA37fB08d7F8326FBe119D5bf332d0F60d'
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-eth-mainnet/version/latest'

Arbitrum mainnet

NETWORK_RPC='https://arb1.arbitrum.io/rpc'
PIT_CONTRACT_ADDRESS=’0x5855F919E89c5cb5e0052Cb09addEFF62EB9339A’     
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0x0438b74336E042BB596Be593cfF8D84FD0D8935B’
PIT_SUBGRAPH_URL=’https://api.studio.thegraph.com/query/57877/fringe-plpv2-arb-mainnet2/version/latest'

Polygon mainnet

NETWORK_RPC='https://polygon-mainnet.infura.io'
PIT_CONTRACT_ADDRESS=’0x286475366f736fcEeB0480d7233ef169AE614Fe4’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0x4cc524E21222Ec40E586f7C6da21a4F4DD2B1D2f’
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-poly-mainnet/version/latest'

Optimism mainnet

NETWORK_RPC='https://mainnet.optimism.io/'
PIT_CONTRACT_ADDRESS=’0x088F23ac0c07A3Ce008FB88c4bacFF06FECC6158’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0xfE56364C8157E7A459693FE481bB2d138949cB47’
PIT_SUBGRAPH_URL='https://api.thegraph.com/subgraphs/name/brainspacer/fringe-plpv2-opt-mainnet2'

zkSync Era mainnet

NETWORK_RPC='https://mainnet.era.zksync.io'
PIT_CONTRACT_ADDRESS=’0x8f1d37769a56340542Fb399Cb1cA49d46Aa9fec8’
PIT_LIQUIDATION_CONTRACT_ADDRESS=’0xe0dBcD250EDbF3638349C2d0cCA1a97A6B93a995’
PIT_SUBGRAPH_URL='https://api.studio.thegraph.com/query/57877/fringe-plpv2-zk-mainnet/version/latest'

https://www.npmjs.com/package/@fringefinance/primary-scripts
https://github.com/fringe-finance/liquidation-bot/tree/master
322KB
Fringe PLP instructions for partial liquidations.pdf
pdf