USDS 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 15쪽 중 13쪽

using a shared rate accumulator to track balances for all Vaults of the same collateral type. This requires any user balance tied to a rate to be normalized before its stored in lieu of the actual balance. The actual balance at any point in time can be computed by multiplying a normalized balance with the current value of the shared rate accumulator. Ex: A user deposits collateral and draws 100 dai in debt from a Vault and the rate accumulator of the collateral type currently has the value 1.00083 . Dividing the actual balance 100 by current the value of the rate accumulator which gives us the result 99.917068832868719 . This is now stored as the normalized balance which will initialize the Vault debt with the principal amount. As the shared rate accumulator continues to increase when drip is executed in the future, the debt balance of this Vault will also increase. Sky Protocol Section titled “Sky Protocol” Rate mechanisms are used in the Sky Protocol for maintaining stability fee balances of Vaults and the Dai Savings Rate (DSR) balances of users who’ve locked dai in the DSR contract. Stability Fees Section titled “Stability Fees” Vaults with outstanding debt are charged a stability fee by the Sky protocol. The accounting for stability fees: tracking rates, and rate accumulators for all collateral types, are done in the Jug and Vat contracts. All Vaults in the system are charged the base rate equally. Each collateral type is charged an additional duty rate which is called the risk premium. Both the rates base and duty are accumulated together in a single rate accumulator rate for each collateral type in the Vat contract when drip is executed for the collateral type. The debt of a Vault can be calculated anytime by multiplying art which is the normalized debt value and rate of the collateral type, both stored in the Vat contract. Every time drip is executed it increases the value of the rate accumulator which results in additional debt recorded for all Vaults of the collateral type. The dai generated by increasing the debt of all Vaults is collected as surplus first in the Vow contract which kicks off a surplus auction flap later once the surplus exceeds a certain threshold. The rate mechanism thus allows the system to continuously collect stability fees from Vaults every block. Normalized debt values are also maintained for the total debt of a collateral type Art and multiplying it with the same rate accumulator rate of the collateral type will give the total debt issued. Dai Savings Rate Section titled “Dai Savings Rate” Sky Protocol introduces a new mechanism which pays dai holders additional dai over time based on a rate called the Dai Savings Rate (DSR). This is a rate with no additional risk because the dai is not lent again to other users. Sky governance uses this rate to increase demand by making it attractive for users to purchase and hold dai. The DSR contract Pot uses the same rate mechanism with one variable to store the savings rate dsr and a rate accumulator chi to track the rewards that dai holders receive. Currently the savings rate is not natively integrated into the ERC20 DAI token. Ethereum external accounts or smart contracts have to execute a join transaction in Pot to earn the savings rate on their dai. Normalized balances of users are stored in the pie variable and the real dai balance of users can be calculated by multiplying pie and chi anytime. Rate accumulator chi value increases when drip function in the Pot contract is called which increases the balance of all locked dai holders. The Pot contract generates additional dai by recording bad debt first in Vow which will most likely get cancelled with surplus that is also being collected continuously as stability fees from Vaults. The join function expects the caller to calculate and input the normalized balance instead of the amount of dai being deposited by the user. It also requires drip to be executed to ensure the current dai being deposited doesn’t earn additional dai for past time before the actual deposit. These details are handled for you if the join proxy script is used instead of join directly. Troubleshooting Section titled “Troubleshooting” Exponentiation calculation taking too long? Check for a missing decimal point in rate if your python script takes too long to perform the exponentiation calculation. Summary Section titled “Summary” This guide covered the general rate mechanism and how it is used to track the Stability fee and the Dai Savings Rate in the Sky protocol. Released into the public domain (CC0 1.0 Universal) – trademarks remain with their owners; no warranty. See full license . ## /security/security-measures/overview Overview Front-ends Section titled “Front-ends” IP Address Screening Section titled “IP Address Screening” Front-end web applications implement geo-blocking, VPN blocking, and other sanctions compliance features to restrict access in certain regions and ensure compliance with legal and regulatory requirements. As a result, users from specific jurisdictions or using VPNs may be unable to access the platform. Bug Bounty Program Section titled “Bug Bounty Program” Bug Bounty Program is managed by ImmuneFi and you can find the scope and rules on their website . Audits Section titled “Audits” Public audit reports are grouped by protocol area and module. This index is generated from the protocol scan module records. Capital Allocation Section titled “Capital Allocation” DSS Allocator Section titled “DSS Allocator” ChainSecurity: MakerDAO Allocator Audit (2024-09-09) ChainSecurity: MakerDAO Allocator Deployment Scripts Audit (2024-09-09) FPS: dss-allocator Assessment Final (2023-08-30) Cantina: MakerDAO DSS Allocator Audit (2023-11-24) Direct Deposit (D3M) Section titled “Direct Deposit (D3M)” ChainSecurity: Code Assessment of the Direct Deposit V2 Smart Contracts (2024-03-20) ChainSecurity: Code Assessment of the D3M AaveV3 USDS Pool Smart Contracts (2024-09-10) Chain Bridges Section titled “Chain Bridges” Arbitrum Token Bridge Section titled “Arbitrum Token Bridge” ChainSecurity: MakerDAO Arbitrum Token Bridge Audit (2024-10-09) Cantina: MakerDAO Arbitrum Token Bridge Audit (2024-10-23) LayerZero Governance Relay Section titled “LayerZero Governance Relay” ChainSecurity: Sky LZ Governance Relay Audit (2026-06) ChainSecurity: Sky LZ Governance Relay Audit (2025-10) Cantina: Sky LZ Governance Relay Audit (2026-06) Cantina: Sky LZ Governance Relay Audit (2025-09) OP Token Bridge Section titled “OP Token Bridge” ChainSecurity: MakerDAO OP Token Bridge Audit (2024-10-09) Cantina: MakerDAO OP Token Bridge Audit (2024-10-23) Sky OApp / OFT Section titled “Sky OApp / OFT” ChainSecurity: Sky Governance OApp Audit (2025-10) ChainSecurity: Sky OApp OFT Audit (2025-10) Cantina: Sky LayerZero Governance EVM Audit (2025-09) Cantina: Sky LayerZero Solana Governance Audit (2025-09) Cantina: Sky OFT EVM Audit (2025-09) Cantina: Sky OFT Solana Audit (2025-09) Cantina: Sky OFT Crosschain Governance Payloads Audit (2026-05) Optimism DAI Bridge Section titled “Optimism DAI Bridge” ChainSecurity: Code Assessment of the Optimism DAI Bridge Smart Contracts (2021-07-07) StarkNet DAI Bridge Section titled “StarkNet DAI Bridge” ChainSecurity: Code Assessment of the StarkNet-DAI-Bridge Smart Contracts (2022-03-29) Collateral Risk Section titled “Collateral Risk” SP-BEAM Section titled “SP-BEAM” ChainSecurity: Sky SP-BEAM Module Audit (2025-03-31) Cantina: Maker SP-BEAM Audit (2025-03) OSM Section titled “OSM” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) RWA Toolkit Section titled “RWA Toolkit” ChainSecurity: Code Assessment of the RWA Toolkit Smart Contracts (2023-07-06) Core System Section titled “Core System” DSS / Multi-Collateral Dai Section titled “DSS / Multi-Collateral Dai” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) ChainSecurity: Code Assessment of the Liquidations 2.0 Smart Contracts (2020-04-16) Trail of Bits: MakerDAO Liquidations 2.0 Final Report (2021-03-19) Quantstamp: MakerDAO Liquidations 2.0 Final Report with Maker Comments (2021-03-10) PeckShield: MakerDAO Multi-Collateral Dai Final Audit Report (2019-10-04) Liquidations 2.0 Section titled “Liquidations 2.0” Gauntlet: Liquidations 2.0 Economic Simulation CDP Manager Section titled “CDP Manager” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) ESM Section titled “ESM” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) Multicall Section titled “Multicall” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) User Proxies Section titled “User Proxies” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) Governance Control Section titled “Governance Control” Chief Section titled “Chief” ChainSecurity: Sky Chief Audit (2025-03-21) Cantina: Sky Chief Audit (2025-04-30) DSPause Section titled “DSPause” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) Star Guard Section titled “Star Guard” ChainSecurity: Sky StarGuard Audit (2025-10) Cantina: Sky Star Guard Audit (2025-10) Vote Delegate Section titled “Vote Delegate” ChainSecurity: Sky VoteDelegate Audit (2025-04-24) Cantina: Sky Vote Delegate Updates Audit (2025-04-30) Emergency Spells Section titled “Emergency Spells” ChainSecurity: Code Assessment of the DSS Emergency Spells Smart Contracts (2026-06-03) Cantina: Sky stUSDS Standby Spells Security Review (2026-06-03) Protego Section titled “Protego” ChainSecurity: Code Assessment of the Protego Smart Contracts (2025-04-15) Vote Proxy Section titled “Vote Proxy” Trail of Bits: MakerDAO Multi-Collateral Dai Final Report (2019-08-30) Laniakea Section titled “Laniakea” Diamond PAU Section titled “Diamond PAU” ChainSecurity: Diamond PAU Audit (2026-07-06) Cantina: Diamond PAU Audit (2026-07-06) Certora: Diamond PAU Audit (2026-05) Octane: Diamond PAU Audit (2026-06-02) Unvariant: Diamond PAU Audit (2026-04-17) ChainSecurity: PAU Administered Agent Audit (2026-06-08) Cantina: PAU Administered Agent Audit (2026-06-09) ChainSecurity: PAU Assemblers Audit (2026-06-12) Cantina: PAU Assemblers Audit (2026-06-15) Savings and Staking Section titled “Savings and Staking” stUSDS Section titled “stUSDS” ChainSecurity: Sky stUSDS Audit (2026-04-10) Cantina: Sky stUSDS Audit (2025-08-18) Cantina: Sky stUSDSMom Audit (2026-05-04) sUSDS Section titled “sUSDS” ChainSecurity: MakerDAO Savings USDS Audit (2024-09-30) Cantina: MakerDAO sUSDS Audit (2024-09-26) Lockstake Section titled “Lockstake” ChainSecurity: Sky Lockstake Audit (2025-09-26) Cantina: Sky Lockstake Audit (2025-09-29) Surplus and Rewards Section titled “Surplus and Rewards” Endgame Toolkit Section titled “Endgame Toolkit” ChainSecurity: Sky Endgame Toolkit Audit (2026-01-13) Cantina: Sky Endgame Toolkit Audit (2026-01-29) Sherlock: MakerDAO Endgame Audit Report (2024-08-05) DSS Flappers Section titled “DSS Flappers” ChainSecurity: Code Assessment of the FlapperUniV2 Smart Contracts (2023-06-06) ChainSecurity: Code Assessment of the FlapperUniV2SwapOnly Smart Contracts (2023-07-27) ChainSecurity: Sky Dss Flappers Audit (2026-07-10) Cantina: Sky Flappers Audit (2025-10-23) Sherlock: MakerDAO Endgame Audit Report (2024-08-05) Cantina: Sky: SBE Beam Security Review (2026-07-14) DSS Vest Section titled “DSS Vest” ChainSecurity: MakerDAO DSS Vest Audit (2024-12-12) ABDK: DSS Vest Audit (2021-07-25) DSS Blow2 Section titled “DSS Blow2” ChainSecurity: Code Assessment of the DSS Blow2 Smart Contracts (2025-02-21) Tokens and Liquidity Section titled “Tokens and Liquidity” USDS Section titled “USDS” ChainSecurity: MakerDAO USDS Audit (2024-09-30) Cantina: MakerDAO USDS Audit (2024-09-26) SKY Section titled “SKY” ChainSecurity: Sky Audit (2025-04-16) Cantina: Sky Audit Updates (2025-04-30) LitePSM Section titled “LitePSM” ChainSecurity: MakerDAO PSM Lite Audit (2024-07-04) Cantina: MakerDAO DSS Lite PSM Audit (2024-06-26) PSM3 Section titled “PSM3” ChainSecurity: Spark PSM Audit (2024-10-22) Cantina: Spark PSM Audit (2024-10-23) USDS Wrappers Section titled “USDS Wrappers” ChainSecurity: MakerDAO USDS Wrappers Audit (2024-09-04) Released into the public domain (CC0 1.0 Universal) – trademarks remain with their owners; no warranty. See full license . ## /security/security-measures/development-practices Development Practices Formal Verification Section titled “Formal Verification” The following codebases have been formally verified using Certora. Please find the links to the Certora specs here: LitePSM: https://github.com/sky-ecosystem/dss-lite-psm/tree/main/certora USDS and DAI-USDS Converter: https://github.com/sky-ecosystem/usds/tree/dev/certora SKY and MKR-SKY Converter: https://github.com/sky-ecosystem/sky/tree/dev/certora Released into the public domain (CC0 1.0 Universal) – trademarks remain with their owners; no warranty. See full license . ## /security/security-measures/security-mechanisms Security Mechanisms Spells are immutable contracts designed to implement a predefined set of changes to the protocol—such as module authorizations or parameter adjustments—once approved through governance voting on ds-chief . Detailed information on spell crafting, review processes, testing, and a history of previously executed spells can be accessed here . Instant Access Modules Section titled “Instant Access Modules” Various instant access modules have been integrated into the protocol to allow for immediate parameter updates within predefined limits, bypassing the standard governance voting process and its associated security delays. These modules ensure that certain adjustments can be made quickly while still maintaining protocol integrity. MOM Section titled “MOM” All governance actions must pass through a governance security delay before they can be executed. However, some functions are pre-configured to bypass this delay, either through specific authorized actors or governance itself. For example, the FlapperMom contract allows governance to instantly disable the Flapper instance without waiting for the governance security delay. Oracle Price Freeze Section titled “Oracle Price Freeze” Oracle Security Module (OSM) MOM allows the oracle collateral price feed provider (Chronicle) to freeze the current price value, preventing a potentially malicious price—queued within the OSM’s one-hour window—from becoming active. Debt Ceiling AutoLine Section titled “Debt Ceiling AutoLine” Minting excessive DAI, even with sufficient collateralization, can introduce significant risk. To mitigate this, the Debt Ceiling defines the maximum amount of DAI that can be minted against a specific collateral type. To provide more flexibility, the AutoLine IAM enables the broader community to adjust the debt ceiling within predefined parameters established by token holders. Delays Section titled “Delays” Delays are utilized throughout the system to provide actors and users with sufficient time to review and respond to pending changes. This mechanism allows for the opportunity to make adjustments or take necessary actions before the scheduled changes are implemented, ensuring proper oversight and reaction time. Governance Security Delay Section titled “Governance Security Delay” Governance Security Module (GSM) enforces a governance security delay via the Pause Proxy . This ensures that all governance actions executed through the Pause Proxy are subject to a delay, providing the ecosystem with time to observe the upcoming changes and respond accordingly before they go live. Oracle Price Delay Section titled “Oracle Price Delay” Oracle Security Module (OSM) enforces a delay of one hour on all price value updates to collateral types like ETH. This ensures vault owners have sufficient time to react and adjust their positions by adding more collateral or repay debt when the new price is lower. It also allows the oracle price feed provider (Chronicle) to freeze the current price value and stop a queued malicious price value from going through. Surplus Buffer Section titled “Surplus Buffer” Governance controls a surplus buffer in DAI (or USDS), which serves as reserves fully owned by the protocol. Governance Flash Loan Attacks Section titled “Governance Flash Loan Attacks” The ds-chief contract prevents SKY locked for voting from being used in the same block as the deposit. This measure blocks the use of flash loans to temporarily increase voting weight for governance decisions, such as spells. However, this restriction does not affect legitimate borrowers who have obtained SKY through lending protocols like AAVE, allowing them to use their borrowed SKY for voting. Collateral Liquidations Section titled “Collateral Liquidations” The Hole and ilk.hole parameters set a global limit and a limit per collateral type on the total amount of DAI debt that can be in auction at any given time. These limits are designed to ensure that collateral liquidations do not overwhelm the liquidity available in external markets, helping to maintain stability during liquidation events. Dutch auctions enable a wide range of participants, including those without direct access to their own capital, to take part in collateral auctions. This open participation mechanism helps ensure broader access and competition during the auction process. Global Settlement and Emergency Shutdown Module are disabled Section titled “Global Settlement and Emergency Shutdown Module are disabled” Global Settlement is a complex feature from a previous era that is now considered deprecated and not intended for use. Similarly, the Emergency Shutdown mechanism, which can be triggered by a subset of SKY holders, is also considered deprecated. Its trigger threshold has been set to a very high level to reflect this. Released into the public domain (CC0 1.0 Universal) – trademarks remain with their owners; no warranty. See full license . ## /security/bug-bounty-program Bug Bounty Program Bug Bounty Program is managed by ImmuneFi and its scope and rules are found in the Sky ImmuneFi Bug Bounty Portal . Released into the public domain (CC0 1.0 Universal) – trademarks remain with their owners; no warranty. See full license . ## /archive/shutdown/shutdown Shutdown (End) Deprecated The Shutdown Module End is currently deprecated. The following information is included as a reference. The End ’s purpose is to coordinate Shutdown. In short, Shutdown closes down the system and reimburses Dai holders. This process can occur during upgrades (Dai iterations), as well as for security reasons in the event that implementation flaws arise in both in the code and in the design. Key Mechanisms & Concepts Section titled “Key Mechanisms & Concepts” Cage (Summary) Section titled “Cage (Summary)” The cage is the most complex mechanism within the Maker Protocol. This is because the cage must alter the behavior of almost every component of the system as well as perform under a variety of possible undercollateralization regimes. Listed below are a number of key properties, such as Dai and Vault parity, or the lack of race conditions, which are desirable (nice-to-have) properties of Shutdown, and are not, in fact, all satisfied by the real-world implementation of Shutdown. Dai Parity - Assuming there is enough collateral in the system, it is the sum of the values of each collateral redeemed from 1 Dai equal to the target price (i.e., $1.00 ), as judged by the collateral price used by cage . Vault Parity - Where each Vault is settled
프로젝트로 돌아가기