Smart Contract Development Guide
Intro
Contract Addresses and abi
url: https://bsc-graphnode-api.sakeperp.fi/subgraphs/name/sakeperp/sakeperp-subgraph Request this url by post, and set the data {"query":"{contractLists {isExchange name addr exchangeStateAddr insuranceFundAddr highRiskLPTokenAddr quoteAssetName quoteAssetAddr maxLeverage}}"} The return value is in json format { "data": { "contractLists": [ { "addr": "0x97dc089519d0b341D401a4fBaC26B02a7DCd7f6b", // Contract Address "exchangeStateAddr": "0xB04Af392cF7c2d09A6dC8a812DEDCe02Ef4D2092", // state contract address of the corresponding trading pool "highRiskLPTokenAddr": "0xa1e38c2710b71cad2e2e6afa25eeae26dd3b34bb", // LPToken contract address of the corresponding trading pool "insuranceFundAddr": "0x7395DE44d09E2c691F1bd946F660BbFCf5718275", // Insurance Fund contract address of the corresponding trading pool "isExchange": true, // Is it a trading pool address? "maxLeverage": 15, // Maximum leverage supported by the trading pool "name": "ETH/BUSD", // Contract name "quoteAssetAddr": "0xe9e7cea3dedca5984780bafc599bd69add087d56", // Contract address of the asset used for a quote "quoteAssetName": "BUSD" // The name of the asset used for a quote }, { "addr": "0xCFADd8b52B0737401d8e0aFDc8Aa9194bd40BFc3", "exchangeStateAddr": "0x79366156125D61883d09036d9b57d36d897F9895", "highRiskLPTokenAddr": "0xeca8f31532b8b51f2185210f22fbe3c33a786b1b", "insuranceFundAddr": "0xCAe9E683864E5892DA9d258cae4C4d029BD10620", "isExchange": true, "maxLeverage": 15, "name": "BTC/BUSD", "quoteAssetAddr": "0xe9e7cea3dedca5984780bafc599bd69add087d56", "quoteAssetName": "BUSD" }, { "addr": "0xeCf9e5c123a1E251E4f9E3B9800EC8ab3E5033Ed", // Contract address "exchangeStateAddr": "", "highRiskLPTokenAddr": "", "insuranceFundAddr": "", "isExchange": false, "maxLeverage": 0, "name": "SakePerp", // Contract name "quoteAssetAddr": "", "quoteAssetName": "" }, ...... ] } }
Contract Interface and Calls
Position Operation and Enquiry
MM Liquidity Operation and Enquiry
Trading Pool Status Enquiry
Last updated