Foundations of Fiat-Denominated Loans Collateralized by Cryptocurrencies
Abstract
The rising importance of cryptocurrencies as financial assets pushed their applicability from an object of speculation closer to standard financial instruments such as loans. In this work, we initiate the study of secure protocols that enable fiat-denominated loans collateralized by cryptocurrencies such as Bitcoin. We provide limited-custodial protocols for such loans relying only on trusted arbitration and provide their game-theoretical analysis. We also highlight various interesting directions for future research.
Keywords and phrases:
Blockchains, Cryptocurrencies, DeFi, Loans, Mechanism design, Subgame Perfect Equilibrium, Rational analysisFunding:
Pavel Hubáček: Partially supported by the Academy of Sciences of the Czech Republic (RVO 67985840) and Czech Science Foundation GAČR grant No. 25-16311S.Copyright and License:
2012 ACM Subject Classification:
Applied computing Electronic commerce ; Applied computing EconomicsEditors:
Andrei Arusoaie, Emanuel Onica, Michael Spear, and Sara Tucci-PiergiovanniSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The increase in the perceived value of cryptocurrencies over the last decade gave rise to a multitude of financial products and, in fact, a whole domain known as Decentralized Finance (DeFi) [25, 24]. In this work, we study loans collateralized by cryptocurrencies. At the moment, there are various providers of such loans (e.g., Aave, Compound, DebiFi, or HodlHodl). Some estimate that over 400,000 BTC could have been used as collateral in the cryptocurrency lending market in 2021 [4].
On a high level, any such lending protocol contains Lenders bringing liquidity, Borrowers wishing to use cryptoassets as collateral, and a Platform connecting the Borrowers with Lenders and handling the loans.
Current approaches to loans collateralized by cryptocurrencies.
Most current approaches to cryptocurrency-backed loans today are centralized custody-based solutions where the custodian has full control over the collateral for the lifetime of the loan. There are two most common types, with majority in the second category:
- Peer-to-peer:
-
where the custodian plays a role of a platform that sets up and manages loans (e.g. LendaBit.com), and
- Bank-style:
-
where the custodian is both the Lender and Platform (e.g. BlockFi).
In both formats, the custody-based approach has its undeniable advantages: ease of loan setup, minimal interaction between the parties, and straightforward liquidation or top-up of collateral. On the other hand, the clear major disadvantage, which outweighs all the advantages for many borrowers, is that the custodian has full control over the collateral. This can lead to disastrous scenarios:
-
The custodian can steal the collateral at any time and there is no mechanism to prevent this.
-
As a single point of failure, the custodian can be hacked, be compromised, or go out of business, and all (or part of) the collateral gets lost.
Note that the collateral above refers to the combined collateral from all the loans managed by a custodian at any given time, which can add up to a vast amount of bitcoin, making it a high-value target for the custodian, its employees, hackers, etc.
The second approach, which is arguably not as common, are multisignature-based solutions leveraging 2-of-3 multisignature escrow for the collateral. As with the custody-based approach, there are two types:
- Peer-to-peer:
-
where the Lender, Borrower and Platform each have a single key to the 2-of-3 multisignature address. The Platform plays a role of an arbitrator and resolves disputes (e.g. HodlHodl).
- Bank-style:
-
where Platform is also the Lender. The Borrower and Platform each have a single key and the third key is held by a so called third-party key agent. The third-party key agent is used when the Borrower does not cooperate or if the Platform goes out of business (e.g. Unchained Capital).
The multisignature-based approach is definitely an improvement in terms of security compared to the custodian approach as it eliminates a single point of failure and the complete counterparty risk but it still has significant drawbacks: In the peer-to-peer format, the Lender must have a private key to the multisignature address and be able to sign specific transactions based on an event that occurs (in the bank-style model, the Lender is essentially the Platform). Such a requirement may deter many potential Lenders, particularly institutions that may not have the competence or desire to securely manage private keys. For both formats, the Borrower must have a long-term (static) private key to the multisignature address. The consequence is that the Borrower must securely store such a private key and be ready and able to sign transactions when an event occurs.
1.1 Fiat-Denominated Loans Collateralized by Cryptocurrencies
In this work, we focus on a mixed setting where parties interact both with a classical fiat currency such as USD and a cryptocurrency such as Bitcoin. This differs from the standard approach taken in DeFi, where the protocols are designed primarily for interactions among digital assets only. To the best of our knowledge, such a setting was not formally studied before in the context of cryptoloans. Nevertheless, there is a clear motivation for design of secure protocols supporting such loans.
On the borrower’s side, a known speculation strategy is the so-called “hodling,” i.e., the strategy to buy some amount of cryptocurrency and wait an extremely long time for it to rise in value. Such speculators, known as hodlers, might wish to use their cryptocurrency as collateral for a loan (e.g., instead of a classical mortgage) as long as they keep exclusive access to their crypto asset during the lifetime of the loan (except in the case of their default). An estimated 10M Bitcoins were in dormant wallets in 2020 [1]. On the lender’s side, many classical providers of liquidity would be attracted by the interest from an algorithmically governed loan, which is extremely low-risk since the collateral can be liquidated fast in the case of default or undercollateralization due to a drop in value of the cryptocurrency.
However, a purely DeFi solution where the loan is denominated in a cryptocurrency might not be acceptable to either party. The most natural solution in this context is to use a stablecoin, a decentralised analogue of a fiat currency pegged to its value [8], as an intermediary asset for enabling the interface between fiat currency and cryptocurrency. The first drawback is that stablecoins are built using complex protocols which might deter conservative lenders and borrowers such as a classical bank. Additionally, both the lender and borrower (in case the borrower seeks liquidity and not just an instrument for speculation) then have to go through the additional process of exchanging fiat currency for a stablecoin (and vice versa) which induces extra inefficiencies to the process in terms of fees and delays.
1.2 Our Protocols
We present three protocols. The first protocol illustrates the basic considerations in a simplified setting where we assume exchange rates between the underlying cryptocurrency and fiat are fixed. Next, we give two protocols in a realistic setting where exchange rates can fluctuate. All our protocols involve a rational borrower, a rational lender, and an honest arbiter. Naturally, the separation of roles in our protocols implies that our protocols have add more value in the more challenging peer-to-peer setting rather than the simpler bank-style setting.
The idea behind the basic protocol is to lock the collateral for the entire duration of the loan into a smart contract. The contract redistributes the collateral at the end of the loan in a way such that both borrower and lender end up with slightly less than what they put into the protocol, with the remaining portion being held by the arbiter. The arbiter gives back the respective portions to the parties that behave honestly, and keeps the corresponding portion in case of misbehaviour.
However, in the setting where exchange rates fluctuate thoughout the loan term, the value of the collateral relative to the principal can change drastically and collateral can become vastly overcollateralised or undercollateralised. This can lead to misbehaviour on the side of both parties. For instance, the borrower might run away with the loan if the collateral becomes undercollateralised. Our first protocol in this setting allows the smart contract to make calls to an external price oracle at specified times during the loan term to get the price of the cryptocurrency. The collateral is then redistributed according to this price to ensure that the lender should always get back an amount worth the value of the principal when the lender behaves honestly. When the value of the collateral reaches or drops below the principal, the contract immediately liquidates the collateral and gives the entire collateral to the lender.
Our second protocol in this setting simplifies the contract significantly by removing oracle calls, and also giving both parties the additional freedom to decide when and at what price to terminate or liquidate the protocol. The collateral is immediately released upon termination or liquidation. This comes with the cost of both parties needing to remain online throughout the loan duration, and the way the collateral is redistributed upon termination or liquidation of the protocol is fixed and has to be specified at the beginning of the protocol.
We show in Theorem 1 and Theorem 7 that behaving honestly as specified by the protocol is a subgame perfect equilibrium in the games induced by and . We also show in the full version of our work [17] that, as long as the price of the cryptocurrency does not rise too much, the honest strategy profile of behaving according to the protocol is a subgame perfect equilibrium in the game induced by .
1.3 Related Work
The study of the interplay between CeFi and DeFi goes back to Danezis and Meiklejohn [9]. Qin et al. [22] conducted an empirical study of major liquidation protocols and their risks in Ethereum. Gudgeon et al. [15] analysed the effect of interest rates on market efficiency for DeFi loan protocols. Qin et al. [23] studied attacks on DeFi using flash loans. Kondratiuk et al. [18] initiated a standardization attempt for cryptoloans using smart contracts on Cardano.
Our work is also related to the works of Avarikioti et al. [6, 5] on using a committee of miners for arbitration in payment channels[10, 11, 3, 21] when two rational parties disagree on the state of the channel. While using a committee or even the blockchain to resolve disputes between the lender and borrower is a possibility, these solutions typically incur a large consensus cost and are less efficient, thus we choose to use the arbiter to resolve disputes.
1.4 Glossary
Here, we define terms related to loans that we use throughout the paper.
- Collateral:
-
The amount provided by the borrower to back up the loan. The collateral is given to the lender in case the borrower defaults on the loan.
- Principal:
-
The loan amount borrowed by the borrower.
- Liquidation:
-
The process of using the collateral for repaying the loan in the case of default or undercollateralization.
- Loan to Value Ratio (LTV):
-
The ratio of the principal to the value of the collateral. The LTV determines the maximum amount that the borrower can borrow depending on the amount of collateral the borrower has. For instance, an LTV of would mean that a borrower with amount of collateral can only borrow a maximum of amount of funds from the lender (assuming a 1:1 exchange rate). In our work, all our protocols assume an initial LTV of .
- :
-
A small positive constant parameterising the strength of the penalty that comes with deviating from the specified protocol.
2 Model
Notation.
We use BTC or Bitcoin to denote the underlying cryptocurrency used as collateral, however, we stress that our protocol is not only Bitcoin compatible (see Section 5), but can also be used with other cryptocurrencies. We use a fiat to BTC exchange rate of to denote that M fiat is equal to BTC. Equivalently, the price of BTC is the value of unit of BTC when converted to fiat. Thus, a rate of would imply the price of BTC is M fiat. For a positive integer , we use to denote .
Loan setting and assumptions.
Wlog, we assume the borrower wants to borrow M in fiat and holds an amount of Bitcoin which is worth M when converted to fiat, henceforth called the collateral. For simplification, we ignore interest rates. Furthermore, we assume that maturity of the loan is a year.
Threat model and availability of arbitration.
We assume the borrower and lender are rational and have access to an honest party called arbiter. Recall that we consider a mixed setting where the parties have to exchange the fiat currency and lock the collateral into a smart contract. This situation gives rise to the so-called fair exchange problem known also from online commerce, which might not be resolvable using smart contracts without trusted third party [13]. Given that we envision a system where a Platform sets up the loans (e.g. enables matching of borrowers and lenders), we assume that the Platform can participate as a trusted intermediary and solve the fair exchange of fiat. Note that, from the perspective of the lifetime of the loan, the participants need to trust the Platform only at the very beginning and very end of the loan (i.e., during the transfer of the fiat from the lender to the borrower and while repaying the loan). Thus, we allow the arbiter to handle the transfer of fiat and concentrate on the problem of governance of collateral during the lifetime of the loan. In particular, one of our core design goals is to minimize the trust put into the arbiter when resolving disputes over the collateral.
Game theoretic notions and solution concept.
Because our loan protocols unfold over time with ordered moves and observable intermediate events, we model them as extensive-form games. This representation records who moves when and what each party knows at that moment, enabling reasoning about every feasible history of moves. Our solution concept for analyzing the behaviour of rational parties is subgame-perfect equilibrium (SPE). A strategy profile is an SPE if, in every subgame, i.e., after every history of moves, no player can profit from a unilateral deviation. For our protocols, proving SPE means showing by backward induction that at each node the prescribed action maximizes the mover’s payoff given the continuation strategy, including nodes reached only after deviations. This rules out equilibria sustained by non-credible off-path threats and yields robustness to timing perturbations and unilateral deviations. Definitions of extensive-form games and SPE are provided in Appendix A.
3 Basic Protocol for Flat Exchange Rates
In this section, we present a basic protocol for the setting where the exchange rate between Bitcoin and fiat is fixed throughout the entire duration of the loan. For ease of presentation, we assume a rate of , and we stress that our protocol can be easily tweaked to accommodate other exchange rates.
3.1 Protocol Details
Our protocol consists of phases: contract creation and loan repayment. In the contract creation phase, the borrower locks the loan collateral into a smart contract and specifies the conditions upon which the contract can be opened. The loan repayment phase occurs at the end of the loan and consists of extracting the collateral from the contract and distributing it to the relevant parties. The details of both phases are as follows:
- Contract creation:
-
-
The lender sends M fiat to the arbiter.
-
The borrower creates a smart contract and locks the collateral into the contract. The borrower also specifies three important times: with and being the start of the loan term. The smart contract only accepts inputs from the arbiter from time to , inputs from the lender from time to , and inputs from the borrower from time to (more details in the loan repayment phase below).
-
The collateral is locked until out of the following conditions are fulfilled:
-
1.
At the end of the loan term the lender inputs a signed opening to the contract. The contract then pays the full collateral to the borrower.
-
2.
At the end of the loan term, the borrower inputs a signed opening to the contract. The contract then pays out Bitcoins worth M fiat to the borrower, Bitcoins worth M fiat to the lender, and Bitcoins worth M fiat to the arbiter.
-
3.
At one month after the maturity date (i.e. ), the contract automatically sends the full collateral to the lender.
-
1.
-
The arbiter verifies the contract. If the contract does not pass the verification step, the arbiter refunds the principal to the lender. If the borrower does not create the contract before a timeout period , the arbiter refunds the principal to the lender. Otherwise, the arbiter sends the principal to the borrower at time .
-
- Loan repayment:
-
-
From time to , the smart contract waits for the borrower to send M to the arbiter. If the borrower repays the debt within this time interval, the arbiter immediately notifies the lender.
-
The lender waits until the arbiter notifies the lender that they have the full principal and inputs a signed opening to the contract at any point between and to send the collateral to the borrower. After the contract is opened by the lender within the specified time interval, the arbiter sends M to the lender.
-
From time to , two mutually exclusive events can happen:
-
–
(Honest borrower, dishonest lender.) The borrower sent the full principal but the lender does not open the contract between and , so the borrower triggers an opening of the contract after and before months. In this case, the arbiter gives the principal to the borrower and M out of the M worth of Bitcoins paid to the arbiter from the contract to the borrower. The borrower ends up with M (M from the contract, M from the loan, and M from the arbiter). The lender ends up with )M from the contract, and the arbiter ends up with M.
-
–
(Dishonest borrower, honest lender.) The borrower did not send the full principal and triggers an opening of the contract after . Suppose the partial principal sent to the arbiter by the borrower is M where . The arbiter keeps the partial principal of M and sends M from their share of the contract to the lender. The lender ends up with M (M from the contract and M from the arbiter), the arbiter with M, and the borrower with M M.
-
–
-
If the contract has not been opened by month after the loan maturity date (time ), the contract automatically pays out the locked collateral to the lender.
-
3.2 Protocol Security
Game tree and honest strategy.
We first note that induces a stage extensive-form game which we depict in Figure 2. The game is played among 2 players, the borrower and the lender. In the first stage of , only the lender can make a move. The actions available to the lender at this stage can be represented by . The action represents the lender lending the full loan amount, while denotes the set of all other actions that the lender can play which is not , including lending only a partial amount. Only when the lender plays will the game proceed to stage 2. Otherwise, the game terminates at this stage with both lender and borrower having a utility of .
Stage 2 of is the start of the contract creation phase where the borrower creates a smart contract as specified in the contract creation phase in Section 3.1. Only the borrower can make a move at this stage and the actions available to the borrower can be represented by . The action represents the borrower creates a correct contract (as verified by the arbiter), and represents the set of all other actions that are not . Only when the borrower plays will the game proceed to stage 3. Otherwise, the game terminates at this stage with both lender and borrower having a utility of . Stage 2 of starts at time as depicted in Figure 1.
Successful contract creation and verification results in the full principal sent by the lender to the borrower, corresponding to time in Figure 1. After the loan matures, which corresponds to time in Figure 1, the loan repayment phase begins, which corresponds to stage 3 of . The loan repayment phase spans a duration from time to as depicted in Figure 1. In stage 3, only the borrower makes a move. The actions available to the borrower is the choice of for M. The action denotes the amount the borrower decides to repay, while denotes any other action which is not loan repayment. Wlog, we model playing as the same as playing (i.e., the utilities at the leaves of the game tree depicted in Figure 2 corresponding to playing is the same as playing ). After the borrower plays their move, the game proceeds to stage 4 with the move of the lender.
In stage 4 of , the lender responds to the borrower’s actions in stage 3 with a choice to open the contract and release the collateral or not. This stage spans a duration from time to as depicted in Figure 1. In this stage, only the lender makes a move. Formally, the actions available to the lender can be represented by . The action represents the lender opening the contract and releasing the collateral, while represents all other actions that are not . After the lender makes their move, the game proceeds to the final stage.
Since the contract can only be opened once, stage 5 of corresponds to the choice of the borrower to open the contract if the lender does not open the contract at the previous stage. Only the borrower makes a move at this stage and this stage happens after time and before time as depicted in the protocol timeline in Figure 1. The actions available to the borrower can be represented by . The action represents the borrower opening the contract, while represents all other actions that are not .
Let us define the honest strategy profile as , i.e., the dotted and dashed path in Figure 2. The following theorem (with proof in the full version of our work [17]) shows that is a subgame perfect equilibrium in
Theorem 1.
is a subgame perfect equilibrium in .
Remark 2.
Note that since the utility vectors at stages and of the reduced subgame are exactly the same, we have multiple equilibria, some of which correspond to strategies that place a non-zero probability on either not lending the loan or not creating a correct contract. It is reasonable to eliminate such strategies, as they are not meaningful to our analysis of the security of the protocol. As such, we assume the borrower and lender prefer that a deal occurs (i.e., the borrower successfully gains the loan) than not, and thus we replace the utility vectors of the cases corresponding to a failed deal (i.e., the positions corresponding to the dashed rectangles in Figure 2) with for some .
Finally, we also outline some minor extensions of to shield the lender against an unresponsive borrower, and to allow both parties to remain offline during loan repayment.
Dealing with an unresponsive/slow borrower.
We outline an extension of to protect the lender in the case where the borrower might be unresponsive or slow. This is the case where the lender already sent the principal to the arbiter, but the borrower is unresponsive/slow, and has not created the contract locking the collateral. We note that the lender will eventually get back their principal, assuming the arbiter waits for the borrower to act within a prespecified timeout period. However, the lender runs the risk of having their money locked up with the arbiter for potentially the entirety of the timeout period, incurring a corresponding opportunity cost.
This can be mitigated by splitting the principal into smaller chunks, and executing the protocol separately on each chunk of the loan. Specifically, the parties agree on a parameter and execute the contract creation phase of the protocol times, each time dealing with M of the principal. In each iteration of the contract creation phase, the lender sends M to the arbiter. The borrower locks M into the smart contract as collateral (held for the same loan term) with the possibility of paying out M to the borrower, M to the lender and M to the arbiter at the end of the maturity date if the borrower inputs a signed opening. Loan repayment can then be done for each contract separately.
Replacing lender and borrower with arbiter in loan repayment.
We note that since the arbiter is honest, we can replace the actions of the borrower and lender in the loan replacement phase with the arbiter, thereby making it possible for the borrower and lender to remain offline once the borrower pays off the loan.
4 Protocols for Fluctuating Exchange Rates
In this section, we present two protocols that account for fluctuating exchange rates during the loan term. The first protocol uses an external, third party oracle to constantly update the amount of collateral in the contract such that both the borrower and lender will still be incentivised to follow the protocol. The second protocol is a no oracle solution that simply allows the lender and the borrower to liquidate the collateral at any time point. We work in the same loan setting as described in Section 2. That is, the lender loans M fiat to the borrower, and the borrower locks BTC in the contract where is the amount of BTC worth M in fiat at the time of contract creation.
4.1 Using a Price Oracle to Modify the Collateral
Here, we describe our first protocol , which contains a few small modifications of the basic protocol to ensure the incentives of the borrower and lender are still aligned even though the exchange rates can fluctuate. The first modification allows the entire collateral to be given to the lender the moment the price of BTC falls below a certain value. This compensates the lender in the case where the price of BTC drops and ensures that the value of the collateral is always at least as large as the loan. Consequently, the borrower and lender are still incentivised to follow the protocol. The second modification allows the contract to make queries to an external price oracle to get the price of BTC and redistribute the collateral according to the updated price. Our protocol aims to maintain the invariant that the value of the collateral at any queried point in time should not exceed M when converted to fiat – any excess collateral is transferred to a temporary account for use when the value of the collateral drops below M or given back to the borrower in the case where terminates with the excess collateral. This ensures that the incentives of the lender and borrower are the same as the basic protocol in the case where BTC prices go up. To ensure that the lender and borrower cannot easily collude with the external oracle and manipulate the exchange rate to their advantage, we recommend using a decentralised oracle connected to a blockchain.
4.1.1 Protocol Details
Let be the exchange rate at the start of the protocol and be the exchange rate at maturity. Let and denote the corresponding price of BTC at the start and maturity. consists of phases: contract creation, collateral redistribution, and loan repayment.
- Contract creation:
-
-
The smart contract has access to an external price oracle that outputs the current price of BTC in fiat, and the borrower (in agreement with the lender) stipulates the frequency of the queries throughout the loan maturity period, with one query at the loan maturity date. We use to denote the total number of queries.
-
The borrower deposits collateral of amount which should equal M fiat when converted with exchange rate which is the exchange rate at the start of the protocol.
-
The collateral is locked until out of the following conditions are fulfilled:
-
1.
(Lender liquidation condition.) If a queried price of BTC drops such that , the collateral is immediately released and transferred in full to the lender.
-
2.
(Borrower early termination condition.) The borrower sets an additional threshold . If a queried price of BTC rises such that , proceeds immediately as if the loan maturity is now at time and initiates the loan repayment phase.
-
3.
(Collateral invariant condition.) If a queried price is above some threshold, a portion of the collateral is transferred to a temporary account owned by the arbiter. See the collateral redistribution phase for more details.
-
4.
At the end of the loan term, the lender inputs a signed opening to the contract. The contract then pays the full collateral to the borrower.
-
5.
At the end of the loan term, the borrower inputs a signed opening to the contract. The contract then pays out BTC worth M fiat to the borrower, BTC worth M fiat to the lender, and BTC worth M fiat to the arbiter in the case where the price of the collateral is equal to M in fiat. In the case where the price of the collateral amount is M, the contract pays out BTC worth M to the borrower, BTC worth M to the lender, and BTC worth M to the arbiter for some (recall that is the amount of BTC worth M at contract creation). Note that these sum up to which is the value of the collateral in fiat at time .
-
6.
At one month after maturity (i.e. ), the contract automatically sends the full collateral to the lender.
-
1.
Remark 3.
The purpose of the borrower early termination threshold is to provide the borrower with a “fast-track” to loan repayment. This is useful in case the value of the collateral is increasing too much and the borrower wants to liquidate it to use the Bitcoins for some other purpose. As it is difficult to model exactly what this threshold should be (it depends on a myriad of factors, including the borrower’s risk propensity, opportunity cost, market conditions, etc.), we do not specify what should be and simply leave as an option open to the borrower.
-
- Collateral redistribution:
-
The collateral redistribution phase starts from and ends at the loan maturity .
-
At each predetermined query point , the smart contract makes a query to an external price oracle to get the current price BTC . Recall that is the price of BTC at contract creation time which we assume is .
-
(.) A significant rise in BTC price benefits the lender as the lender could profit by not opening the contract even after the borrower repays the loan, and instead wait for the borrower to open the contract. Doing so when the price of BTC is large enough could ensure that the amount of BTC the lender receives when the borrower opens the contract using condition is larger than M when converted to fiat, even with the penalty. To prevent this, our protocol triggers the collateral invariant condition to release a portion of the collateral to the temporary account to maintain the invariant that the price of the updated collateral amount has to always equal M. That is, BTC worth M is transferred to the temporary account.
-
(.) A significant drop in the price of BTC could harm the lender, as the collateral would now be a lot smaller when converted to fiat. Our protocol transfers any excess coins in the temporary account to the collateral while maintaining that the collateral should not exceed M when converted to fiat. If the temporary account is empty, the contract does nothing and the liquidation condition might happen.
-
- Loan repayment:
-
The loan repayment phase of is similar to the loan repayment phase in , with the only changes being the liquidation condition, as well as handling excess funds in the temporary account:
-
If the liquidation condition of the contract is triggered, the smart contract releases the full collateral to the lender, bypassing loan repayment.
-
(Honest borrower, dishonest lender.) The case where follows exactly in the case of the basic protocol. If , the arbiter gives the principal and M to the borrower. The borrower ends up with M. The lender ends up with M, and the arbiter with M.
-
(Dishonest borrower, honest lender.) The case where follows exactly in the case of the basic protocol. If , suppose the partial principal sent to the arbiter by the borrower is M where . The arbiter sends the partial principal of M and BTC from their share of the contract to the lender. The lender ends up with M (M paid out from the contract and M from the arbiter), the arbiter with M, and the borrower with M. Note .
-
If there are still excess coins in the temporary account at maturity, all excess coins will be paid out to the borrower when the protocol terminates if the borrower gives the full principal to the arbiter.
-
4.1.2 Protocol Security
Let . Intuitively, captures the difference in price of unit of BTC at the end of the protocol and at the beginning of the protocol assuming an exchange rate of at the start. We first make a few simple observations about some properties of the collateral.
Observation 4.
The price of the collateral in fiat at any queried time point never exceeds M.
Proof.
This simply follows from the fact that always triggers the collateral invariant condition when a queried BTC price .
The next observation is a useful bound on the maximum loss in the price of a unit of Bitcoin in the case where the price of the collateral is between and .
Observation 5.
When , .
Proof.
and since , .
Observation 6.
The price of the collateral in fiat hits M when . This implies that the lender liquidation threshold should be to ensure that the price of the collateral is always larger than the loan, and hence not worthless.
Game tree and honest strategy.
The stage extensive form game induced by is similar to the game induced by . However, the expected payoffs for the players differ depending on the terminal price of BTC. When the terminal price of BTC , the game tree has almost exactly the same payoffs as , with the only difference being the payoff of the borrower increases by the excess amount of coins in the temporary account in all leaves stemming from the branch where the borrower decides to pay the full principal of M. We depict the game tree corresponding to when the terminal price , in Figure 3. We define the honest strategy profile as .
Following Remark 2, we use for some to denote the opportunity cost for the lender and borrower if the loan process does not begin. Our next theorem (with proof in the full version of our work [17]) shows that the honest strategy profile of acting in accordance with the protocol is a subgame perfect equilibrium in .
Theorem 7.
Assuming , is a subgame perfect equilibrium in .
We conclude this section by noting that we can reduce the control of the arbiter in over the excess funds by firstly separating the arbiter from the contract creation (thereby hiding the collateral amount from the arbiter), and also using Zcash [7] to hide the amount of excess funds in the case where the price of BTC goes up. We discuss the details in the full version [17].
4.2 Reducing the Arbiter’s Control over the Cryptocurrencies
The previous protocol suffers from three drawbacks. First, even though borrower termination fast-tracks to repayment, parties may wait up to a month to recover funds, incurring hidden costs such as opportunity costs. Second, reliance on an external price oracle complicates deployment on some cryptocurrencies. Third, the arbiter controls the cryptocurrencies, a necessity to keep both parties incentivised to follow the protocol’s honest strategy. If collateral prices rise sharply, both lender and borrower have incentives to deviate: the lender may refuse to open the contract, and the borrower may refuse to repay.
Thus, we design to address all three shortcomings of . redefines borrower termination as immediate, instantly releasing and splitting collateral between lender and borrower. Both borrower termination and lender liquidation are allowed at any time. This increases flexibility over fund immediacy at the cost of remaining online throughout the loan term. eliminates the oracle by requiring lender and borrower to remain online to decide on liquidation. The arbiter judges whether termination or liquidation is reasonable or unreasonable and compensates the parties accordingly. limits BTC under arbiter control to at most . This relaxes the previous “honest strategy,” since the lender may refuse to open the contract. Nevertheless, we show that with minimal arbiter control, we can still obtain meaningful stable strategies.
4.2.1 Protocol Details
Our protocol consists of only a contract creation and loan repayment phase.
- Contract creation:
-
The contract creation phase follows almost identically to the contract creation phase of , with only an additional condition to unlock the collateral, and a modification of the way the collateral is paid out at maturity which we describe below:
-
(Early termination/liquidation.) Either the borrower or lender inputs a signed opening to the contract. The contract then pays out BTC to the borrower, BTC to the lender, and BTC to the arbiter.
-
At the end of the loan term, the borrower inputs a signed opening to the contract. The contract then pays out Bitcoins worth M fiat to the borrower, Bitcoins worth M fiat to the lender, and Bitcoins worth M fiat to the arbiter.
-
- Loan repayment:
-
The loan repayment phase is also almost identical to that of , with the only change being that at any point in time the borrower or the lender can trigger the early termination/liquidation condition of the contract. When that happens, the loan repayment phase is skipped entirely and the arbiter distinguishes between when the termination/liquidation is reasonable (i.e., when the exchange rate moves past a certain threshold, see the full version of our work [17]) or unreasonable. If the lender initiates the early liquidation, the arbiter first checks (using their own price oracle) if the rate at which the lender liquidates lies within the actual liquidation threshold of the lender. If so, the liquidation is considered reasonable and the arbiter gives the BTC paid out from the contract to the lender. Similarly, if the borrower initiates the early termination, the arbiter makes the same check and if the rate lies within the liquidation threshold of the borrower, the arbiter gives BTC to the borrower. If either side makes an unreasonable termination/liquidation, the arbiter keeps the BTC from the terminating/liquidating party and gives BTC to the other party.
We defer the security analysis of to the full version of our work [17]. As a brief overview, we show that although players have a wider range of action profiles to choose from in the game induced by , we can still achieve meaningful stable strategies if we make two simplifying assumptions. Firstly, we restrict the class of players to be non-myopic, that is, the expected utility given a payoff of is the same when is paid out at time and some other time . Secondly, we assume the expected price of BTC at time is equal to the current BTC price at time for . With these assumptions, we can show that as long as the price of BTC is not too high, following the protocol is a subgame perfect equilibrium of the game induced by . The details are presented in the full version of our work [17].
5 Discussion and Extensions
Comparison of our protocols.
We compare and by (1) arbiter-controlled funds, (2) online availability, (3) fund immediacy, and (4) protocol complexity. reduces arbiter control to independent of collateral value. In , the arbiter may control funds, which can be arbitrarily large with BTC price . In , parties must stay online throughout to monitor prices and choose when to liquidate or terminate. In , parties can go offline after setting liquidation and termination thresholds at setup. Conversely, gives finer control over fund immediacy, rather than waiting for an oracle price to cross a threshold as in . While enables price-based collateral redistribution for finer mechanism design, its oracle calls and redistribution logic make it more complex than .
suits users who prefer to remain offline and are indifferent to precise liquidation thresholds, seeking modest liquidity. Typical examples are ordinary users with spare cryptocurrencies who want a loan without active monitoring. It also fits microloan borrowers who are less concerned about arbiter control over excess collateral. suits users needing flexibility in liquidation timing and immediacy of funds such as traders who already track CeFi/DeFi markets and might view such loans as derivative-like positions.
Bitcoin compatibility.
is Bitcoin compatible, as the contract only needs to lock the collateral and release at specified times corresponding to specified signatures in the future. This can be implemented using nested conditional statements and Timelocks111https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki/. The general properties of the UTXO model are described in Appendix B.
The transaction with the spending conditions of the collateral for is depicted in Figure 4 and proceeds as follows: We use and to denote the public keys of a signature scheme of the lender, borrower, and arbiter respectively. The overall collateral amount of is split into 3 outputs, the first two of value M, and the last output of value M. For each output, the first spending condition corresponds to the lender opening the contract and releasing the collateral to the borrower ( denotes the lender’s signed opening to the contract). The second spending condition for each output corresponds to the borrower opening the contract. This differs for each output. The first output of M can only be spent by the borrower, the second output of M can only be spent by the lender, and the final output of M can only be spent by the arbiter. The last spending condition for each output corresponds to the release of the collateral to the lender after the loan repayment phase is over (i.e., after as in the timeline in Figure 1).
can be implemented over Bitcoin using discrete log contracts [12, 16, 19] to obtain oracle prices during the loan term. At initialization, the collateral amount equals M fiat at the start rate . The collateral is split into equal outputs of value each. On each oracle update returning price , if the main contract transfers chunks to an arbiter-controlled temporary account (managed by a secondary contract) until the remaining collateral in the main contract is M. If , the secondary contract returns sufficiently many chunks so that the collateral in the main contract is again M. This maintains the invariant that the collateral held in the main contract never exceeds M, which is the condition used in Clause 5 of Section 4.1.1 and in Theorem 7. All other collateral-release conditions are the same as in . Parameter . A larger makes the main-contract collateral track M more tightly, improving incentive alignment and reducing spurious lender liquidations, at the cost of larger scripts and higher verification and computational overhead. Users can select to balance these factors. Optional privacy enhancement. To hide excess funds from the arbiter, the creation phase can include a branch that mints excess value to a borrower-controlled address or burns it, depending on the arbiter’s input.
Finally, the contract in is similar to the one in and thus also Bitcoin compatible.
Interest rates.
Our protocols do not take into account interest rates and their impact on the protocol. Nevertheless, we note that accounting for interest rates would have minimal impact on our analysis. The main changes we would need to account for would be the opportunity cost for the borrower and lender and thus their termination/liquidation thresholds, as well as the initial size of the collateral. We leave this as an interesting direction of future work.
6 Conclusion
In this work, we present the first limited-custodial protocols for cryptocurrency-backed loans in the mixed CeFi-DeFi setting. Unlike previous protocols in this setting, our protocols limit the control of the trusted third party arbiter to only a small fraction of the collateral and are also capable of dealing with fluctuating exchange rates between the fiat and cryptocurrency. We also compare our two protocols and , showcase their relative advantages and shortcomings, and highlight various user settings where it would make sense for a user to pick one protocol over the other, which shows that our protocols are adaptable to various scenarios. Finally, we provide game theoretic analysis of our protocols, showing that in all our protocols the strategy as specified by the protocol is a subgame perfect equilibrium, which means that rational Borrowers and Lenders do not have any incentive to deviate from our protocols.
References
- [1] 2020 report on fund sources for dormant bitcoin addresses. https://crystalblockchain.com/articles/2020-report-on-fund-sources-for-dormant-bitcoin-addresses//. Accessed: 2022-10-10.
- [2] Satoshi wept: How crypto replayed the 2008 financial crisis. https://www.coindesk.com/layer2/2022/07/12/satoshi-wept-how-crypto-replayed-the-2008-financial-crisis/. Accessed: 2022-10-10.
- [3] Raiden network. https://raiden.network/, 2017.
- [4] Arcane Research. Banking on Bitcoin: BTC as Collateral. https://static.coindesk.com/wp-content/uploads/2021/02/TheStateofBitcoinasCollateral.pdf, February 2021. [Online; accessed 17-October-2022].
- [5] Zeta Avarikioti, Eleftherios Kokoris-Kogias, Roger Wattenhofer, and Dionysis Zindros. Brick: Asynchronous incentive-compatible payment channels. In Nikita Borisov and Claudia Diaz, editors, Financial Cryptography and Data Security - 25th International Conference, FC 2021, Virtual Event, March 1-5, 2021, Revised Selected Papers, Part II, volume 12675 of Lecture Notes in Computer Science, pages 209–230. Springer, 2021. doi:10.1007/978-3-662-64331-0_11.
- [6] Zeta Avarikioti, Orfeas Stefanos Thyfronitis Litos, and Roger Wattenhofer. Cerberus channels: Incentivizing watchtowers for bitcoin. In Joseph Bonneau and Nadia Heninger, editors, Financial Cryptography and Data Security - 24th International Conference, FC 2020, Kota Kinabalu, Malaysia, February 10-14, 2020 Revised Selected Papers, volume 12059 of Lecture Notes in Computer Science, pages 346–366. Springer, 2020. doi:10.1007/978-3-030-51280-4_19.
- [7] Eli Ben-Sasson, Alessandro Chiesa, Christina Garman, Matthew Green, Ian Miers, Eran Tromer, and Madars Virza. Zerocash: Decentralized anonymous payments from bitcoin. IACR Cryptol. ePrint Arch., page 349, 2014. URL: http://eprint.iacr.org/2014/349.
- [8] Jeremy Clark, Didem Demirag, and Seyedehmahsa Moosavi. Demystifying stablecoins. Commun. ACM, 63(7):40–46, 2020. doi:10.1145/3386275.
- [9] George Danezis and Sarah Meiklejohn. Centrally banked cryptocurrencies. In 23rd Annual Network and Distributed System Security Symposium, NDSS 2016, San Diego, California, USA, February 21-24, 2016. The Internet Society, 2016. URL: http://wp.internetsociety.org/ndss/wp-content/uploads/sites/25/2017/09/centrally-banked-cryptocurrencies.pdf.
- [10] Christian Decker and Roger Wattenhofer. A fast and scalable payment network with bitcoin duplex micropayment channels. In Symposium on Self-Stabilizing Systems (SSS), pages 3–18. Springer, 2015. doi:10.1007/978-3-319-21741-3_1.
- [11] Maya Dotan, Yvonne-Anne Pignolet, Stefan Schmid, Saar Tochner, and Aviv Zohar. Survey on blockchain networking: Context, state-of-the-art, challenges. In Proc. ACM Computing Surveys (CSUR), 2021.
- [12] Thaddeus Dryja. Discrete log contracts. https://adiabat.github.io/dlc.pdf, 2018.
- [13] Amir Kafshdar Goharshady. Irrationality, extortion, or trusted third-parties: Why it is impossible to buy and sell physical goods securely on the blockchain. In Yang Xiang, Ziyuan Wang, Honggang Wang, and Valtteri Niemi, editors, 2021 IEEE International Conference on Blockchain, Blockchain 2021, Melbourne, Australia, December 6-8, 2021, pages 73–81. IEEE, 2021. doi:10.1109/Blockchain53845.2021.00021.
- [14] Lewis Gudgeon, Daniel Perez, Dominik Harz, Benjamin Livshits, and Arthur Gervais. The decentralized financial crisis. In Crypto Valley Conference on Blockchain Technology, CVCBT 2020, Rotkreuz, Switzerland, June 11-12, 2020, pages 1–15. IEEE, 2020. doi:10.1109/CVCBT50464.2020.00005.
- [15] Lewis Gudgeon, Sam Werner, Daniel Perez, and William J. Knottenbelt. Defi protocols for loanable funds: Interest rates, liquidity and market efficiency. In AFT ’20: 2nd ACM Conference on Advances in Financial Technologies, New York, NY, USA, October 21-23, 2020, pages 92–112. ACM, 2020. doi:10.1145/3419614.3423254.
- [16] Thibaut Le Guilly, Nadav Kohen, and Ichiro Kuwahara. Bitcoin oracle contracts: Discreet log contracts in practice. In IEEE International Conference on Blockchain and Cryptocurrency, ICBC 2022, Shanghai, China, May 2-5, 2022, pages 1–8. IEEE, 2022. doi:10.1109/ICBC54727.2022.9805512.
- [17] Pavel Hubáček, Jan Václavek, and Michelle Yeo. Foundations of fiat-denominated loans collateralized by cryptocurrencies, 2025. arXiv:2510.25878.
- [18] Dmytro Kondratiuk, Pablo Lamela Seijas, Alexander Nemish, and Simon J. Thompson. Standardized crypto-loans on the cardano blockchain. In Matthew Bernhard, Andrea Bracciali, Lewis Gudgeon, Thomas Haines, Ariah Klages-Mundt, Shin’ichiro Matsuo, Daniel Perez, Massimiliano Sala, and Sam Werner, editors, Financial Cryptography and Data Security. FC 2021 International Workshops - CoDecFin, DeFi, VOTING, and WTSC, Virtual Event, March 5, 2021, Revised Selected Papers, volume 12676 of Lecture Notes in Computer Science, pages 579–594. Springer, 2021. doi:10.1007/978-3-662-63958-0_41.
- [19] Varun Madathil, Sri AravindaKrishnan Thyagarajan, Dimitrios Vasilopoulos, Giulio Malavolta, Lloyd Fournier, and Pedro Moreno-Sanchez. Cryptographic oracle-based conditional payments. https://eprint.iacr.org/2022/499.pdf, 2022.
- [20] Martin Osborne. An introduction to game theory. New York, 3, January 2004.
- [21] Joseph Poon and Thaddeus Dryja. The bitcoin lightning network: Scalable off-chain instant payments. https://lightning.network/lightning-network-paper.pdf, 2015.
- [22] Kaihua Qin, Liyi Zhou, Pablo Gamito, Philipp Jovanovic, and Arthur Gervais. An empirical study of defi liquidations: incentives, risks, and instabilities. In Dave Levin, Alan Mislove, Johanna Amann, and Matthew Luckie, editors, IMC ’21: ACM Internet Measurement Conference, Virtual Event, USA, November 2-4, 2021, pages 336–350. ACM, 2021. doi:10.1145/3487552.3487811.
- [23] Kaihua Qin, Liyi Zhou, Benjamin Livshits, and Arthur Gervais. Attacking the defi ecosystem with flash loans for fun and profit. In Nikita Borisov and Claudia Díaz, editors, Financial Cryptography and Data Security - 25th International Conference, FC 2021, Virtual Event, March 1-5, 2021, Revised Selected Papers, Part I, volume 12674 of Lecture Notes in Computer Science, pages 3–32. Springer, 2021. doi:10.1007/978-3-662-64322-8_1.
- [24] Fabian Schär. Decentralized finance: On blockchain-and smart contract-based financial markets. FRB of St. Louis Review, 2021.
- [25] Sam M. Werner, Daniel Perez, Lewis Gudgeon, Ariah Klages-Mundt, Dominik Harz, and William J. Knottenbelt. Sok: Decentralized finance (DeFi). CoRR, abs/2101.08778, 2021. arXiv:2101.08778.
Appendix A Extensive Form Games and Subgame Perfect Equilibrium
Let be an player game where is a finite set of actions for each player and denote by the set of action profiles. The utility function of each player , , gives the payoff player gets when an action profile is played. A strategy of a player is a distribution over all possible actions of the player.
Definition 8 (Nash Equilibrium).
A Nash Equilibrium (NE) of is a product distribution such that for every player and for all in ,
Intuitively, a vector of strategies is a Nash Equilibrium if no unilateral deviation from can strictly increase the utility of any player.
Nevertheless, we note that the solution concept of Nash equilibrium only applies to single-shot games, which are too restrictive to model the entire set of actions players can embark on over time in our loan setting. Multi-round games where players’ actions arrive sequentially are modelled as extensive-form games. For a formal definition of extensive-form games, see, e.g., [20]. For our purposes, however, one can simply think of extensive-form games as defined by a game tree . All non-leaf vertices in are partitioned into sets with each set corresponding to one player in the game. A player move (or action) at vertex in their vertex set is simply a choice of an edge from to some child of . A path from the root of to a leaf vertex corresponds to a sequence of player moves made by the players in the game. Each leaf of is labelled with a utility vector which shows how much utility each player gets when the game play terminates at this leaf. In the imperfect information or simultaneous action settings, the vertices belonging to any player are further partitioned into information sets which capture the idea that a player making a move at any vertex is uncertain whether they are making the move from or any other vertex .
A subgame of an extensive-form game corresponds to a subtree in rooted at any non-leaf vertex that belongs to its own information set , i.e., there are no other vertices that are in except for .
Definition 9 (Subgame perfection).
Let be an extensive form game. A strategy profile is a subgame perfect equilibrium of if it is a Nash equilibrium for all subgames in .
Appendix B Bitcoin Compatibility Details
In the unspent transaction output (UTXO) model, each unit of currency (which we will hereafter call coins) exists as an output of a transaction which contains two fields: . The first field of the output is the value of the output, and the second field contains spending conditions for the output. The expressivity of spending conditions depend on the underlying scripting language of the blockchain and common examples are single-user and multi-user ownership, time locks, and hash locks. The users that are entitled to spend the output also provide a list of witnesses that fulfill the spending conditions of the output. Outputs are transferred from user to user via transactions, which take as input a set of transaction outputs, and outputs another set of transaction outputs together with spending conditions. Note that the total value of the transaction inputs must equal that of the transaction outputs.
