Issue and burn reconciliation
Terms used in this lesson
- UNIT
- Ducat’s dollar-pegged stablecoin, the asset a borrower can create against bitcoin collateral.
- Vault
- A set of Bitcoin outputs and spending rules that holds collateral and represents the current loan state.
- Validator
- Software or a participant that independently checks state transitions under a system's rules. The exact role depends on the protocol being discussed.
- Runestone
- Transaction data interpreted by the Runes protocol to describe token creation or allocation.
Borrow and repay flows connect UNIT issuance or burning to vault debt transitions so validators can reconcile the token change with the collateralized action.
Loading lesson visuals...
Learn the idea
Issuance creates spendable UNIT while increasing a vault's debt. Burning removes UNIT from circulation while reducing debt. Reconciliation means the validator proves the token change and debt differential belong to the same permitted action and agree in amount.
Build the token parent
Borrow uses an issue transaction; repay uses a burn transaction with a runestone that directs the repayment amount to the burn destination. If a repayment input has token change, a direct output selector with amount zero routes all UNIT remaining after the burn edict to that named change output.
Inspect every idea above to open it.
Repayment is an action-specific paired transition. The burn must reconcile with the identified vault successor and request.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.