{"repo":"izumiFinance/iZiSwap-periphery","free":true,"listed":false,"github":"https://github.com/izumiFinance/iZiSwap-periphery","clone":"git clone https://github.com/izumiFinance/iZiSwap-periphery.git","description":"💧 Periphery Contracts for iZiSwap.","language":"JavaScript","stars":17,"topics":["defi","solidity-contracts","dex"],"license":null,"category":"blockchain-web3","readme_excerpt":"iZiSwap-periphery Contracts for iZiSwap periphery. Periphery contracts are suggested entrances to interact with iZiSwap Core contracts. Overview - Swap Related: - Quoter.sol : Used for simulating trades without restrictions on identity and assets. Typically called before actual trading to determine how many tokenB can be obtained by exchanging a specified quantity of tokenA. - QuoterWithLim.sol : similar to Quoter.sol but only search liquidity around the current point to accelerate the search process and void Out of gas error. - Swap.sol : Used to initiates real trades. There are two modes: amount mode and desired mode. Assuming the exchange is x tokenA - y tokenB, in amount mode, x is fixed, while in desired mode, y is fixed. - Limit Order Related: - LimitOrderManager.sol : Used for managing the logical operations related to limit orders, including placing orders, canceling orders, and claiming the traded tokens. To some extent, this contract is coupled with the core contract and is primarily used to avoid fund temporary storage. Only can place order above the current price for sell or below the current price for buy. - LimitOrderWithSwapManager.sol : Similar to LimitOrderManger.sol but add an extra mode: swap and place order. In this mode, the price constrains are removed and the portion that should be executed immediately will be traded as a normal swap. Prone to sandwich attacks, careful setting of slippage is required. - Liquidity Related: - LiquidityManager.sol : Used f","default_branch":null,"files":null,"tree":[],"storefront":"/r/izumiFinance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/izumiFinance/iZiSwap-periphery/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}