![]() Order keepers would bundle the signature and price data for token A then execute the orderįunding fees and price impact keep longs / shorts balanced while reducing the risk of price manipulation.The prices signed at block 100 can be used to execute this order.If in block 100, there was a market order to open a long position for token A, the market order would have a block number of 100.Oracle keepers pull the latest prices from reference exchanges, token A: price 20,000, token B: price 80,000.Block 100 is finalized on the blockchain.Archive nodes display this information for anyone to query.Oracle keepers then send the data and signature to archive nodes.Oracle keepers then sign the median price for each token together with the block hash.When there is a new block, oracle keepers fetch the latest prices from reference exchanges.Oracle keepers continually check the latest blocks.Prices are provided by an off-chain oracle system: Keepers listen for the transactions, include the prices for the request then send a transaction to execute the request.deposit / withdraw liquidity, swap, increase / decrease position User sends transaction with request details, e.g.To avoid front-running issues, most actions require two steps to execute: Market orders, limit orders, stop-loss, take-profit orders.The contracts support the following main features: The contracts potentially allow for permissionless listings. ![]() Having separate markets allows for risk isolation, liquidity providers are only exposed to the markets that they deposit into. Liquidity providers take on the profits and losses of traders for the market that they provide liquidity for. The long collateral token is used to back long positions, while the short collateral token is used to back short positions. Liquidity providers can deposit either the long or short collateral token to mint liquidity tokens. ![]() SOL/USD market with long collateral as ETH, short collateral as a stablecoin, index token as SOL.BTC/USD market with long collateral as WBTC, short collateral as a stablecoin, index token as BTC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |