Comment on page
Nether.Fi is a decentralized exchange allowing on-chain perpetual and spot trading on Base. The platform uses an aggregate price feed which reduces the risk of liquidations from temporary wicks.
After you have a wallet, you can connect your wallet by pressing the
Connect Walletbutton on the Nether.Fi Trade page: URL
If your wallet is not connected to BASE network, the app will prompt you to add the network parameters to your web3 wallet and switch to BASE.
Since Nether.Fi is a decentralized exchange, querying of data and submitting of transactions go through an RPC URL.
There may be times when the RPC URL is not as responsive as it should be, during these times you may notice data being slow to load or not loading on your page.
You will need to have ETH on BASE network in order to start trading and earning on Nether.Fi.
For leverage trading, see the following sections.
Click on "Long" or "Short" depending on which side you would like to open a leverage position on.
- Long position
- Earns a profit if the token's price goes up
- Makes a loss if the token's price goes down
- Short position
- Earns a profit if the token's price goes down
- Makes a loss if the token's price goes up
After selecting your side, type in the amount you want to pay and the amount of leverage you want to use. In the below example 0.1 ETH worth 184.94 USD is being used to open a 5x ETH (Ethereum) long position of size 920.11 USD
Opening a Long position
The "Entry Price" is $1849.44 and the Liquidation Price is $1498.04. Below the swap box you would also see the "Exit Price", which is the price that would be used to calculate profits if you open and then immediately close a position. The exit price will change with the price of the token you are longing or shorting.
The trading fee to open a position is 0.1% of the position size, similarly there is a 0.1% fee when closing the position.
There is also a "Borrow Fee" that is deducted at the start of every hour. This is the fee paid to the counter-party of your trade. The fee per hour will vary based on utilization, it is calculated as
(assets borrowed) / (total assets in pool) * 0.01%. The "Borrow Fee" for longing or shorting is shown below the swap box.
While there are no price impacts for trades, there can be slippage due to price movements between when your trade transaction is submitted and when it is confirmed on the blockchain. Slippage is the difference between the expected price of the trade and the execution price, this can be customized in the settings located in the menu next to your address at the top right of the page.
After opening a trade, you would be able to view it under your Positions list, you can also click on "Edit" to deposit or withdraw collateral, this allows you to manage your leverage and liquidation price.
When you open a position or deposit collateral, a snapshot of the USD price of your collateral is taken, so e.g. if your collateral is 0.1 ETH and the price of ETH is 1849 USD at the time, then your collateral is 184.9 USD and will not change even if the price of ETH changes.
The amount of profit and loss you make will be proportional to your position size. In this example, 184.9 USD has been used to buy 920.11 USD of ETH. If the price of ETH increases by 10%, the position would have a profit of 92.01 USD, if the price of ETH decreases by 10%, the position would have a loss of 92.01 USD.
If a short position was opened instead, then if the price of ETH decreased by 10% the position would have a profit of 92.01 USD, if the price of ETH increased by 10%, the position would have a loss of 92.01 USD.
Leverage for a position is displayed as
(position size) / (position collateral). If you'd like to display the leverage as
(position size + PnL) / (position collateral), you can customise this in the settings.
Note that when depositing collateral into a long position, there is a 0.3% deposit fee for the conversion of the asset to its USD value, e.g. ETH amount to USD value. This is to prevent deposits from being used as a zero fee swap. This does not apply to shorts. Withdrawing of collateral from longs and shorts does not incur this fee either.
You can close a position partially or completely by clicking on the "Close" button.
For long positions, profits are paid in the asset you are longing, e.g. if you long ETH you would get your profits as ETH.
For short positions, profits will be paid out in the same stablecoin that you used to open the position, e.g. USDC or USDT.
You can also set stop-loss and take-profit orders by clicking on the "Close" button and selecting the "Trigger" tab.
After creating a trigger order, it will appear in your position's row as well as under the "Orders" tab, you can edit it the order and change the trigger price if needed.
If you close a position manually, the associated trigger orders will remain open, you would need to cancel them manually if you do not want the order to be active when opening future positions.
Note that orders are not guaranteed to execute, this can occur in a few situations including but not exclusive to:
- The mark price which is an aggregate of exchange prices did not reach the specified price
- The specified price was reached but not long enough for it to be executed
- No keeper picked up the order for execution
Additionally, trigger orders are market orders and are not guaranteed to execute at the trigger price.
In the example, since only 184.9 USD worth of tokens is used as collateral to open the position, there will be a price at which the loss amount is very close to the collateral amount.
This is the Liquidation Price and is calculated as the price at which the
(collateral - losses - borrow fee)is less than 1% of your position's size. If the token's price crosses this point then the position will be automatically closed.
Due to the borrow fee your liquidation price will change over time, especially if you use a leverage that is more than 10x and have the position open for more than a few days, so it is important to monitor your liquidation price.
If there is any collateral remaining after deducting losses and fees, then the corresponding amount would be returned to your account.
There is no price impact for trades on Nether.Fi, so you can execute large trades exactly at the mark price. During times of high volatility there will be a spread from the Chainlink price to the price from CoinGecko.
The mark prices are displayed next to the market name, long positions will be opened at the higher price and closed at the lower price while short positions will be opened at the lower price and closed at the higher price.
The chart will indicate the average of the two mark prices.
The cost to open / close a position is 0.1% of the position size.
The collateral of long positions is the token being longed, for ETH longs the collateral is ETH and for BTC longs the collateral is WBTC, etc. The collateral of shorts positions is any of the supported stablecoins (USDC, USDT). If a swap is needed when opening or closing a position then the regular swap fee would apply, this fee is 0.2% to 0.8% of the collateral size, the exact fee depends on whether the swap improves balance or reduces it.
There is also an execution fee detailed below which is used to pay for the blockchain network costs.
There are two transactions involved in opening / closing / editing a position:
- 1.User sends the first transaction to request open / close / deposit collateral / withdraw collateral
- 2.Keepers observe the blockchain for these requests then execute them
The cost of the second transaction is displayed in the confirmation box as the "Execution Fee". This network cost is paid to the blockchain network.
In case the price of a stablecoin depegs from 1 USD:
- 1.Opening and closing short positions during this time would incur a cost on the collateral based on a spread of 1 USD to the Chainlink price of the stablecoin. For example, if the price of the chosen stablecoin depegs to 0.95 USD, opening a position using 1000 of that stablecoin would result in a position collateral of 950 USD based on a price of 0.95 USD, when closing the position, 950 of the stablecoin would be withdrawn based on a price of 1 USD, this is to prevent front-running issues during a depeg since collateral is stored as a USD value and converted to tokens based on the latest price.
- 2.To ensure that profits for all short positions can always be fully paid out, the contracts will pay out profits in the stablecoin based on a price of 1 USD or the current Chainlink price for the stablecoin, whichever is higher.
- 3.For swaps using the depegged stablecoin, the spread from 1 USD to the Chainlink price of the stablecoin will similarly apply.
- 4.Long positions should not be affected though there may be a spread if swapping from a depegged stablecoin into the long collateral needed for the position, e.g. to long ETH, ETH collateral is needed. Alternative swap platforms could be used to execute the swap before opening the long position. The interface should show a warning if there is a large spread for this.