MidasRouter
MidasRouter
Main contract to interact with to swap and manage liquidity on Midaswap.
constructor
receive
Receive function that only accepts ETH from the WETH contract
addLiquidityERC721
Function to add liquidity of NFTs and wrap the position with an ERC-721 token.
Parameters
Return Values
addLiquidityERC20
Function to add liquidity of FT and wrap the position with an ERC-721 token.
Parameters
Return Values
addLiquidityETH
Function to add liquidity of ETH and wrap the position with an ERC-721 token.
Parameters
Return Values
removeLiquidity
Function to remove liquidity and burn the LP token.
Parameters
Return Values
removeLiquidityETH
Function to remove liquidity of ETH and burn the LP token.
Parameters
Return Values
sellItems
Function to sell NFTs and receive FT.
Parameters
Return Values
sellItemsToETH
Function to sell NFTs and receive ETH.
Parameters
Return Values
buyItems
Function to buy NFTs and give out FT.
Parameters
Return Values
buyItemsWithETH
Function to buy NFTs and give out ETH.
Parameters
Return Values
openLimitOrder
Function to open a limit order to sell NFTs at spot prices.
Parameters
Return Values
openMultiLimitOrders
Function to open multiple limit orders to sell NFTs at spot prices.
Parameters
Return Values
claimFee
Function for LPs to claim the swap fees from one position.
Parameters
Return Values
claimAll
Function for LPs to claim the swap fees from multiple positions.
Parameters
Return Values
getAmountsToAdd
Function to get a quote for the FT amount to add.
Parameters
Return Values
getMinAmountIn
Function to get a quote for buying specific NFTs.
Parameters
Return Values
Last updated