FLEX Protocol
How it works
The guide

How FLEX works: HEXDC, a stablecoin borrowed against HEX on PulseChain

FLEX lets a HEX holder borrow without selling. You lock HEX in a loan and draw HEXDC, a stablecoin aimed at one US dollar, with no interest and no due date. What you owe the protocol is a ratio: the HEX in the loan must stay worth more than 110% of the HEXDC you drew. FLEX is a Liquity v1 fork on PulseChain, and this guide walks through each part of it: loans, the Stability Pool, FLEX staking, redemption, liquidation, and the risks that come with the design.

A loan, step by step

A loan on FLEX is a position that holds HEX and owes HEXDC. Liquity calls it a trove; the console calls it a loan. You open one by depositing HEX and choosing how much HEXDC to draw. Three things are added to what you owe: the HEXDC you receive, the one-time borrowing fee, and a 50 HEXDC liquidation reserve that sits in the loan as a bounty for whoever liquidates it if it ever fails. The reserve is cancelled when you close the loan, so it costs nothing unless the loan is liquidated.

The only rule you must keep is the collateral ratio: the value of the HEX in the loan, at the protocol’s oracle price, divided by the debt. It must stay above 110%. The oracle price moves with the market, so the ratio moves with it, and a loan opened at 150% can be under 110% after a bad day. Below 110%, anyone can liquidate the loan.

There is no interest and no repayment date. You can repay part of the debt, add or withdraw HEX, or draw more HEXDC at any time, as long as the ratio stays above the line. To close the loan you return the full debt, minus the reserve, and receive all of the HEX back.

The borrowing fee is not fixed. It starts from a floor of 0.5%, rises when people redeem HEXDC for HEX (each redemption pushes the protocol’s base rate up), and decays back toward the floor over the following hours. It is capped at 5%. The console shows the fee that applies right now before you sign.

Open or adjust a loan in the console: Your position.

The numbers, read from the contract

These constants are written into the FLEX contracts and cannot be changed by anyone. The page you are reading checks them against TroveManager every time it loads.

Minimum collateral ratiobelow it a loan can be liquidated110%
System ratio for recovery modetotal collateral over total debt150%
Smallest loannet debt at opening450 HEXDC
Liquidation reserveadded to every loan, cancelled on close50 HEXDC
Borrowing feeone time, floor to cap0.5% to 5%
Redemption fee floorrises with redemption volume0.5%
Liquidator’s share of the collateralplus the HEXDC reserve0.5%

Checked against the contract when this page loads; a figure turns green when it matches and amber, with the contract’s own value, if it ever differs.

FLEX counts in 8 decimals, because HEX itself has 8 decimals; HEXDC and FLEX follow it. Every ratio and fee inside the contracts is scaled by 100,000,000 rather than the 10^18 that Liquity uses, and the console handles that scale itself.

The rates that move, the borrowing and redemption fees right now, are in the console: Protocol.

The Stability Pool

The Stability Pool is a pot of HEXDC that stands ready to pay off liquidated loans. Anyone can deposit HEXDC into it and withdraw at any time. When a loan is liquidated, HEXDC equal to its debt is burned from the pool and the loan’s HEX is handed to the depositors, split by their share of the pool.

Because liquidation happens when a loan is worth less than 110% of its debt but usually still more than 100%, the HEX a depositor receives is normally worth more than the HEXDC taken from them. That difference is the pool’s income. Depositors also receive newly issued FLEX on a schedule that front-loads the early years and slows over time; the console shows the current issuance next to the pool.

The pool is also the system’s first line of defence. If it holds less HEXDC than a liquidated loan owes, the remaining debt and collateral are spread across all other open loans, which raises their debt and their collateral together. The console shows what share of all debt the pool covers, and says so plainly when it is below full cover.

Deposit or withdraw in the console: Stability Pool.

Staking FLEX

FLEX is the protocol’s second token. Stake it and you receive the protocol’s fees as they are paid: the borrowing fee arrives in HEXDC, the redemption fee arrives in HEX. Rewards are split by each staker’s share and can be claimed at any time. There is no lock-up; unstaking is immediate.

Staking does not protect the system and carries no liquidation risk. Its return depends entirely on how much borrowing and redeeming happens, which the console shows as the live fee rates and the total staked.

Stake or unstake in the console: Staking.

Redemption: turning HEXDC back into HEX

Anyone holding HEXDC can redeem it against the protocol, not against a pool, for one dollar’s worth of HEX per HEXDC at the oracle price, minus the redemption fee. The HEX comes out of the loans with the lowest collateral ratios first. Those borrowers lose collateral but lose the same value of debt, so their ratio goes up; a loan redeemed in full has its remaining HEX set aside for its owner to claim.

Redemption is what holds HEXDC from falling far below one dollar: if it trades at 90 cents, buying it and redeeming it for a dollar of HEX is a profit until the price recovers. The fee starts at 0.5% and rises with the volume redeemed in a short time, so a large redemption pays more than a small one.

This console redeems whole loans only, and shows you which loans a redemption would touch and what it would return before you sign.

Redeem in the console: Redeem & liquidate.

Liquidation

A loan below 110% can be liquidated by anyone, at any time, in one transaction. The Stability Pool pays the debt and takes the HEX. Whoever sends the transaction receives the loan’s 50 HEXDC reserve plus 0.5% of its HEX, which is what makes it worth someone’s gas to keep the system clean. The borrower keeps the HEXDC they drew and loses the HEX.

The console lists every loan that is currently below the line and lets you liquidate it, and it tells you what the reward is worth against the gas.

See the loans below the line, and liquidate one, in the console: Redeem & liquidate.

Recovery mode

The protocol watches its own total ratio: all HEX in all loans over all HEXDC debt. If that falls below 150%, the system enters recovery mode. In recovery mode, loans below 150% can be liquidated, not only those below 110%, and any collateral above 110% of a liquidated loan’s debt is set aside for the borrower to claim. New borrowing is allowed only if it leaves the loan at 150% or better and, for an existing loan, raises its ratio; the borrowing fee drops to zero for it. Withdrawing collateral and closing loans are paused until the system ratio is back above 150%.

The console shows the system ratio in its hero and warns at the top of the page when recovery mode is on.

The system’s mode, rates and prices right now, in the console: Protocol.

Why HEXDC stays near a dollar

Two hard rules bound the price. Redemption puts a floor under it: HEXDC can always be exchanged for a dollar of HEX at the oracle price, minus the fee. The 110% minimum ratio puts a ceiling on it: if HEXDC trades far above a dollar, opening a loan and selling the HEXDC is a profit, which adds supply until the price comes back. Between those rules the market price on PulseX can drift, and it does when the pool is thin.

HEXDC trades on PulseX. The pool is thin next to the debt outstanding across all loans, so a large repayment can move the price or find no HEXDC to buy at all. The console shows the live pool depth beside the total debt and warns before it lets anyone try to buy more HEXDC than the pool holds.

What can go wrong

FLEX once paid LP rewards to PulseX pools for HEXDC/HEX, FLEX/HEX and PLSX/EARN. Those rewards ended on 5 May 2025. Wallets that still hold LP tokens or earned FLEX inside the farm contracts see a Finished farms card in the console and can withdraw from there.

The oracle the contracts use right now, and every other address the console talks to, are listed under Contracts in the console’s footer: Show the addresses.

Verify what this console does

The console is a static page with no backend and no account. It reads the chain through public RPC endpoints, asks your wallet to sign only the action you chose, and never asks for a message signature. Every contract it talks to is listed in its footer with an explorer link, and the same list lives in its config.js, which you can read in your browser. Before you sign anything, compare the recipient your wallet shows against that list.

The core contracts on PulseChain: TroveManager, BorrowerOperations, StabilityPool, Staking; the tokens: HEX, HEXDC, FLEX. The protocol’s own documentation is at docs.powercity.io/flex-protocol; the Liquity v1 design it follows is described at docs.liquity.org.

The same community runs a console for EARN, the sister protocol that issues PXDC against PLSX: earnpulsex.fyi, with its own guide at earnpulsex.fyi/learn/.

Questions people ask

Is FLEX a Liquity fork?

Yes. FLEX is a deployment of the Liquity v1 contracts on PulseChain with HEX as the collateral, HEXDC as the stablecoin and FLEX as the protocol token. The 110% minimum ratio, the 150% recovery threshold, the Stability Pool, staking and redemption are the Liquity v1 design. The oracle, the 8-decimal scale and the tokens are what differ.

Does borrowing against HEX affect my HEX stake?

No, and it cannot. A FLEX loan holds liquid HEX, the token in your wallet. HEX that is staked inside the HEX contract cannot be deposited; you would have to end the stake first. A HEX holder can use FLEX to avoid ending a stake, borrowing HEXDC against the liquid HEX they hold instead.

Open a loan with liquid HEX in the console.

What is HEXDC?

HEXDC is the stablecoin FLEX issues. Every HEXDC comes from a loan holding at least 110% of its value in HEX, and any HEXDC can be redeemed for one dollar’s worth of HEX at the oracle price, minus the redemption fee. Those two rules hold it near one US dollar; its price on PulseX can still drift when the pool is thin.

Is there interest on a FLEX loan?

No. A one-time borrowing fee, at least 0.5% and at most 5% of the HEXDC drawn, is added to the debt when you borrow, and nothing accrues after that. The loan can stay open for as long as its ratio holds.

The fee that applies right now, in the console.

How much HEX do I need?

Enough to keep the loan above 110% of its debt at the oracle price, with at least 450 HEXDC of net debt to open. A ratio just above 110% is a liquidation waiting for a red candle; most borrowers keep far more headroom.

Open a loan in the console, which shows the ratio and the fee before you sign.

What happens when a loan is liquidated?

The debt is paid from the Stability Pool and the HEX goes to the pool’s depositors, minus the small reward paid to whoever triggered it. The borrower keeps the HEXDC they drew. In recovery mode, collateral above 110% of the debt is set aside for the borrower to claim back.

The loans that can be liquidated right now, in the console.

Why use this console rather than the official site?

Either works; both talk to the same contracts. This console needs no account, holds nothing, lists every address it uses in its footer so you can compare them against the explorer before you sign, and is built and run by the FLEX community rather than by the team that deployed the protocol.