Satoshi 101 · · 7 min read

Why We Need Borrowing and Redemption Fees

Essential components for stablecoin protocol.

Why We Need Borrowing and Redemption Fees
Authored by smart contract auditors Ashley & Bill.

Maintaining protocol stability and security is important in the rapidly evolving landscape of decentralized finance (DeFi).

Among the various mechanisms that ensure the integrity of DeFi protocols, borrowing fees, and redemption fees play critical roles. This article delves into why these fees are indispensable, particularly within the context of the Satoshi Protocol — a revolutionary stablecoin protocol backed by Bitcoin.

What is Satoshi Protocol

Satoshi Protocol is a revolutionary “universal” stablecoin protocol backed by Bitcoin. It allows users to deposit BTC and LST as collateral to mint the stablecoin $SAT on the Bitcoin mainnet and multiple L2s.


Introducing Borrowing and Redemption Fees

Satoshi Protocol is built upon the robust foundations of CDP, a well-established mechanism of issuing stablecoins backed by collateral. Satoshi Protocol implements borrowing fees and redemption fees, which are integral to maintaining the protocol’s stability and security.

Borrowing Fees

When users leverage their collateral to borrow $SAT, they incur a one-time borrowing fee. This fee is calculated based on the protocol’s baseRate, a dynamically adjusting parameter that reflects recent activity within the system.

For instance, if a user borrows 4,000 $SAT with a baseRate of 0.5%, a fee of 20 $SAT is added to their debt, resulting in a total debt of 4,020 $SAT.

Redemption Fees

Similarly, when users redeem $SAT for the underlying collateral, a redemption fee is applied. This fee is also determined by the baseRate and increases proportionally with the fraction of the total stablecoin supply being redeemed.

For example, redeeming 100 $SAT with a baseRate of 1% would result in a fee, ensuring users receive slightly less collateral after accounting for the fee.


Why These Fees Cannot Be Zero: Ensuring Protocol Security

The introduction of borrowing and redemption fees is not merely a financial mechanism but a crucial security feature. Removing or setting these fees to zero would expose the protocol to several vulnerabilities that could jeopardize its stability and integrity.

We have summarized the following key points based on the article Delving into the Security Implications of Fee Structure in a CDP Protocol:

Preventing Zero-Slippage Arbitrage

Without a redemption fee, the protocol could become a zero-slippage swap decentralized exchange (DEX). Large stablecoin holders could exploit the redemption mechanism to perform significant arbitrage trades without incurring substantial costs.

This would lead to excessive redemptions, draining the protocol’s liquidity and forcing borrowers to sell their collateral at unfavorable prices. Additionally, attackers could monitor the mempool for transactions and front-run oracle price updates to gain an advantage.

By redeeming a large amount of $SAT before the collateral price update and selling it afterward, they could exploit the price difference. If successful, this strategy would likely trigger a surge in redemptions. As a result, the total value locked (TVL) of the protocol would decrease, undermining the protocol’s overall security and attractiveness to users.

Mitigating Redemption Fee Manipulation

In the absence of a borrowing fee, users could artificially inflate the protocol’s total debt through large borrowings, subsequently redeeming stablecoins at reduced fees. This manipulation undermines the protocol’s intended fee structure, reducing revenue and potentially destabilizing the protocol.

For instance, attackers could use flash loans to borrow large amounts of $SAT, increasing the total debt, and then redeeming their stablecoins at a lower fee, leaving the protocol with diminished revenue and causing instability for other users.

Deterring Recovery Mode Exploits

One-time fees act as deterrents against attacks aimed at triggering Recovery Mode — a state where the protocol prioritizes restoring its overall health by liquidating positions with collateral ratios lower than 150%.

Without borrowing fees, attackers could use flash loans to borrow a large amount of collateral and then open a large position to manipulate the Total Collateral Ratio (TCR), pushing the protocol to the brink of entering Recovery Mode.

When the protocol enters Recovery Mode, this would allow them to liquidate vulnerable positions, profiting from liquidation rewards while harming other users. Borrowing fees increase the cost of such manipulations, making it economically unfeasible for attackers to execute these exploits.


Real-World Attack Simulation: The Impact of Removing Fees

To better understand the critical importance of borrowing and redemption fees, let’s explore two attack scenarios: one where the redemption fee is removed and another where the borrowing fee is zero.

Scenario 1: No Borrowing Fee

Exploit Process

  1. Mempool Monitoring
  1. Flash Loan and Borrowing
  1. Oracle Price Update
  1. Liquidating User A’s Position
  1. Repaying Flash Loan and Attacker’s Profit

Cost Analysis

Outcome


Scenario 2: No Redemption Fee

Setup

Exploit Process

  1. Mempool Monitoring and Oracle Front-Running
  1. Forced Reduction of User A’s Position
  1. Oracle Update and Attacker’s Profit

Cost Analysis

Outcome


Conclusion

As Satoshi Protocol continues to innovate, the importance of robust security measures becomes increasingly evident. Borrowing fees and redemption fees are not mere financial instruments but essential components that safeguard the protocol against malicious exploits.

By introducing costs to borrowing and redeeming, these fees ensure that manipulative actions become economically unattractive, thereby preserving the protocol’s stability and integrity.

In the dynamic world of DeFi, where protocols are constantly under threat from sophisticated attacks, understanding and implementing effective security measures is crucial.

Satoshi Protocol’s adoption of borrowing and redemption fees exemplifies a proactive approach to securing DeFi systems, ensuring long-term viability and trustworthiness in the decentralized financial ecosystem.


Reference