bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 15쪽 중 15쪽
in place of their desired stable asset. This could result in a market price crash across all collateral due to liquidations & sell-offs.
Catastrophic Scenario:
End.vat
/
End.vow
/
End.cat
/
End.spot
- when set to attacker (
address
: set to attacker-controlled address), can cause shutdown to fail. This is unfixable. For this scenario to occur, the malicious entity (governance or otherwise) would need to be
auth
’ed on the
End
.
Contract Details
Section titled “Contract Details”
Glossary (Shutdown)
Section titled “Glossary (Shutdown)”
Key Functionalities (as defined in the smart contract)
Section titled “Key Functionalities (as defined in the smart contract)”
cage
- Locks the system and initiates shutdown. This is done by freezing the user-facing actions, canceling
flap
and
flop
auctions, locking the rest of the system’s contracts, disabling certain governance actions that could interfere with the settlement process, and starting the cool-down period.
cage(ilk)
- Tags the Ilk prices / Sets the final price for an ilk (
tag
).
skim
- Settles a Vault at the tagged price / Cancels owed Dai from the Vault
free
- Remove (remaining) collateral from a settled Vault. This occurs only after there is no debt in the Vault.
thaw
- Fixes the Dai supply after all Skims / Fixes the total outstanding supply of stablecoin.
flow
- Calculates the fixed price for an ilk, possibly adjusting the
cage
price with surplus/deficit.
pack
- Locks Dai ahead of Cash / Puts some stablecoin into a
bag
in preparation for
cash
.
cash
- Exchange
pack
ed Dai for collateral / Exchange some Dai from
bag
for a given
gem
, share proportional to
bag
size.
file
- The Governance configuration—sets various parameter values.
skip
- optionally cancel live auctions.
Other
Section titled “Other”
wards(usr: address)
- Auth Mechanism
vat
- Vat contract
cat
- Cat contract
vow
- Vow contract
spot
- Spotter contract
live
- Cage flag
“Live” contracts have
live
= 1, indicating the system is running normally. Thus, when
cage()
is invoked, it sets the flag to 0. This includes the
End
contract, which means that
cage()
can only be invoked once and the subsequent functions cannot be invoked until we are “dead” and in the End process
ilk
- A collateral type
when
- Time of cage / the time of settlement.
wait
- Processing cooldown duration / the length of processing cooldown.
debt
- Outstanding Dai after processing / outstanding stablecoin supply, after system surplus/deficit has been absorbed.
tag
- Cage price / price per collateral type at time of settlement.
gap
- Collateral shortfall / shortfall per collateral considering undercollateralised Vaults.
Art
- Total debt per Ilk/outstanding stablecoin debt.
fix
- Final cash price / the cash price for an ilk (amount per stablecoin).
bag(usr: address)
- Dai packed for
cash
/ nontransferable stablecoins ready to exchange for collateral.
out
- Cash out / the amount of already exchanged stablecoin for a given address.
skip
- Optionally cancel live auctions.
wad
- Some quantity of tokens, usually as a fixed point integer with 10^18 decimal places.
urn
- A specific Vault.
tend
- To make a bid, increasing the bid size.
bid
- The quantity being offered for the
lot
.
lot
- The quantity up for auction.
dent
- To make a bid, decreasing the lot size.
Released into the public domain (CC0 1.0 Universal)
– trademarks remain with their owners; no warranty. See
full license
.
## /archive/shutdown/emergency-shutdown
Emergency Shutdown
Deprecated
The Emergency Shutdown Module
ESM
is currently deprecated. The following
information is included as a reference.
The Emergency Shutdown Module (ESM) is a contract with the ability to call
End.cage()
to trigger the Shutdown of the Maker Protocol.
Key Mechanisms & Concepts
Section titled “Key Mechanisms & Concepts”
MKR holders that wish to trigger Shutdown must
join
MKR into the ESM. When the ESM’s internal
Sum
variable is equal to or greater than the minimum threshold (
min
), the ESM’s
fire()
and
denyProxy()
methods may be called by anyone. The
fire()
method, in turn, calls
End.cage()
, which starts the Shutdown process.
The ESM is intended to be used in a few potential scenarios:
To mitigate malicious governance
To prevent the exploitation of a critical bug (for example one that allows collateral to be stolen)
In the case of a malicious governance attack, the joiners will have no expectation of recovering their funds (as that would require a malicious majority to pass the required vote), and their only option is to set up an alternative fork in which the majority’s funds are slashed and their funds are restored.
In other cases, the remaining MKR holders may choose to refund the ESM joiners by minting new tokens.
Note:
Governance can disarm the ESM by calling
cage()
(this is distinct from
End.cage()
).
4. Gotchas (Potential Source of User Error)
Section titled “4. Gotchas (Potential Source of User Error)”
Unrecoverable of Funds
Section titled “Unrecoverable of Funds”
It is important for users to keep in mind that joining MKR into the ESM is irreversible—they lose it forever, regardless of whether they successfully trigger Shutdown. While it is possible that the remaining MKR holders may vote to mint new tokens for those that lose them triggering the ESM, there is no guarantee of this.
Game Theory of Funding and Firing the ESM
Section titled “Game Theory of Funding and Firing the ESM”
An entity wishing to trigger the ESM but possessing insufficient MKR to do so independently must proceed with caution. The entity could simply send MKR to the ESM to signal its desire and hope others join in; this, however, is poor strategy. Governance, whether honest or malicious, will see this, and likely move to de-authorize the ESM before the tipping point can be reached. It is clear why malicious governance would do so, but honest governance might act in a similar fashion—e.g. to prevent the system from being shut down by trolls or simply to maintain a constant threshold for ESM activation. (Honest governance, or even deceptive malicious governance, would be expected to then replace the ESM.) If governance succeeds in this, the entity has simply lost MKR without accomplishing anything.
If an entity with insufficient MKR wishes to trigger the ESM, it is better off first coordinating with others either off-chain or ideally via a trustless smart contract.. If a smart contract is used, it would be best if it employed zero-knowledge cryptography and other privacy-preserving techniques (such as transaction relayers) to obscure information such as the current amount of MKR committed and the addresses of those in support.
If an entity thinks others will join in before governance can react (e.g. if the delay for governance actions is very long), it is still possible that directly sending insufficient MKR to the ESM may work, but it carries a high degree of risk. Governance could even collude with miners to prevent
cage
calls, etc if they suspect an ESM triggering is being organized and wish to prevent it.
5. Failure Modes (Bounds on Operating Conditions & External Risk Factors)
Section titled “5. Failure Modes (Bounds on Operating Conditions & External Risk Factors)”
Authorization Misconfigurations
Section titled “Authorization Misconfigurations”
The ESM itself does not have an isolated failure mode, but if the other parts of the system do not have proper authorization configurations (e.g. the End contract does not authorize the ESM to call
cage()
), then the ESM’s
fire()
method may be unable to trigger the Shutdown process even if sufficient MKR has been committed to the contract.
Contract Details
Section titled “Contract Details”
ESM (Glossary)
Section titled “ESM (Glossary)”
Key Functionalities (as defined in the smart contract)
rely
- Grant an address admin powers
deny
- Revoke admin powers from an address
file
- Allow admin to update threshold
min
and address of
end
cage
- Permanently disable the shutdown module
fire
- Trigger shutdown by calling
End.cage
denyProxy
- Following the wards rely/deny pattern, calls deny on a given contract
join
- Deposit MKR to the shutdown module
burn
- Burn any MKR deposited into the shutdown module
Other
gem
- MKR Token contract [address]
wards(admin: address)
- Whether an address has admin powers [address: uint]
sum(usr: address)
- MKR join balance by user [address: uint]
Sum
- Total MKR deposited [uint]
min
- Minimum MKR amount required for
fire
and
denyProxy
[uint]
end
- The End contract [address]
live
- Whether the contract is live (not caged) [uint]
Released into the public domain (CC0 1.0 Universal)
– trademarks remain with their owners; no warranty. See
full license
.
## /license
License
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
--------------------------------------------------------------------
ADDITIONAL TRADEMARK, THIRD-PARTY CONTENT,
AND LIABILITY DISCLAIMER (Not part of CC0)
All trademarks, logos, and brand names are the property of their respective
owners and are used in this project solely for identification or illustrative
purposes; no endorsement is implied.
Any third-party copyrighted material included in this project remains the
property of its respective owner and is NOT released under CC0 unless
explicitly stated.
THIS PROJECT (INCLUDING ALL CONTENT, CODE, AND DOCUMENTATION) IS PROVIDED "AS IS",
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE PROJECT OR THE
USE OR OTHER DEALINGS IN THE PROJECT.
--------------------------------------------------------------------
Released into the public domain (CC0 1.0 Universal)
– trademarks remain with their owners; no warranty. See
full license
.프로젝트로 돌아가기