Technical specification

About this project

How do you turn your volatile crypto assets into a stable store of value? How do you leverage your digital holdings for access to a new, secure form of money?

EOSDT’s core components work in concert to let users generate stablecoins pegged to the US dollar and backed by their own crypto holdings. The EOSDT stablecoin is a useful store of value with a variety of applications, like hedging against market turmoil, providing fiat-like quotes for currency pairs on decentralized exchanges, and even making online payments with merchants that accept cryptocurrency. It allows for more intuitive crypto transactions — one EOSDT always equals one USD.

There are four main smart contracts, operating as follows:

The market data smart contract references cryptocurrency prices from the external market through a trustline provided by, Delphioracle, and LiquidApps.

The Position Smart Contract receives a user’s cryptocurrency and holds it without any human involvement or custody risk.

The Liquidation Smart Contract lets “guardians” and market participants make money by liquidating under-collateralized user positions. This happens automatically when their collateral drops below the critical level of 130%. Guardians can claim liquidated collateral or surplus EOSDT at a markdown from current market prices, an associated fee will be payable in NUT tokens, which are then redistributed back to the system.

The Governance Smart Contract lets users who hold NUT tokens submit proposals to change the EOSDT parameters on risk and stability. NUT holders can also vote for a list of EOS block producers they want to support with system’s EOS collateral. This feature drives the growth, development, and maturity of the entire EOS ecosystem.

EOS uses a delegated proof-of-stake concept, which grants the community lots of flexibility in making instant high-level decisions, like rollbacks and bug fixes, by majority among designated stakeholders. This approval voting system stakes the top 21 EOS block producers to produce blocks — EOS token holders must stake tokens for three days in order to vote. The top 21 candidates form the block-producing core, and the rest become backup block producers. Their priority is also determined by the number of votes they get.

Staking an EOS coin is like paying an opportunity cost — you can't unstake it until three days later, and you don’t have any access to it until then. This little cost grants you access to the entire EOS system. If you stake them for bandwidth, it means you can send transactions, and the size of transaction will consume your bandwidth.

EOSDT uses the EOS blockchain because it is faster than Ethereum, has near-zero transaction fees, and offers great infrastructure for implementing cross-chain solutions. It presently supports the EOS cryptocurrency.

Technology review

The best decentralized applications not only offer fast transaction processing times, but an infrastructure robust enough to offer a high-quality experience to lots of users at once. EOSDT is built on the EOSIO technology stack because it offers decentralized storage and general purpose infrastructure for running EOS dApps more effectively than competitors. Transaction fees are effectively zero here, there’s a thoughtful resource balancing process, and transaction processing times are faster. These features substantially distinguish EOSIO technology from other second-generation blockchains currently on the market.


EOSDT’s stability comes from backing the EOSDT supply with the equivalent amount of USD collateral at minimum. EOSDT is pegged to the value of 1 USD to achieve this. An external price feed values the collateral, and the system constantly monitors the ratio of collateral to the total EOSDT supply to make sure it always meets the minimum threshold.

There are several external actors and internal mechanisms that help maintain market equilibrium.


These are large actors who generate a lot of EOSDT for their massive collateral stakes. They’re willing to make the market at various exchanges by profiting on the price spread between EOSDT and USD.


These are actors willing to profit on EOSDT’s price deviations from the 1 USD peg. The mechanics behind arbitrage are pretty straightforward: when the price of EOSDT rises above 1 USD, there’s added incentive to generate it by supplying collateral and selling it on the market. This increases the supply of EOSDT and brings its price down to 1 USD.

When price of EOSDT falls below 1 USD, there’s an incentive for position holders to buy EOSDT on the open market and pay back their positions. This reduces the supply of EOSDT and brings its price up to 1 USD.

Equilibrium fee

Changes to the equilibrium fee incentivize position holders repay or expand their EOSDT holdings, consequently pushing EOSDT price up or down until it finds equilibrium. The system applies the Equilibrium fee every time a user takes an action, and calculates this fee based on an annual percentage rate defined by governance smart contract. Since launch, the Equilibrium fee has been set to 0.0% APR.

If there’s an excess market supply of EOSDT, governance may decide to raise the applicable fee to induce position holders to sell off their “expensive” positions, lowering the supply of the stablecoins. If there’s excess demand for EOSDT, governance may lower the interest rate to induce users to enter more “cheap” positions, increasing the total supply. This is reminiscent of how central banks adjust short-term interest rates to control the economy’s supply of money.

A bundle of smart contracts

This documentation serves as an introduction to the EOSDT, giving you an understanding of how it was designed.

EOSDT’s core logic consists of the following smart contracts:

Account nameSource Contract NameDescription



This contract implements the position management logic for EOSDT users


eosio.token + temporary burn

The stablecoin contract is based on the native eosio.token contract, but has additional burn and issue methods to help control the system’s supply.


eosio.token + permanent burn

This utility token contract manages the Native Utility Token (NUT). It’s based on the native eosio.token contract, but has an additional permanent burn method for controlling the utility token’s supply mechanics.



This contract stores and refreshes exchange rates for user collateral and utility tokens. It gets its data from the external service (now known as Provable).



This contract handles the liquidation of undercollateralized user positions.



The framework’s governance contract provides a means for NUT token holders to vote on changing the framework’s parameters.



The block producer voting proxy account. It will be used for REX staking.

Positions contract

The positions contract sets the logic for a user’s position management. It also stores the framework’s global risk parameters, which specify how the system behaves and govern the position creation process and a user’s position management. EOSDT’s global risk parameters are configured by a governance mechanism, which means that NUT holders get to vote on proposals to change the framework’s parameters. If the majority agree on new parameters, those become the norm.

ctrsettings table:

SettingsOn-Chain NameDescription

Global lock


Indicator of the state of shutdown, will be set to one if entire system gets undercollateralized

Time shift


Used for testing when we shift time to accrue fees.

Liquidator account


Reference to liquidator contract

Oraclize account


Reference to rates provider contract

EOSDT token


Reference to EOSDT token contract

NUT token


Reference to NUT token contract

Admin fee


This is set to 1% per year by default, payable in NUT utility tokens.This mechanism permanently reduces the NUT supply when EOSDT is repaid.

Equilibrium fee


This is 0% per year by default, payable in EOSDT stablecoins as an interest rate on EOSDT.

Critical collateralization ratio


The minimum acceptable ratio of pledged collateral to loan value. This is set to 130% by default.

Liquidation penalty


The system charges a 15% liquidation penalty by default, taking that percentage of the position’s collateral.

Liquidator discount


Liquidated EOSDT and collateral gets a 3% discount to incentivize arbitrators to redeem it from the liquidation contract.

Liquidation price


The final price set when the system undergoes global settlement and the position contract is locked for further user fund settlements.

NUT liquidation weight


This parameter defines what fraction of the liquidation penalty will go to separate EOS balance on the liquidator for buying out with NUT. This parameter is set to 12% currently.

NUT discount


Liquidated collateral and profit from REX is available to buy from the liquidator for NUT at a 6% discount from the current NUT oracle price.

REX Profit Factor


This parameter defines the profit distribution from REX. Currently, 88% of REX profit goes to collateral holders and another 12% goes to the liquidator contract to buy NUT.

Voting period


The number of seconds the system votes to reset vote decay. Will be used in BP voting/REX functionality. Currently not used, as voting happens in real-time. This is 10 days (in seconds) by default.

Stake period


This specifies the interval at which the system stakes collateral to the REX, as well as collects profit from REX. It’s set to 5 days (in seconds) by default.

Reserve ratio


Shows what percentage of total EOS collateral ends up inside the REX.

Staking weight


Defines the fraction of total system collateral being staked every stake period into the REX.

Proxy account


Reference to voting proxy account.

Governance account


Reference to governance contract.

Referral stake


This parameter specifies the amount of NUT tokens participants in our referral program need to stake to positions contract to be able to funnel users to the contract on their behalf and get fraction of equilibrium fees.

Referral ratio


Fraction of equilibrium fee attributable to referrals when users terminate positions through their web interfaces. By default = 50%

Actions and methods for position contracts

Method nameParameterDescription
User invoked actions
positionaddCreate an empty position entity and set the caller to be the owner.

cleos push action eosdtcntract positionadd -p [email protected]

posandrefaddCreate a position used by referrals.

cleos push action eosdtcntract posandrefadd '{"referral_id":"2"}' -p [email protected]

positiondelCheck that a position is EOSDT-free. Return collateral to a position owner. Close the position.

cleos push action eosdtcntract positiondel '{"position_id":"1"}' -p [email protected]

positiongiveTransfer position ownership to a new account.

cleos push action eosdtcntract positiongive '{"position_id":"1","to":"blablablabla"}' -p [email protected]

collateral add (transfer)Add collateral to the position.

cleos push action eosio.token transfer '{"from":"testtesttest", "to":"eosdtcntract", "quantity":"10.0000 EOS", "memo": "position_id:0"}' -p [email protected]

colateraldelRemove collateral from the position.

cleos push action eosdtcntract colateraldel '{"position_id":"1","collateral":"1.0000 EOS"}' -p [email protected]

debtgenerateGenerate stablecoins on the position.

cleos push action eosdtcntract debtgenerate '{"position_id":"1","debt":"1.000000000

debtburnback (transfer)Pay back and burn EOSDT

cleos push action eosdtsttoken transfer '{"from":"testtesttest", "to":"eosdtcntract", "quantity":"0.500000000 EOSDT", "memo": "position_id:0"}' -p [email protected]

closeClose existing position

cleos push action eosdtcntract close '{"position_id":"1"}'

margincallClose an undercollateralized position, move a position’s EOSDT, and transfer collateral with a penalty to the liquidator.

cleos push action eosdtcntract margincall '{"position_id": "30"}' -p [email protected]

margincalldeA method that gets called when the oracle service calls our contract with a rates update. If there are positions to be liquidated, deferred margin calls will be created and positions will be liquidated in the next blockchain transaction.

cleos push action eosdtcntract margincallde -p [email protected]

Internal system actions
margincalposClose multiple positions by sorting ltvratios table in order of ascending ltv_ratioN/A
reinitThis private system function calculates the accrued fees between consecutive calls before transferring it to the liquidator contract. This function is called every time a position method is called.N/A
receiveeosThis authenticates a liquidator account and transfers a requested quantity of EOS to the liquidator contract.N/A
receivestableThis authenticates a liquidator account and transfers a requested quantity of EOSDT to the liquidator contract. (used in surplus auctions when the equilibrium fee isn’t zero)N/A
fillltvratioPopulate ctrltvratios contract tableN/A
delltvratioClean ctrltvratios tableN/A
currentverReturns current build version for debug purposesN/A

This locks the positions contract, disabling all methods related to position management except close().

It also fixes the EOS/USD price, which facilitates user reimbursements. It sets the liquidation penalty and discount to 0%, and the critical collateralization ratio to 1.

This method is used in global shutdown mechanics.

settingssetUsed to set liquidator contract settings when contract deployment happens.N/A
Unstake and withdraw all collateral from REX (manually in case of emergency with REX)
This actions should be called in specified order.
voteproducerAction that every voting_period votes for eosdtbpproxy.N/A

Web application (self-service gateway)

Equilibrium users may visit to generate collateral-backed stablecoins. All communication with the positions contract is supported via several desktop and mobile wallets. The full list of supported wallets is available at

Users can deposit and withdraw collateral, generate stablecoins and and pay them back, and move or close their positions from within an intuitive interface.

Liquidator contract

This contract manages the balance between surplus EOSDT and collateral. It also tracks the total amount of EOSDT liability from liquidated positions.

Surplus EOSDT accumulates on the liquidator contract, accruing from the total system EOSDT supply based on the current equilibrium fee. That EOSDT is sold for collateral — a so-called “debt auction.” Debt auctions help distribute the system’s surplus EOSDT.

Collateral balance accumulates on the liquidator contract from positions that were subject to a margin call. This collateral is sold in exchange for EOSDT — a so-called “collateral auction.” Collateral auctions cover EOSDT liability originating from positions that got a margin call.

Liquidator contract actions and methods

Method / TransferDescriptionExample

Transfer EOS

This transfer buys surplus EOSDT from the liquidator contract at a discount on the peg price by supplying collateral.

cleos push action eosio.token transfer '{"from":"testtesttest", "to":"eosdtliqdatr", "quantity":"1.0000 EOS"}' -p [email protected]

Transfer EOSDT

This transfer lets you buy collateral from the liquidator contract at a discount on the current market price. It supplies surplus EOSDT to the liquidator contract.

cleos push action eosdtsttoken transfer '{"from":"testtesttest", "to":"eosdtliqdatr", "quantity":"0.500000000 EOSDT"}' -p [email protected]

Transfer NUT

This transfer buys EOS collateral from the liquidator nut_collat_balance pool for NUT at a discount.

cleos push action eosdtnutoken transfer '{"from":"testtesttest", "to":"eosdtliqdatr", "quantity":"1.000000000 NUT"}' -p [email protected]

Internal system actions


This action burns a minimum current “bad” EOSDT and surplus EOSDT on the liquidator contract. This internal function cancels out bad EOSDT by burning it and decreasing its supply.



Used to set liquidator contract settings when contract deployment happens.



When any position gets liquidated, the positions contract calls this method to increase the amount of “bad debt” on the liquidator contract.



This method checks that there are no positions left and it calculates a final auction price, the liquidator contract’s bad EOSDT divided by its EOS balance. It unlocks liquidator methods.



Returns current build version for debug purposes.



Initializes empty parameters table.


Guardian bot

The liquidator contract’s design lets EOSDT users compete for arbitrage opportunities. The liquidator contract constantly offers EOSDT and collateral for sale. A guardian bot can margin call risky positions and buy their bad EOSDT or collateral from the contract. Any user may run the bot to compete with other users, and they’ll be buying surplus EOSDT and/or liquidated collateral at an incentivizing liquidation discount.

There’re also opportunity for buying out all the excess EOS, which accumulates on liquidator contract from various fees: liquidations, rex profits, and block producer rewards. The bot allows for buying this EOS with NUT tokens at a discount. NUT tokens then get partially redistributed back to governance contract and partially get burned, reducing the total supply.

The guardian bot works in conjunction with the guardian contract and on-chain liquidations.

Rates contract

EOSDT’s stability hinges on the real-time pricing for collateral, so that the system knows when to trigger margin calls for undercollateralized positions. Outside of accurately knowing collateral values, the system also needs a price for the NUT utility token to calculate the corresponding admin fee when users repay their stablecoins.

The system uses three different oracles for redundancy (Provable, Delphi Oracle, and Liquid Apps) and calculates the median rate based on the data provided by these oracles. That median value is a final reference price used in all on-chain calculations.

For a more detailed explanation of the rates contract, please visit Equilibrium framework knowledgebase and read about the rates contract there

Governance contract

EOSDT uses the native contract structure for system governance, but with the following modifications:

  1. There are two types of proposals: parameter change proposals and general proposals.
  2. Only NUT holders can create proposals.
  3. Proposals are valid for a maximum of 30 days.
  4. Expired proposals are frozen for three days.
  5. For a proposal to successfully pass, it requires:
  • A minimum of 51% of the current NUT supply to have been cast in the voting process, like a simple majority shareholder vote.
  • At least 55% of all votes were "Yes."

NUT holders can generate proposals and change system parameters, effectively governing how EOSDT develops and operates.

Global shutdown

The system can lock itself down to let EOSDT holders redeem their collateral. This global shutdown mechanism exists in case of black swan events or other unforeseen circumstances that bring sudden negative price movement to reality. When the system becomes undercollateralized and the system’s loan-to-value ratio drops below 1, it can automatically cease operation. When there are crucial updates to the system’s logic and it needs to migrate to new code, it can safely pause.

The global shutdown mechanism is a part of the positions contract.

Global shutdown actions and methods

Method nameDescriptionExample


This locks the positions contract, disabling all methods related to position management except close().
It also fixes the EOS/USD price pair, which facilitates user reimbursements. It sets the liquidation penalty and discount to 0%, and the critical collateralization ratio to 1.

Private system function


This method only works when the system is locked. It transfers bad EOSDT and position collateral after winding down all positions to a collateralization ratio of 1.

position_id:"2" type: "positiondel_internal"


This checks that there are no positions left and it calculates a final auction price, the liquidator contract’s bad EOSDT divided by its EOS balance. It unlocks liquidator methods.

Private system function


An auxiliary method to generate EOSDT at auction price when that EOSDT is needed to fulfill obligations elsewhere.


quantity:'1.0000 EOS'



Actions and Methods:

Method / TransferDescriptionExample

deposit / Transfer EOS

deposits EOS into the emergency fund contract.


quantity:'100.0000 EOS'




Withdraws EOS from the emergency fund contract. Withdrawals are subject to a 30-day lockup period.





Calculates how much EOS needs to be transferred to the liquidator contract to align the liquidator’s auction_price with liquidation_price. Reduces each position on the funds contract based on its relative weight.



The Equilibrium framework is a software service with a consensus based governance system. EOSDT and Native Utility Token (NUT) are not a security or a regulated instrument. The use of this site and the Equilibrium self-service gateway is subject to Terms and Conditions, by accessing this site you agree to these Terms.