This research proposal describes a collateral-backed stablecoin system implemented on a public blockchain, where the exclusive backing collateral is the native blockchain asset token, and where the stablecoin is pegged to the value of a widely accepted reference currency.
Other sections outline:
This section outline:
This research proposal describes a collateral-backed stablecoin system implemented on a public blockchain, where the exclusive backing collateral is the native blockchain asset token, and where the system is immutable and uses a decentralized oracle mechanism. Our proof of concept is implemented on Ethereum using Solidity, uses ETH exclusively for collateralization, uses a peg to $USD as its reference currency.
The collateral backed stablecoin systems ensures the stable value of a digital token, through securing collateral of equal or higher value, and by balancing token supply and demand as a response to market conditions, by adjusting monetary variables (eg fees and interest rates). Variations of such a system (eg MakerDAO’s DAI), are already offered on public blockchains, however our proposed system contains no on-chain governance process and no tokens for governance or equity. The proposal posits that eliminating these, in favor of an on-chain incentive system, reduces centralization, and increases the capital efficiency.
Below we describe the system actors, structure, and operations at various levels of detail, along with some new concepts. A proof of concept implementation of this idea is also available, written in Solidity.
The system maintains a list of medium (and high) trusted price feeds, sorted and weighted by both a price feed’s revenue pool as well as its issuance allocation. This formula ensures newcomer price providers cannot exert undue influence by instantaneous deployment of capital, while also making sure that loan taker choices in allocating issuance to feeds of their choice also affects the ranking.
The trust rank of each given price feed will be assessed by the system using a custom defined metric calculated by the following formula: trust weighting metric
= total issuance allocation
x (revenue pool balance
+ average revenue pool balance
)
The formula is chosen to ensure the ranking maximizes security of the system considering the notable potential attacks that can harm stable operation of the system. The formulation has the following properties:
50%
reduction in allocation will result in a 50%
reduction in the metric.2x
the average price feed pool balance will have a 3x
advantage over a new feed with pool balance 0
and the same allocation. A top price feed with 2x
the average price feed pool balance will have a 2/3x
advantage over an average feed pool balance with the same allocation.2x
the metric value of a brand new price feed with the same allocation but 0
revenue pool. That is if the new entrant secures 2x
the allocation of average feeds, it will be ranked above them.The aggregate delayed price is calculated each time the daily delayed prices are finalized, based on a process that aims to provide an accurate daily median price, while reducing or eliminating the chance of system abuse. The system takes the following steps:
20
medium but not high trust price feeds, as reflected by the trusted fee list being finalized10
reported delayed prices5
high trust price feeds back into the list and eliminates outliers again to reach up to 13
prices25%
the delayed price sub-system is designated to be in Dispute
state, which postpones liquidation finalizations and halts instant loans by reducing the instant loan limit rate to 0%
.5%
state is set to Unstable
and instant loan limit rate is set to 0.5%
.Stable
state.13
reported prices, weighted by each feed’s total allocation.Dispute
state, all price feeds pay a dispute penalty calculated by the formula: Feed dispute penalty rate
= 100%
x abs(Feed price
- Aggregate price
) / Aggregate price
/ 2
Unstable
state, all price feeds pay a dispute penalty calculated by the formula: Feed instability penalty rate
= 100%
x abs(Feed price
- Aggregate price
) / Aggregate price
/ 7
The aggregate instant price is calculated each time an instant price is reported, based on a process that aims to enable instant loan taking capability, while reducing or eliminating the chance of system abuse. The system takes the following steps:
5
high trust price feeds as reflected by the last finalized trusted fee list.1 day
, then it eliminates outliers in order to keep up to 3
reported instant prices.20%
the instant price sub-system is designated to be in Dispute
state, which halts instant loans by reducing the instant loan limit rate to 0%
.5%
state is set to Unstable
and instant loan limit rate is set to 0.5%
.Stable
state, instant loan limit rate is set to 5%
..3
remaining values, in order to further protect against system leaking pegged currency issuanceThe main goal of the automated monetary system is to balance supply of pegged currency with its demand, and maintain a price pegged to the reference currency, as reported by the price feed providers as historical prices. The main variables that the monetary system can affect are the following:
Peg equilibrium metric - is a measure of how stable the peg is relative to the desired 1.00000
rate, and determines the level of market’s stability, overdemand, or oversupply. The metric is calculated as follows: Peg equilibrium metric
= (+
or -
) Σ abs(Peg price
- 1.00
), where the sum is taken for the days in a row that the peg has been above or below 1.00
, and where +
denotes being above, and -
denotes being below 1.00
.
Loan fee rate - Is a yearly rate set by the automated monetary system that determines the fee paid by loan takers upon structural changes made to their loan, such as allocation or issuance changes. For example, at a given point in time, the loan fee rate could be 4%
per year (equivalent to 0.01096%
per day). Assuming no future change to the rate (which is unlikely), the loan taker should project to pay $400
per year in fees on a loan that has issued $10,000
worth of pegged currency, upon closing the loan. The actual annual rate will be calculated by adding all the variable daily rates.
The monetary policy engine aims to vary the rates based on the global equilibrium price of the pegged currency, in order to incentivize increase or decrease the pegged currency supply based on the creation or cloning of debt positions, and thus affect the equilibrium price of the pegged currency itself from the supply side.
The daily loan fee rate varies by 1% weekly
towards the loan fee target rate.
Base loan fee rate - is the loan fee rate used at the most stable conditions of system operations. It can be set using one of the following strategies:
base loan fee rate
= 2%
(current implementation).1% per year
), based on ongoing feed provider voting as part of price reporting process.Loan fee target rate - is set by the peg currency supply demand equilibrium policy as the minimum of the fixed value 20%
and the formula: Loan fee target rate
= base loan fee rate
- peg equilibrium metric
x 10
x 1%
. This means a full week of peg price at $1.02
, will lower the loan fee target rate by 1.4%
and a full week of peg price at $1.05
will lower it by 2.8%
.
Price feed revenue rate - Is a weekly rate set by the automated monetary system that determines what percentage of total system issuance is expected to eventually be paid out to price feed providers. The revenue comes from part of the loan fee stream and so the price feed revenue daily rate has to always be lower than the loan fee daily rate. The rest of the loan fees will go into the savings pool to be paid out to savings account owners. For example, at a given point in time, the price feed revenue rate could be 0.01917%
per week (equivalent to 1%
per year). Assuming no future change to the rate (which is unlikely), a price feed provider can project its revenue pool to receive $20,000
yearly assuming a total issuance allocation of $2,000,000
. This could be the case if total system issuance is $10,000,000
and the providers average weighted allocation percentage is 20%
.
The price feed rate can be set using the following strategies:
price feed revenue rate
= 1%
(current implementation).Total issuance | Price feed revenue rate | Total revenue | Average revenue |
---|---|---|---|
$1 | 2.5% | $0.25 | $0.01 |
$1,000 | 2% | $20 | $0.80 |
$1,000,000 | 1.5% | $15,000 | $600 |
$1,000,000,000 | 1% | $10,000,000 | $400,000 |
$1,000,000,000,000 | 0.5% | $5,000,000,000 | $200,000,000 |
Savings interest rate - Is a daily rate set by the automated monetary system that determines the interest paid to owners of savings accounts. For example, at a given point in time, the savings interest rate can be 0.01096%
per day (equivalent to 4%
per year). Assuming no future change to the rate (which is unlikely), the savings account owner can project an interest of $400
per year on a savings account balance of $10,000
.
The actual savings interest rate moves by a maximum of 0.5% per week
towards the target savings interest rate set by the automated monetary system. The interest rate target in turn is set to minimum of the two following values:
Target savings interest rate
= 2 x (Loan fee target rate
- price feed revenue rate
). This means at the most stable operation conditions where loan fee target rate is 2%
and price feed revenue rate is 1%
, the Monetary target savings interest rate will be 2%
.Max feasible savings interest yearly rate
= 100%
x 4 quarters / year
x Total savings pool balance
/ Total savings registered
. The savings pool will hold enough liquidity to cover 1 quarter
of accumulated interest at any time, this is to keep its position at a safe level in case:
Loan collateral threshold ratio - Determines the safe level of pegged currency issuance given the backing native token collateral. This ratio can take on of the following forms:
150%
(current implementation)1% per week
based on a target rate ranging between 150%
and 120%
, chosen based on changing variability of the native token price, and time since the last destabilizing change.
150%
- 0 days since the last change exceeding 20% per day
or 50% per week
in magnitude, or the system’s first day, whichever comes first.120%
- 5+
years after last change exceeding 20% per day
or 50% per week
in magnitude, or the system’s first day, whichever comes first.The {{PegLoan}} stablecoin system consists of the following major components:
As part of this proposal, we will discuss in detail the functionality of each component as well as how end-to-end scenarios function.
Main system contracts hold the following variables related to the areas of the system like Savings, Loans, and Price Feeds:
The system has two operational areas, the major one relies on delayed price reporting, while the other smaller area relies on instant price reporting. The area relying on delayed price reporting has the following daily states:
1 day
.5%
.
5%
total issuance.1 week
10%
drops20% weekly
despite lack of dispute.0.5%
total issuance.1 week
and will be evaluated against all historical native token prices of that weekThe instant price reporting area has separate yet similar states. The state results applies only to currency issuance and is applied on top of the finalized delayed states from 2 days
ago. This means currency issuance will be restricted based on the maximum of each area’s state. For example, Unstable
and Stable
will result in Unstable
. Following are the instant price reporting states:
1 day
5%
.
5%
total issuance.0.5%
total issuance.The system supports pegging to any relatively stable real world currency, as well as other relatively stable baskets of assets, always backed with the most trust-minimized blockchain collateral (ETH in case of Ethereum, BTC for Bitcoin). The main viable implementation of this system however will focus on the US dollar due to its relative ubiquity at time of this writing.
The pegged currency is the money product that is ultimate offered to everyday digital money users. It will have a stable value, the unit of which is widely accepted and used in commercial transactions by buyers and merchants. The Ethereum based proof of concept implementation of this system will use the ERC20 token standard to represents the value of the US dollar ($USD).
The token requires the base functionality already available in common programmable digital tokens, such as basic transfer functionality between accounts. The Ethereum community’s version of such functionality is described by the official ERC20 standard (also described here). Additional functionality should be implemented to respectively mint or burn tokens upon the pegged currency’s issuance or return.
This is the real world currency, or unit of account, the pegged currency will be pegged to. For example, the US dollar ($USD) is the most commonly used reference currency in most existing stablecoin implementations.
The system is designed such that it would work with any relatively stable currency, or basket of goods, assets and/or currencies. For example the Euro can be a reference currency, and so could be a basket of consumer goods defined by an international body. Any blockchain user would theoretically be able to create a new currency peg to their target currency reference, by deploying the open source contracts.
As mentioned, any public blockchain’s native asset token satisfies the role of backing collateral asset, given that it is likely to be:
It is essential for the system to prevent significant issuance of pegged currency, without securing a corresponding value of backing asset, per loan instance, and for the system as a whole. Similarly, it is crucial for the system to respond to backing asset release requests, when corresponding pegged currency is being returned to the system. In a healthy system, the value of the backing asset token is greater than the pegged currency by a healthy margin, in order to insure against the possibility of a major devaluation in that backing asset.
Loans (aka debt positions) are the logical structures that hold the state and value of the collateral backing aspect of the system. They have the following notable properties:
backing / issuance = 150%
.Loans consist of the following state or calculated values:
Currency issuance is the process of issuing new pegged currency tokens that are sufficiently backed by the native token collateral held in a loan. The loan taker requests a specific change in pegged currency issuance. The system determines sufficient backing by comparing a calculated leverage ratio with a threshold rate (typically 150%
). The loan leverage ratio is calculated as follows: Loan leverage ratio
= 100%
x native token deposited
x native token price
/ total pegged currency issuance
.
For instant issuance purposes, the native token price is determined in the following sequence:
Empty
or Dispute
state, the instant price is usedEmpty
or Dispute
state, the last finalized delayed price is used.Daily issuance limit - There will be a daily currency issuance limit of 5%
as a percentage of the total issuance balance to date. The limit is in place due to the potential for bad actors to abuse the system by taking instant loans and issuing currency during large price drops (see Instant issuance before reporting large price drop). This specific value of the limit would cap any potential large scale abuse, but would also minimize the adverse effects of loan usability and potential capping on the system’s issuance growth.
This daily issuance limit is reduced to 0.5%
in case the system foundation goes into Unstable
state. The limit goes to 0%
in Dispute
state.
Loan takers pay a fee based on the value of the loan’s issued pegged currency, and based on a variable daily percent rate (See Loan fee rate under monetary variables) set by the main system’s monetary policy engine. The fee has to be paid as part of structural changes made to the loan, including changes to allocation or issuance. For example, at a given point, the loan fee rate might be 4%
per year, (equivalent to 0.01096%
per day). Assuming no change to the rate (unlikely), the loan taker should expect to pay $400
per year in fees on a loan that has issued $10,000
worth of pegged currency, upon closing the loan. In reality, the yearly fee is determined by the sum of all daily rates throughout that year.
A part of the fees paid by loan takers, will go to the price feed providers. The specific value going to price feed providers is calculated based a weekly variable rate determined by the monetary engine (See price feed revenue rate under monetary variables). This value is allocated to specific price feed providers based on the allocation table values (See loan price feed allocation) of the loan.
The rest of the fees paid by loan takers, will go to the savings pool, to eventually be distributed to savings account owners based on the monetary system’s savings interest daily rate (See Savings interest rate under monetary variables)
Fee prepayment - Issuing new pegged currency requires pre-paying a certain portion of the fees meant for an upcoming period (35 days
). This measure is meant to reduce the ease by which a whale attacker can create loans, issue currency, and create artificial issuance allocations for their own rogue price feeds. See Price feed capture by whales.
Every loan (aka debt position) can allocate one or many price feeds providers by weight for their loan. For a given loan, these allocations are weighted by percentages that add up to 100%
. For example, a loan may allocate 40%
to the price feed maintained by Foundation X, 35%
to Rating company Y and 25%
to Financial company Z for a total of 100%
.
The allocations are meant for three overlapping purposes:
A part of the fees paid by loan takers, will eventually go to the price feed providers as revenue. The specific value going to price feed providers is calculated based a weekly variable rate determined by the monetary engine (See price feed revenue rate under monetary variables). That value is distributed to specific price feed providers, based on the allocation table values of the loan. Loan takers are responsible for determining the allocation mentioned above, based on which price feed providers they trust and/or want to financially support.
At level of the entire system, we add up the total allocation values resulting from allocation percentages multiplied by the issuance value of each loan. For example consider a single loan with issuance value $100,000
, that has three allocations A at 50%
, B at 35%
, C at 25%
. The single loan will contribute to the price feed providers’ revenue pools by $50,000
for A, $35,000
for B and $25,000
for C. If the whole system consisted of say 200
loans, that are same as the one above (very unlikely), the total allocation numbers for the price feeds will be $10,000,000
for A, $7,000,000
for B and $5,000,000
for C. Based on a projected price feed revenue rate of say 1%
per year, the projected increase to each of their revenue pools would be $100,000
for A, $70,000
for B and $50,000
for C.
From the perspective of reducing risk of system capture, it is ideal that there be more price feeds allocations, and that they be easily changeable in case of bad behavior by specific price feeds. On the other hand however, an excessive number of allocations will cause excessive gas cost and cognitive overhead for the loan takers, as well as stakeholders. An average of 3 allocations is a good target, thus a max value of 5 is reasonable. See maximum price feed allocation.
Price feed allocation process should be a separate call to the loan contract, instead of being part of the loan creation transaction. This decision is made despite adding an extra step, and additional complexity, to the process, based on the following reasoning:
Liquidation can be proposed by any blockchain user, who agrees to put up a deposit in pegged currency, equivalent to the outstanding issuance. However the final liquidation decision would be made by the system, only if the specific monetary conditions of the position merit it over a period of 7 days
(where the system is not in Dispute
state). The decision for each given day is made through comparing a leverage threshold rate with the following calculated leverage ratio: Loan leverage ratio
= 100%
x native token deposited
x native token price
/ total pegged currency issuance
For liquidation to occur, the liquidation conditions must be met over all of the 7 days
mentioned above. If even one day’s aggregate system price invalidates liquidation conditions, the liquidation request will not be finalized. Partial liquidations are not allowed. Adjustments to pegged currency deposits are not allowed to be made at any time after request is submitted.
Common liquidation conditions - Liquidator agrees to deposit pegged currency sufficient for paying off the loan issuance, as well as any outstanding fees in pegged currency. In this case the liquidator agrees to pay a deposit calculated as follows: liquidator deposit
= loan total issuance
x (100%
+ reward bid percentage
) + outstanding fees
. Upon successful finalization of the liquidation request, the liquidator would receive a payment in native token calculated as follows: liquidation payment
= (outstanding fees
+ loan total issuance
x reward bid percentage
) / native token price on liquidation day
. The loan owner will have control over any remaining native token stored in the loan contract. Upon failed finalization the liquidator is returned the whole deposit.
Undercollateralized liquidation conditions - There is a special case, where a loan collateralization is already under the critical 100%
threshold where pegged currency issuance value exceeds value of native token collateral. In such a case, the system will accept a liquidation deposit calculated as follows: liquidator deposit
= native token collateral
x native token price on liquidation day
x (100%
+ reward bid percentage
) + outstanding fees
. Upon successful finalization, the liquidator receives the loan’s entire backing in native token: liquidation payment
= native token collateral
. There will therefore be a non-zero leak of pegged currency due the bad loan.
Prolonged dispute state liquidation - If the system hasn’t had 7 days
outside Dispute
state within a maximum of 35 days
liquidation time limit since liquidation request, the system decides liquidation conditions based on the loan’s original allocation. A 100%
allocation to one price feed will mean that liquidation decision will be solely made based on the price feed’s latest price. A combination of say 3
price feeds with 33%
, 33%
, 34%
each will mean that liquidation condition will trigger if average of the feeds’ latest prices warrants liquidation.
Liquidation reward/penalty - In order to incentivize timely liquidation, there needs to be a non-zero reward for liquidator to compete over. This reward is essentially a penalty that the owner of an undercollateralized loan, or the system as a whole would pay. As a result, we would also generally like competition for liquidations to push down the reward/penalty reducing the cost to an important stakeholder.
As a part of the liquidation request, the liquidator will send a bid for the reward they would be entitled to upon liquidation completion. The bid should be selected from the following values: 20%
, 15%
, 10%
, 5%
, 0%
. Lower bids supersede higher bids if made in the same system-defined day. Bids of equal value are then compared with respect to the request block time, where earlier bids supersede later ones. Equal bids of the same block time, are processed as described in the next section.
Front-running resistance - The system processes requests grouped and sorted by the timestamp under which the request has been submitted. The earliest timestamped group of requests are processed together for finalization, and if successful, are assigned a fraction of the liquidation process, in order of their deposit size, that is minimum of 100%
x currency deposit
/ currency issuance
and 100%
/ number of remaining concurrent liquidation requests
The main responsibility of price feed providers is the truthful daily and delayed reporting of native token and pegged currency prices to the system contracts. The report consists of 2 exchange rates, one for the native token in reference currency, and the other for the pegged currency also in reference currency. These rates are expected to be the market’s global median prices based on volume. The system enforces the reporting of delayed historical prices for availability within 1 day (See maximum price feed delay), by imposing a penalties on any offending provider’s revenue pool.
The price feed providers are responsible for reporting the designated median prices (by volume) daily, and have until the end of the next day to report. Every day, after gathering data and confirming the market activities of the previous day, and reporting the median prices for the following:
The time granularity of tracking feeds’ historical prices is 1 day. This means all prices are reported as the median value for that whole day by volume, according to the system contract’s definition of that day’s start and end times.
For example, in our MVP implementation, this consists of ETH value in USD as well as pegged currency in USD as reported from exchange market activity. If there was 10,000
ETH traded for USD during the day, and 50%
of volume was under $201.2
USD and the other 50%
was over $201.2
, then $201.2
should be reported as the ETH/USD price. Similarly, let’s assume the Pegged USD was traded against ETH, with its median valued at $0.9805
that day. The price provider would report the following and results:
201.2
0.9805
The price feed provider should be aware of the system contract’s timing for the start and end of each day an period, and plan accordingly to report the historical prices of each specific day, before the end of the subsequent day. For example the price for day 120 of the lifetime of the system contract, should be reported before the end of day 121.
Price feed values are results of formulas calculated from known market exchange prices and volumes. The ideal case is for all providers to have full access to the universe of all legitimate trades along with their volume and price, and good faith providers should strive to do so. However, due to many restraining factors, including uncertainty around authenticity of info from some sources or exchanges, as well as pure technical limitations, each provider will choose a specific set of samples they can depend on, at any given time. They should publish their methodology for compiling these historical prices, so the community can verify them in favor of higher level of trust and predictability for the ecosystem, as public good.
High trust providers are also expected to report something called instant price almost immediately, as they notice changes of over 1%
. This reporting by highly trusted providers, would be strongly encouraged by the ecosystem members (community) however there is no hard penalty imposed by the system itself.
The price feed providers, that are in the trusted category, are responsible for reporting significant changes to the price of ETH in reference currency, within a minute of occurring. Significant changes are defined as any rise or drop of more than 5% since a previous report. Reporting changes of over 1% are recommended. The provider should monitor the latest median price by volume and upon a fall or rise of its value, send a on-chain request to their price contract with the value of:
Loan fees - Each price feed has a corresponding global revenue pool that increases in value as a result of an incoming portion of loan fees. See loan fees and price feed revenue rate under monetary variables for more details.
Price aggregation process - The total size of the price feed liquidity pool affects their weight during dispute resolution phase, as does the feed’s allocation total
Dispute and instability penalties - During the price price aggregation process, any dispute or instability penalties issued to the price feed provider will come out of their liquidity pool. This is to incentivize providers into constructive behavior which is reporting the market prices truthfully.
Scheduled payouts - Price feed providers need to have a sustainable business model and so they are expected to have an income from the loan fees. This income takes the form of a scheduled set of payouts, that are allocated 2%
of the revenue pool every 1 week
and scheduled to be payed out in 25 weeks
assuming the underlying revenue pool contains that value. The payout is meant to be held in the system medium term, and is subject to slashing, in order to incentivize the price feed provider to maintain a constructive long term engagement with the platform. The payout is partial because there needs to be a significant liquidity pool to use in case of dispute or instability penalties.
We have selected a specific price feed delay and time resolution of 1 day
as a result of considering multiple competing factors:
5 days
. At another extreme, such as for stock trading, the market may demand instantaneous (or in the order of 1 milliseconds
), in order to enable almost instantaneous transaction confirmation.1x / day
with minimum gas cost (commonly <1$
), or at the other extreme they may incur that gas cost on almost every block for instantaneous records.5 days
, minimizing storage cost. At another extreme, the provider may choose to provide up to the block price records despite significant storage cost.Locking an amount of pegged currency in the savings contract, will allow for a collection of interest based on the variable daily savings rate (See savings interest rate under monetary variables), for the duration time of that locking. An call to withdraw the accumulated interest, calculates the to-date savings interest rate, savings interest amount and sets a timestamp for future interest withdrawal calls. An owner call to close the savings account, should be performed after withdrawing all applicable interest to that date.
Loan fees are also varied based on the global equilibrium price of the pegged currency, in order to incentivize increase or decrease the pegged currency supply based on changing the demand for pegged currency by consumers and thus affecting the equilibrium price. See savings interest rate under monetary variables.
Savings pool is a portion of pegged currency tokens held by the main system contracts, set to be payed out to money owners as interest, when they lock their tokens in a savings account contract for periods of time. A portion of the fee paid by loan takers is always transferred to this pool. Also, any penalties imposed on price feed are taken out of the offending provider’s revenue pool and transferred into the savings pool. Payout is based on the savings interest rate (see savings rate and variable definition under monetary variables).
In an ideal loan (debt position) system, one would expect perfect trust of the price feeds, very fine grained price feed resolution, and instantaneous response to loan taking requests or liquidation requests in appropriate conditions. However, given the constraints of highly decentralized protocols on public blockchain systems, as well as the urgent need for simplification, in order to reduce risks and increase efficiency, we choose to bend the ideal rules as long as these changes are communicated clearly to and are accepted by stakeholders, and as long as they result in a secure system overall.
Normally the loan taking process should be expected to complete in one transaction, however during times of dispute between the rates provided by the system’s price feed providers, it is reasonable to delay the loan taking process by a few days. Normal operation should be resumed on all other occasions.
The most acceptable cases of liquidation from the perspective of a loan taker happen when there is a significant and non-intermittent drop in the value of the collateral, and they’ve had enough time to respond to it. We can adjust the current definition of acceptable liquidation to such cases, and ask the loan liquidators to take on the additional risk of having to predict if the drop is non-intermittent. We would however need to compensate the liquidator for the additional risk they are taking. It becomes therefore acceptable to condition liquidation upon the drop being persistent over the course of a few days and expect the loan liquidator to make a judgement on the likelihood of this persistence, and possibly take a profit.
One of the key insights that helps with efficiency and simplicity of this on-chain loan system is that using a collateral in smart contract to peg relatively stable currencies, does not require a high level of time sensitivity, in the following ways:
All percent-based (%) penalties are enforced with respect to the corresponding provider’s price feed revenue pool. The penalized value os transferred to the savings pool.
100% * total value of all voting savings accounts / total value of all savings accounts
Asset - Any valuable object. It may not necessarily be used as money for exchange of value.
Money - A tool used by humans to exchange value. Any valuable object (such as a coffee mug) can theoretically be used as money, perhaps on rare occasions. However a good money candidate, can be used in more contexts.
Gold, Bitcoin (BTC) and Ether (ETH) are all examples of asset moneys, that can be used for exchange on occasion, but are not necessarily the best option when we have access to more widely accepted alternatives like USD.
Currency - A type of money that is commonly used in day to day commerce, as it is used and accepted by many buyers and merchants. Good currencies are stable in value and are therefore good Stores of Value (SoV). Good currencies also are used as Units of Account (UoA) by more people, and are accepted by more people as Medium of Exchange (MoE). US dollars ($USD) is the example of a good currency money, so are Chinese Yuan, Japanese Yen, and Euro.
Token - The digital representation of value on a public blockchain. They can be the digital representation of a real world asset, or they can have inherent digital value like in the case of Bitcoin, Ether and others.
Medium trust price feed - Price feeds either in the top 25
in weighted allocation, and allocated at least 1%
of all loans’ weighted value. The historical prices from all these feeds are used in weighted form to determine the median daily historical price.
High trust price feed - A select group of price feeds either in the top 5
in weighted allocation, or allocated at least 20%
of all loans’ weighted value. Through social contract, High trust feeds will be, expected to report price changes of more than 5%
, on the blockchain within 60 seconds
. All high trust feeds are also considered part of the medium trust collection.
Low trust price feed - Simply any non-zero allocated feed that is not medium trust. Any price feed that is allocated a non-zero % of a loan with non-zero native token deposits, which is not a medium trust feed. Medium trust feeds that are banned also become low trust price feeds.
In software engineering, magic values refer to constant values selected by the software author, that determine the constraints that the system operates under. The selection of these values often involves significant deliberation and requires a level of justification. It is always a good question to ask: Why was that specific “magic value” selected, instead of higher or lower values?
Maximum price feed delay - 1 day
- 86400 seconds
Maximum price feed allocations - 5
High trust price feed count - 5
- Every feed with at least 20%
is guaranteed included.
Medium trust price feed count - 25
- Every feed with at least 4%
is guaranteed to be included.
Here we list ideas that can benefit the system but may not be in scope fot he system itself
A few of the price feeds used in the system can obtain their price values from on-chain sources, including the existing Decentralized Exchange (DEX) instances such as Ethereum’s UniSwap, which announced that their V2 version would provide APIs for obtaining the latest price for a given token market.
The native token price can be obtained by aggregating price information for native token traded against other known stablecoins be they corporate, government based, or algorithmic. The peg price would be obtained from the price of pegged currency traded on DEXes.
The price reporting actions would need to be triggered by anonymous callers, who may be rewarded by the price feed contract for their gas cost, plus a relatively small reward. The excess price feed revenue would also be transferred back into the main system contract under the savings pool.
Thanks to Tom Howard for pointing to Serenus.
Innovative monetary system, however the “loan” aspect of our system (and MakerDAO’s system) has advantages for our target loan taker audience that are difficult to overcome:
The Serenus model on the supply side would best fit a finance professional persona, one that has more comfort with complex financial instruments. As opposed to Maker/PegLoan persona that can be an intermediate DeFi user going in with their own ETH.
Historically, stable currencies have not shown a high level of short term volatility, where for example the price goes down 20% one day and goes back up a few minutes or hours. As such transaction delays have a much smaller chance of triggering costs to a stakeholder. There is often however clear longer term trends that can be observed with stable currency, at different points in time.
However one always needs to be prepared for short term volatility of the native value token due to unknown knowns such as general boom and bust cycles (or events), as well as unknown unknowns we can’t even imagine. Although not likely to occur in case of a mature blockchain, it is entirely reasonable to consider an hour long drop in the order of 50%, or a sudden rise in the order of 400%, as a possibilities, and prepare for them.
Since Ether (ETH) is the other side of the first viable product based on our proposed financial instrument, its volatility also affects our considerations. ETH in the recent years, due to its increasing uses as gas, speculative investment, and collateral, has been relatively more stable as compared to years before. Also due to its future staking use in Ethereum 2.0, we expect its long term volatility to decrease in general. However, it remains primarily a speculative asset subject to significant volatility.
The ultimate goal of such a decentralized smart contract system is to be ownerless and live forever. That is, if the current open source implementation were the solution to our original stablecoin problem, there should be no subsequent version needed.
However, due to possibilities of future upgrades to the underlying blockchain itself, as well as due to the remote possibility that the system may, at some point, operate in some unexpected ways, we are required to at least consider the possibility of winding down this version in favor of a next one.
We are currently witnessing this type of transition with the SAI to DAI migration by Maker. There are a few lessons to be learned from this experience, in the remote case migration is needed.
One of the price feeds to the system on Ethereum can be constructed as a decentralized contract, based on market pricing information provided by the UniSwap V2 decentralized exchange. This ownerless, decentralized price feed would then automatically transfer any of its revenue payouts back into the loan system as part of the savings pool.