Rails

About this explorer

The Rails f(x) explorer shows every long position that has borrowed fxUSD against wstETH or WBTC in f(x) Protocol V2 on Ethereum, whether still open or closed, and the full history of each one. It also shows each of the two pools, one for wstETH and one for WBTC, as a whole: its totals and the ticks that group its positions.

How it works

  • f(x) acts on whole ticks. A rebalance, a liquidation or a redemption changes every position in a tick at once and in proportion, so the position has no transaction of its own that shows the change.
  • Funding is charged across the whole pool: it lowers every position's collateral in proportion, and no transaction records it. When a liquidation cannot cover all of a tick's debt, the shortfall is spread over every other position in the pool.
  • A rebalance or a liquidation repays debt from the position's collateral. The owner keeps the fxUSD that was borrowed. The position's NFT also stays with its owner after the position closes, and the owner can add collateral to it again.

Glossary

Pool
: One of the two f(x) markets for long positions: one takes wstETH as collateral and the other takes WBTC. Each pool holds its own positions, totals and ticks. Docs: xPOSITION
Position
: A leveraged long on wstETH (wrapped staked ETH) or WBTC (wrapped bitcoin), which the docs call an xPOSITION. The owner locks that token as collateral and borrows fxUSD against it, so the position gains or loses more than the collateral alone when its price moves. The pool mints each position as an NFT. Docs: xPOSITION
fxUSD
: The stablecoin that a position borrows. It aims to be worth $1 but can trade away from that price, so Rails shows debt as an amount of fxUSD and never converts it into dollars. Docs: Peg protection
Debt ratio
: A position's fxUSD debt divided by the value of its collateral at the oracle price, which is the collateral price that the pool reads from an outside price feed. The docs call this ratio LTV, short for loan-to-value. It rises when the collateral's price falls. Docs: Risk parameters
Tick
: A group of positions whose debt ratios sit within 0.15% of each other. The pool records each position as a share of its tick, and it rebalances or liquidates a whole tick at once. Docs: Ticks, Band system
Keeper
: Any address that calls a rebalance or a liquidation. It is paid a bonus in collateral for doing so, and the protocol keeps a share of that bonus. Docs: Risk parameters
Rebalance
: The rebalance line is a debt ratio that the pool sets. Once a tick reaches it, a keeper repays part of the tick's debt and takes collateral worth that debt plus the bonus. The positions in the tick stay open, and their owners keep the fxUSD they borrowed. Each position loses some collateral and some debt, in proportion, and the tick's debt ratio is brought back down to the line. Docs: Rebalancing
Liquidation
: The liquidation line is a second, higher debt ratio that the pool sets. Once a tick reaches it, a keeper repays the tick's whole debt and takes collateral worth that debt plus the bonus. Any collateral left over stays with each owner. Docs: Liquidation process
Redemption
: While fxUSD trades below its peg, anyone may pay fxUSD to receive collateral at the oracle price. A redemption takes from the ticks with the highest debt ratio first, and at most 20% of a tick in one redemption. It helps bring fxUSD back toward $1. Docs: Redemption
Funding
: A yearly charge on collateral. It is taken continuously, so no transaction records it. The funding rate that Rails reads from each pool follows Aave's USDC borrow rate, and the docs say Funding Level I applies under peg conditions. Docs: Fees

Listing

  • A summary at the top gives each pool's number of open positions, collateral and fxUSD debt.
  • Each card shows one position: its holder, its collateral and the dollar value of that collateral, its fxUSD debt, its debt ratio and its status.
  • A position's status is open, closed or ever liquidated. The listing shows open positions by default, and searching for a holder or a position shows every status.

Position page

  • The top card shows the collateral, the debt and the debt ratio as the pool reports them, with the prices at which the tick would be rebalanced or liquidated.
  • Beside the pool's figures, the page shows what the position's own transactions add up to. The difference between the two figures is what funding and tick-wide events changed, and a table below splits it by the period between two transactions.
  • The timeline lists each of the position's transactions and places the tick-wide events that reached the position between them.

Pools page

The pools page shows each pool's totals, funding rate and oracle prices. Under them is the pool's tick ladder, a drawing of each tick's debt along the debt ratio, set against the pool's borrow cap, which limits how much can be borrowed, and the rebalance and liquidation lines. A table lists every tick, and the debt of the ticks adds up to the pool's total. See the pools and their tick ladders.

You can search by holder address or position number. The listing filters by status, pool, size and transactions, and sorts by recent activity, collateral, debt, debt ratio, event count or creation.

Tap the (i) beside any figure to see where it comes from. Inside, the ? explains that kind of event in general.

f(x) short positions live in a separate part of the protocol and aren't covered here.See what Rails covers on each Ethereum explorer

Official documentation: f(x) Protocol documentation