bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 4쪽
f a transaction gets stuck in "Processing"?**
Do not resubmit the transaction. Locate the transaction in your records, copy the transaction hash, and contact USDD support or your wallet provider.
## 8. Security Tips
* Only access GasFree through officially supported wallet applications. 
* Verify the token (USDD), network (TRON), and the receiving address character-by-character before confirming.
* Never share your recovery phrase, private key, or wallet password with anyone.
* All addresses and values shown in screenshot illustrations are for demonstration purposes only.
Screenshots in this guide are based on TronLink; actual UI layouts may vary depending on product versions and updates. Always refer to your active product interface. 
<br>
# Glossary
## General
* `wad`: some quantity of tokens, usually as a fixed point integer with 18 decimal places.
* `ray`: a fixed point integer, with 27 decimal places.
* `rad`: a fixed point integer, with 45 decimal places.
* `file`: administer some configuration value
* `auth`: check whether an address can call this method
* `wards`: an address that is allowed to call authored methods
* `rely`: allow an address to call authored methods
* `deny`: disallow an address from calling authored methods
* `Authority:` checks whether an address can call this method
## Vat
* `hope`: enable wish for a pair of addresses.
* `nope`: disable wish for a pair of addresses.
* `init`: start stability fee collection for a particular collateral type
* `slip`:modify a user's collateral balance.
* `move`:transfer stablecoin between users.
* `frob`:modify a Vault.
* `grab`:liquidate a Vault.
* `heal`:create / destroy equal quantities of stablecoin and system debt (vice).
* `suck`:mint unbacked stablecoin (accounted for with vice).
* `fold`:modify the debt multiplier, creating / destroying corresponding debt.
* `ilk`:a collateral type.
* `art`:total normalized stablecoin debt.
* `rate`:stablecoin debt multiplier (accumulated stability fees).
* `line`:the debt ceiling for a specific collateral type.
* `dust`:the minimum possible debt of a Vault.
## Vow
* `Sin`: the total amount of debt in the queue.
* `Ash`: the total amount of on-auction debt.
* `wait`: debt auction delay.
* `sump`: debt auction bid size, i.e. the fixed debt quantity to be covered by any one debt auction
* `dump`: debt auction lot size, i.e. the starting amount of MKR offered to cover the lot/sump
* `bump`: surplus auction lot size, i.e. the fixed surplus quantity to be sold by any one surplus auction
* `hump`: surplus buffer, must be exceeded before surplus auctions are possible
## Dog
* `bark`: A vault’s all debt is taken when this liquidation function is called.
* `ilk`
* `chop`: Liquidation Penalty
* `hole`: Max USDD needed to cover debt+fees of active auctions per ilk
* `dirt`: Amt USDD needed to cover debt+fees of active auctions per ilk
## Clip
* `buf`: Multiplicative factor to increase starting price
* `tail`: Time elapsed before auction reset
* `cusp`: Percentage drop before auction reset
* `chip`: Percentage of tab to suck from vow to incentivize keepers
* `tip`: Flat fee to suck from vow to incentivize keepers
* `chost`: Cache the ilk dust times the ilk chop to prevent excessive SLOADs
* `sale`
* `pos`: Index in active array
* `tab`:USDD to raise
* `usr`: Liquidated CDP
* `tic`: Auction start time
* `top`: Starting price
## Jug
* `duty`: Collateral-specific, per-second stability fee contribution
* `rho`: Time of last drip
## Median
* `orcl(usr: address)` : oracles whitelist of the prices (whitelisted via governance / the authorized parties).
* `bud(usr: address):` readers whitelist.
* `val:` the price (private) must be read with `read()` or `peek()`
* `age`: the Block timestamp of last price `val` update.
* `wat:` the price oracles type (ex: TRXUSD) / tells us what the type of asset is.
* `bar`: the Minimum writers quorum for poke / min number of valid messages you need to have to update the price.
## OSM
* `src` : address of DSValue that the OSM will read from
* `hop` : time delay between poke calls (uint16); defaults to ONE\_HOUR
* `cur` : Feed struct that holds the current price value
* `nxt` : Feed struct that holds the next price value
* `bud` : mapping from address to uint256; whitelists feed readers
# Core Contracts
# Vat
### **Purpose**
The core accounting contract of the protocol, VAT tracks system-wide balances, including user Vaults, collateral types, and debt. It ensures that all collateral and debt are properly accounted for and enforces system solvency.
### Key Responsibilities
* Tracks collateral and debt balances for all users and collateral types.
* Ensures Vault operations (e.g., minting and repaying USDD) adhere to protocol parameters.
* Integrates with other contracts to trigger auctions or manage liquidations.
### Key Methods
* `slip(ilk, usr, wad)`\
Adjusts the balance of a specific collateral type (`ilk`) for a user (`usr`).
* Example Use: Adding or removing collateral from a user's Vault.
* `frob(ilk, u, v, w, dink, dart)`\
Adjusts collateral (`dink`) and debt (`dart`) for a Vault.
* Example Use: Minting new USDD or repaying debt.
* `grab(ilk, u, v, w, dink, dart)`\
Executes adjustments on collateral and debt during liquidation.
* `fold(ilk, u, rate)`\
Increase the `Ilk.rate` with rate, and hence the debt balances of all Vaults collateralized with the specified Ilk are updated implicitly.
* `file(what, data) / file(what, ilk, data)`\
Sets or updates system-wide parameters like debt ceilings, stability fees, or collateralization thresholds.
* Example Use: Setting a collateral type’s maximum mintable USDD.
# Dog
### **Purpose**
The Dog contract oversees the liquidation process. It monitors Vaults for undercollateralization and triggers auctions to sell collateral when necessary.
### Key Responsibilities
* Tracks undercollateralized Vaults.
* Incentivizes keepers to liquidate risky positions.
### Key Methods
* `bark(ilk, urn, kpr)`\
Initiates the liquidation process for a Vault (`urn`). Determines the amount of collateral to be auctioned and distributes liquidation rewards to keepers.
hole: Maximum debt to liquidate per collateral type.
* `digs(ilk, rad)`\
Adjusts internal debt balances after liquidation is completed.
* `file(what, ilk, data)`\
Configures liquidation parameters, such as penalties and incentives.
* Example Parameters:
* `chop`: Liquidation penalty (e.g., 5% of the debt).
* `hole`: Maximum debt to liquidate per collateral type.
# Clip
### **Purpose**
Handles collateral auctions, where liquidated collateral is sold to cover bad debt. CLIP ensures auctions operate fairly and efficiently using a Dutch auction mechanism.
### Key Responsibilities
* Conducts auctions for liquidated collateral.
* Ensures participants receive fair prices.
### Key Methods
* `kick(tab, lot, usr, kpr)`\
Starts an auction with a debt amount (`tab`), collateral amount (`lot`), and Vault owner (`usr`).
* Example Use: Kicking off an auction for a liquidated Vault.
* `redo(id, kpr)`\
Allows keepers to reinitialize a stale auction, ensuring auction prices remain relevant.
* `take(id, amt, max, who data)`\
Users can participate in an auction by calling this function.yank(id)\
Cancels an auction when debt is repaid or resolved through other means.
* `file(what, data)`\
Configures auction parameters such as price decay rates or auction durations.
* Example Parameters:
* `tip`: Fixed incentive for starting an auction.
* `cut`: Price decay factor per second.
# Spot
### **Purpose**
Ensures the protocol receives real-time, reliable price data for all collateral types. SPOT determines whether Vaults meet collateralization requirements.
### Key Responsibilities
* Retrieves and updates collateral prices.
* Enforces collateralization thresholds for system stability.
### Key Methods
* `poke(ilk)`\
Updates the system with the latest price for a specific collateral type.
* Example Use: Updating the TRX price when markets fluctuate.
* `file(what, ilk, data)`\
Configures parameters such as the liquidation ratio (`mat`).
* Example Use: Setting mat to 150%, requiring 1.5x collateral for every USDD minted.
# Jug
### **Purpose**
Calculates and accrues stability fees on minted USDD. These fees ensure protocol sustainability and discourage excessive borrowing.
### Key Responsibilities
* Accumulate stability fees for particular collateral types .
* Adjusts debt levels to reflect accrued interest.
### Key Methods
* d`rip(ilk)`\
Performs stability fee collection for a specific collateral type when it is called. Calls `Vat.fold` to update the collateral's rate, total tracked debt, and Vow surplus;
duty: Annualized stability fee rate.
* `file(what, data) / file(what, ilk, data)`\
Configures global and per-collateral stability fee rates.
* Example Parameters:
* `duty`: Annualized stability fee rate.
# Median
### **Purpose**
It provides the protocol’s trusted reference price.
### Key Responsibilities
* Maintains a whitelist of price feed contracts which are authorized to post price updates.
* Computes and updates the stored value when a new list of prices is received.
### Key Methods
* `poke()`\
Updates price from whitelisted providers.
* `peek(what, data) / file(what, ilk, data)`\
Get the price and validity.
# OSM
### **Purpose**
It ensures that new price values propagated from the Oracles are not taken up by the system until a specified delay has passed.
### Key Responsibilities
* Periodically feeds a delayed price into the system for a particular collateral type.
### Key Methods
* `peek()`\
Returns the current feed value and a boolean indicating whether it is valid.
* `read()`\
Returns the current feed value; reverts if it was not set by some valid mechanism.
* `peep()`\
Returns the next feed value (i.e. the one that will become the current value upon the next `poke()` call), and a boolean indicating whether it is valid.
# Proxy contract
### **Purpose**
* The DSProxy contract allows users to execute code on their behalf using a persistent proxy address.
* It simplifies complex multi-step operations by enabling atomic execution within the context of the proxy’s identity.
* Ownership of the proxy is flexible and can be transferred, supporting dynamic models like multisignature wallets.
### Key Methods
* `execute(bytes memory _code, bytes memory _data)`
* If \_code corresponds to a cached contract, it is executed directly; otherwise, the contract is deployed and cached before execution.
* \_data specifies the calldata to be sent to the contract.
* Emits an Execute event upon successful execution.
* `execute(address _target, bytes memory _data)`
* Directly executes a specified contract (\_target) with provided calldata (\_data).
* Requires the caller to have the necessary auth permissions.
# PSM
### **Purpose**
Maintains USDD’s price peg by facilitating 1:1 swaps with other stablecoins (e.g., USDT).
### Key Responsibilities
* Reduces volatility during market imbalances.
* Offers zero-slippage swaps with no fees.
### Key Methods
* `sellGem(usr, wad)`\
Allows users to exchange a stablecoin (`gem`) for USDD.
* `buyGem(usr, wad)`\
Enables users to swap USDD for another stablecoin.
* `file(what, data)`\
Sets PSM parameters such as swap limits or supported stablecoins.
# Migrate
### **Purpose**
Enables seamless migration of USDDOLD to the new USDD version. This tool ensures users can upgrade at their convenience without deadlines.
### Key Responsibilities
* Converts legacy USDD tokens into the upgraded version.
* Simplifies the user transition process.
### Key Methods
* `migrate(usr, wad)`\
Converts a specified amount of USDDOLD for a user.
# Deployment Addresses
### Tron Mainnet
<table><thead><tr><th width="256.30859375">Name</th><th>Contract Address</th></tr></thead><tbody><tr><td>USDD</td><td><code>TXDk8mbtRbXeYuMNS83CfKPaYYT8XWv9Hz</code></td></tr><tr><td>USDD Join</td><td><code>TUajR7CbXU6hX8n3XtNkitFAD25JvP99K6</code></td></tr><tr><td>Vat</td><td><code>TH5dhX7o39afSbfDT2e3c9k4itWjNKD4D9</code></td></tr><tr><td>Jug</td><td><code>TWttvCqVmiLip7PL8Aut2Hi37swqv7EmYd</code></td></tr><tr><td>Dog</td><td><code>TCwYKcDj8c5Te9hjj3UokcxhpY6skFoXnG</code></td></tr><tr><td>Vow</td><td><code>TXLfZmQtLtLxWYNL2fxhw34JNGHB2EKeSU</code></td></tr><tr><td>Flap</td><td><code>TP2eYpkrgk7sLAts5tvzsFxHiDH8PmQcuH</code></td></tr><tr><td>Flop</td><td><code>TX6CM8K1FgS2nnTEjLsKW6TAVSipFXHh5C</code></td></tr><tr><td>Spot</td><td><code>TU8Z8CeUd7pnXSMHTNqRgK6Qxxxyzsba1n</code></td></tr><tr><td>End</td><td><code>TXhepqfva4WvcK6HapedmzwDjdZv8KoY6p</code></td></tr><tr><td>ESM</td><td><code>TVKZKa1LDadTPm2AoAW7hp9BtdScK4gSk8</code></td></tr><tr><td>Pause</td><td><code>TNq6E9XsQfrzqVwam67LApZQx1omsj8dyW</code></td></tr><tr><td>PauseProxy</td><td><code>TE6RxGgQuD6J1faw9mZxtbHGDqcKh8DvKU</code></td></tr><tr><td>ProxyRegistry</td><td><code>THuVWkvAikvSqmoZXHMUQJAcocsgFr4wuk</code></td></tr><tr><td>CDP Manager</td><td><code>TDDWjmQaquEtUn1Pa8wCd8dfWFPdQLGPYL</code></td></tr><tr><td>ProxyActions</td><td><code>TEk9usYZsunkc5oYijyMte6sGurspik2Js</code></td></tr><tr><td>GovActionsProxy</td><td><code>TXzhj9Xh8xfzerjinRyM5TfoBL7Cw5hk5d</code></td></tr><tr><td>PIP_TRX</td><td><code>TVsQxikpttN15u7vcjXKeVrtYRWbrqgPbH</code></td></tr><tr><td>PIP_USDT</td><td><code>TMhsJiXUrT5eueuH1cq6SdvQEBt4YjKLfx</code></td></tr><tr><td>JOIN_TRX_A</td><td><code>TJ1VWPvFVq7sVsN7J7dWJVZz4SLT14qRUr</code></td></tr><tr><td>CLIP_TRX_A</td><td><code>TK9Ng6QqNVvyhWcWAiEasZ1HqE7bxgNayA</code></td></tr><tr><td>JOIN_TRX_B</td><td><code>TGQKnHDQNyc3QeHJ7YxH8wggdg89UVXyvX</code></td></tr><tr><td>CLIP_TRX_B</td><td><code>TWmmZ44tN6UBAD4iEsoZo5qSAZ64E4HDZZ</code></td></tr><tr><td>JOIN_TRX_C</td><td><code>TPUPPLTYLdbW4jxwD5g2T7ystxsR9HL2mt</code></td></tr><tr><td>CLIP_TRX_C</td><td><code>TMZTbwpvs7VjTJ7qjwh4EMkB5ahZ5tUJeM</code></td></tr><tr><td>JOIN_USDT_A</td><td><code>TDUkQbjrXs6xUbxGCLknWwJHxVTdysXBhy</code></td></tr><tr><td>CLIP_USDT_A</td><td><code>TKvNF7aJtU2gUncR64MCdDoaWqrnHpriSL</code></td></tr><tr><td>JOIN_PSM_USDT_A</td><td><code>TSUYvQ5tdd3DijCD1uGunGLpftHuSZ12sQ</code></td></tr><tr><td>CLIP_PSM_USDT_A</td><td><code>T9yEgaPQT9Z6jsF1Rd2nisf1bpwpXNAFqE</code></td></tr><tr><td>MCD_PSM_USDT_A</td><td><code>TBXW4hS5KYjjbJXDpnrPf4zhkLwrpUjbyz</code></td></tr><tr><td>USDD Migration</td><td><code>TQrq2p1aoAkNK94q3Q69ubJcv5nQ9y675R</code></td></tr></tbody></table>
### Ethereum Mainnet
<table><thead><tr><th width="259.75390625">Name </th><th>Contract Address</th></tr></thead><tbody><tr><td>USDD</td><td><code>0x4f8e5de400de08b164e7421b3ee387f461becd1a</code></td></tr><tr><td>USDD Join</td><td><code>0x983dfef6d71862d809e239845da5a959492f63b8</code></td></tr><tr><td>Vat</td><td><code>0xff77f6209239deb2c076179499f2346b0032097f</code></td></tr><tr><td>Jug</td><td><code>0xdb218163fe160fedf0c702c37124e8c194e99329</code></td></tr><tr><td>Dog</td><td><code>0x9681604090395e835ff54187f638ded8dc983cbf</code></td></tr><tr><td>Vow</td><td><code>0xf085edd75c1ab4fda0c3bd49b264a4a113d06f3b</code></td></tr><tr><td>Flap</td><td><code>0x0b4adb8d896520eb3fd4789b73463614dcf71b03</code></td></tr><tr><td>Flop</td><td><code>0xfb38af74eae1e315a45af5ae11a44ccd1da12bcb</code></td></tr><tr><td>Spot</td><td><code>0x8c4c758152da3e04b95b5eaca75585d79013c6b0</code></td></tr><tr><td>End</td><td><code>0xa9f0cd86e0a011d41693d1a748a8127877c8b054</code></td></tr><tr><td>ESM</td><td><code>0xe4089b868f111ffaf9717d6df8d2c2fe6e698f55</code></td></tr><tr><td>Pause</td><td><code>0xca277750ecd2b0707a7ccef2a78ec2f33b5fc7f7</code></td></tr><tr><td>PauseProxy</td><td><code>0xf60cf7d4330f115f9e51ff0d56d23f95f0f10aee</code></td></tr><tr><td>ProxyRegistry</td><td><code>0x8be6b814beb37e8028258777af0ec6648a2a908e</code></td></tr><tr><td>CDP Manager</td><td><code>0xb5b08e58e804e5937f56b1e633cf85abbd269127</code></td></tr><tr><td>ProxyActions</td><td><code>0xb80751ef88d07fa33ee4fc0c6f8b4b6c6c31e708</code></td></tr><tr><td>GovActionsProxy</td><td><code>0x3dba111255d3888c723242320595588754cf493e</code></td></tr><tr><td>JOIN_PSM_USDT_A</td><td><code>0x217e42ceb2eae9ecb788fdf0e31c806c531760a3</code></td></tr><tr><td>MCD_PSM_USDT_A</td><td><code>0xce355440c00014a229bbec030a2b8f8eb45a2897</code></td></tr><tr><td>JOIN_PSM_USDC_A</td><td><code>0x9a7e1b324060db7342aea08c0dc56f55ced6f519</code></td></tr><tr><td>MCD_PSM_USDC_A</td><td><code>0x12d0351f68035a41d13fc8324562e2d51b7a3b93</code></td></tr></tbody></table>
### BNB Chain Mainnet
<table><thead><tr><th width="259.75390625">Name</th><th>Contract Address</th></tr></thead><tbody><tr><td>USDD</td><td><code>0x45e51bc23d592eb2dba86da3985299f7895d66ba</code></td></tr><tr><td>USDD Join</td><td><code>0x6b00039d76795fd59baf17e0c9c6d87011e7edac</code></td></tr><tr><td>Vat</td><td><code>TH5dhX7o39afSbfDT2e3c9k4itWjNKD4D9</code></td></tr><tr><td>Jug</td><td><code>0x12a2a264d6980fb22e5ebb090002bd8f5e618e0b</code></td></tr><tr><td>Dog</td><td><code>0x6badab4336b17e8d0839fd0c046e21b41196280b</code></td></tr><tr><td>Vow</td><td><code>0x1c9a9d6ee4b5bffdacdad6cfb396a337f311c5b7</code></td></tr><tr><td>Flap</td><td><code>0x3f8656be9ef11192fb9ce270446976806fa121c5</code></td></tr><tr><td>Flop</td><td><code>0xD6bd489DeDF05dBCcb680304B3AF2df73d1D7De0</code></td></tr><tr><td>Spot</td><td><code>0xc1779812be28cd205e45098e079620a830b5ffce</code></td></tr><tr><td>End</td><td><code>0x3366948fccf56152ad95d914072a80006b21f6f2</code></td></tr><tr><td>ESM</td><td><code>0xf1a7b596763afaa8e51f0cf6a7a9b4c743d3b1c6</code></td></tr><tr><td>Pause</td><td><code>0xc081f712e217672374a9c3db708c6f6c183c172e</code></td></tr><tr><td>PauseProxy</td><td><code>0xdd5f51dc0d31823db86df41d46d037bc94c732dc</code></td></tr><tr><td>ProxyRegistry</td><td><code>0x0144fcce201dc3957fcf75269c10c21cca41ba73</code></td></tr><tr><td>CDP Manager</td><td><code>0xa4109496a660ebc8d74de991ac3b04c136c9ba09</code></td></tr><tr><td>ProxyActions</td><td><code>0x777684f6425d095e9166f5f694f50e48a16bcb25</code></td></tr><tr><td>GovActionsProxy</td><td><code>0x2662e860ea672e4d31df3438114c48511229e60f</code></td></tr><tr><td>JOIN_PSM_USDT_A</td><td><code>0xe229fda620b8a9b98ef184830ee3063f0f86b790</code></td></tr><tr><td>MCD_PSM_USDT_A</td><td><code>0x939d3fb56cd12d68caa1125cc57a8d2391f7ee29</code></td></tr></tbody></table>
# Liquidation & Auction
Liquidation is a critical process in the USDD system that ensures the stability and solvency of the protocol. When a user's collateralized debt position (CDP) becomes undercollateralized (i.e., the value of collateral falls below the required threshold), the liquidation mechanism is triggered to maintain the integrity of the system.
# Key Features of Liquidation
**Trigger Mechanism**
* The protocol continuously monitors CDPs to assess their collateralization ratio.
* If the ratio falls below the minimum collateralization threshold, the liquidation process is initiated automatically.
**Auction Process**
* Liquidated collateral is put up for auction to a valid bidder.
* Bidders, often known as Keepers, compete to purchase the collateral, ensuring market-driven pricing.
**Liquidation Fee**
* A liquidation fee is imposed on the user whose position is liquidated.
* This liquidation fee is designed to discourage risky behavior and compensate the protocol for the added system risk.
**Keeper Rewards**
* Keepers are incentivized with rewards for participating in the liquidation process.
* Rewards typically include a portion of the liquidation fee and opportunities to acquire discounted collateral.
**Debt Repayment**
* The proceeds from the auction are used to repay the outstanding USDD debt.
* Any remaining collateral after repaying the debt and penalties is returned to the user.
**Peg Stability Impact**
* Liquidation ensures that excessive debt does not destabilize the peg of USDD.
* By swiftly resolving undercollateralized positions, the protocol maintains its financial health.
# Example P프로젝트로 돌아가기