- The token bonding curve is a smart contract that holds assets of reserve currencies to enable forward guidance price predictability for the XOR token
- At the launch of the SORA v2 network, 350,000 XOR will already be in existence that will not have any reserve asset backing
- To help collateralize the token bonding curve, 2.5 Billion PSWAP are provided as special bonus rewards when buying newly minted XOR from the token bonding curve
- These PSWAP rewards will start at launch
- DOT and KSM held in reserves by the token bonding curve will be used to secure parachain slots for the SORA ecosystem
The SORA token bonding curve acts as the decentralized, on-chain manager of the XOR token. It works by taking in reserve assets and minting new XOR, or conversely, de-mints XOR and releases reserve assets.
The XOR token supply is elastically determined through market forces using the token bonding curve. It is important to note that the token bonding curve does not guarantee stability of the price of XOR, but rather a measure of forward-guided price predictability.
At the initial beta launch, the token bonding curve will support the following assets as reserves:
- DOT (at full launch, not beta launch)
- KSM (at full launch, not beta launch)
After bridges to Kusama and Polkadot relay chains are complete, the token bonding curve will be extended to support KSM and DOT as reserve assets.
Decentralized Reserve Collateralization Incentives
At the launch of the SORA v2 network, 350,000 XOR will already be in existence. This means that the SORA token bonding curve will have an unfunded liability of 350,000 XOR worth of DAI, 350,000 XOR worth of ETH, 350,000 worth of VAL, and 350,000 XOR worth of PSWAP.
To ensure that sufficient reserves in the SORA token bonding curve are built up, 25% of the PSWAP token supply (2.5 billion PSWAP) will be used as rewards to those who buy XOR from the SORA token bonding curve using reserve currencies, except for PSWAP and VAL. PSWAP bonus rewards for putting VAL and PSWAP tokens into the token bonding curve are not available, as this would be analogous to selling VAL and PSWAP, which would be an anti-soralutionary anathema!
After KSM and DOT are available on the SORA network, double rewards will be given to KSM and DOT, as these two currencies are needed to secure parachain slots for the SORA ecosystem (that’s right: the SORA Parliament will join the parachain auctions using reserves from the token bonding curve).
Previously, it was stated that PSWAP would be used to reward people for parachain auctions, but now this will not take place and users will not get PSWAP for locking up DOT or KSM, only for using their DOT and KSM to buy XOR from the token bonding curve, and then the DOT and KSM from the token bonding curve will be used for the parachain auctions as needed.
There are 2.5 Billion PSWAP reserved for incentivizing the build up of reserves in the token bonding curve. The rewards will be distributed according to the following calculations.
Unfunded liabilities of the token bonding curve is the difference between the ideal liabilities and actual liabilities. PSWAP rewards are given to users for reducing the ratio between unfunded and ideal liabilities. The formula,
is used to determine R, the reward amount, when buying from the token bonding curve, where a is the ratio of unfunded liabilities to ideal reserves of the token bonding curve before the trade, b is the ratio of unfunded liabilities to ideal reserves after the trade, P is 2,500,000,000 (the number of PSWAP total rewards), and N is the number of reserve currencies that are applicable for the PSWAP reward bonuses (initially 2).
For example, if the token bonding curve has no reserves and we assume unfunded liabilities of $270,000,000, then the first $1000 worth of DAI used to buy XOR would get approximately a 3,700 PSWAP token bonus for reducing the under-collateralization ratio from 270,000,000/270,000,000 to 270,000,000/270,000,800 (unfunded liabilities/ideal reserves). This is because only $800 of the $1000 (80%) goes into reserves and the unfunded liabilities of $270 million are the same. Over time, XOR will be burned in transaction fees, so the unfunded liabilities will get better naturally over time.
After being earned, rewards are not given instantly to the user. As with the Polkaswap liquidity reward farming program, the special PSWAP rewards for users who purchase XOR from the token bonding curve are distributed as a fraction of the daily burn. This gives guarantees that a sudden supply of tokens will not immediately flood the market and gives clear forward guidance about the supply of tokens in circulation.
The vesting speed depends on the amount of PSWAP burned from Polkaswap usage fees. Farmed PSWAP are vested as Strategic Bonus Vesting, where the amount vested is a percentage of the daily amount of PSWAP burned in transaction fees, as shown in the figure below.
PSWAP Rewards Claiming
Users can claim only vested tokens and the claiming will be possible at any time as long as there are non-zero rewards for an account.
Buy Price Function
The buy price function of the token bonding curve is the price at which XOR can be bought at.
The current price of the buy price function depends on the supply of XOR in circulation, and is defined by the line y=mx+b where b is the starting price of the token bonding curve and the slope, m := 1/1337 (meaning $1 increase for each 1337 XOR in circulation), and y is the current price quote for XOR from the token bonding curve.
b, the starting price of the token bonding curve, will be decided right before launch and will first be made public in the source code deployable that the community will have to vote on to deploy and use the DEX.
Example: Buying XOR with DAI
- 1,400 DAI in reserves
- Current Buy price for XOR from the token bonding curve is $306
- The secondary market has 5 XOR and 1,400 DAI in an xy=k constant product liquidity pool
If the user wants to buy 5 million DAI worth of XOR, then there is not enough XOR in the secondary market, so the primary market (token bonding curve) will automagically be activated for part of the order. First, we should figure out the amount of XOR to be bought on the secondary market before the price asymptotically rises so high that the token bonding curve will be cheaper.
The k constant in the secondary market is 5*1400=7,000 , giving an average price of $280 per XOR at the start. We can consider that after the trade, x and y change to new values, x2 and y2, such that x2*y2=k. To find how much XOR we can trade before the price will exceed $306 (that is, y2/x2=306), we calculate the amount of XOR that would be in the secondary market liquidity pool when the price is $306:
This means that we can buy
leaving us $4,999,936.442689882 left to buy XOR from the token bonding curve (ignoring transaction fees).
Sell Price Function
To calculate the difference between the ideal reserve amount and the actual reserves, we just subtract the area under the actual reserve curve from the area under the ideal curve.
It should be noted that there will be higher fees for selling into reserves that are undercollateralized:
- under 30% collateralized: +1% fee
- under 20% collateralized: +3% fee
- under 10% collateralized: +6% fee
- under 5% collateralized: +9% fee
These extra fees will be burned.
Example: Selling XOR for DAI
- 50,000,000 DAI in reserves
- Current sell price for XOR from the token bonding curve is $255
- The secondary market has 5 XOR and 1,400 DAI in an xy=k constant product liquidity pool
If the user wants to sell 5 XOR for DAI into the token bonding curve, then we use xy=k constant product curve to calculate how much DAI will be given to the user for 5 XOR. Because there are 50 million DAI, we pretend there are also 50 million DAI worth of XOR, which would be 50,000,000/255=196,078.431372549 XOR. It is important to note that these XOR don’t actually exist, but we just pretend they exist as the token bonding curve is an infinitely liquid market maker anyway. Doing this allows us to calculate k as (50,000,000/255)*50,000,000=9,803,921,568,627.451.
This kind of fiction is necessary because while the ideal reserves are equal to the area under the sell-price function, often under-collateralization will exist and the sell-price function will have a curve with a much steeper slope, as shown illustratively in the figures below.
In this example, after the user sells 5 XOR, there will be 196,078.431372549+5=196,083.431372549 pretend XOR (because these XOR don’t really exist and even the 5 that are inputted shall be de-minted) in the token bonding curve. After the trade, k should still be the same, so there will be
in the token bonding curve reserves and the seller will have gotten 50,000,000–49,998,725.032511674=1,274.9674883261323 DAI for her 5 XOR.
Some Notes on the Multicollateral Bonding Curve
When user deposits collateral token which is not a reference token (i.e., not DAI) the buy function determines its reference (DAI) price in order to perform calculations w.r.t. the USD representation.
In sell function XOR price is 80% of buy function and a reference (DAI) price for collateral tokens, apart from these USD price conversions model matches above description.
To calculate actual reserves, the cumulative DAI price of reserve tokens is used in rewards calculation.
Use of the Token Bonding Curve Margin
When users buy from the XOR primary market (token bonding curve), 20% of the amount of deposited tokens are put into a pool that periodically buys back and burns XOR and then the amount of XOR burned is re-minted and distributed proportionally as shown below. The other 80% of deposited tokens are stored in the token bonding curve as reserves.
The 20% buy-sell margin is distributed to the following uses:
- VAL buy back and burn: 1%
- VAL holders allocation: 9%
- SORA citizens: 0.1%
- Stores and shoppers: 0.4%
- Parliament and development: 0.5%
- Projects: 9%
In this way, the SORA ecosystem can be funded into perpetuity and properly incentive a diverse set of critical actors.
Unidad de FOMOnto
Those who have been paying attention have probably already noticed that the token bonding curve as initially designed inextricably links XOR to the value of the USD. This is potentially a problem because the purchasing power of the USD can fluctuate, exogenously impacting the value of XOR.
In order to link XOR to real purchasing power rather than a specific fiat currency, the token bonding curve should in the future use the Unidad de Fomento (UF) index, which is an inflation-indexed unit of account.
Long term, the SORA Parliament should create and maintain its own index of goods for the token bonding curve to use, in order to target forward guidance of purchasing power.
The SORA token bonding curve acts as a completely decentralized monetary authority for the XOR token, autonomously managing the XOR token supply using market forces. The provision of reserves in the token bonding curve is crucial to maintain forward exchange rate guidance for XOR.
While the token bonding curve, by nature of its upward sloping buy and sell functions naturally provides incentives for early adopters, additionally 25 million PSWAP tokens (25% of the fully diluted PSWAP supply) are provided as extra bonuses for those who buy XOR
Large sums of DOT and KSM that are expected to be locked up in the token bonding curve also make a convenient pool from which the SORA ecosystem can borrow DOT and KSM in order to win parachain auctions, and this is exactly the current strategy for funding the required parachains ad infinitum.
In addition to SORA Farming and the token bonding curve PSWAP bonus rewards, there will be 1 other special PSWAP bonus reward program, which will be introduced next week!
About SORA NEO Network, Polkaswap, and Fearless Wallet
SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
One of the DeFi applications that will run on the SORA network is Polkaswap, a non custodial liquidity aggregating, cross chain AMM DEX designed uniquely for the Polkadot ecosystem with boundless liquidity through its one-of-a-kind Aggregate Liquidity Technology (ALT).
Fearless Wallet is a mobile wallet designed for the decentralized future on the Kusama and Polkadot networks, with support for iOS and Android platforms. An awesome user experience, fast performance, and secure storage for your accounts. Fearless wallet will integrate Polkaswap for easy, decentralized swaps of assets.