mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 06:01:11 +00:00
docs(stablecoin): reference issues instead of plan names
This commit is contained in:
@@ -79,7 +79,7 @@ pub fn open_position(
|
||||
collateral_amount,
|
||||
normalized_debt_amount: 0,
|
||||
// TODO(#173): read from ctx clock once `open_position` is rebuilt with
|
||||
// the fee-aware flow. Setting 0 keeps Plan 1 a pure refactor.
|
||||
// the fee-aware flow. Setting 0 keeps #156 a pure refactor.
|
||||
opened_at: 0,
|
||||
});
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ pub fn withdraw_collateral(
|
||||
let vault_holding = TokenHolding::try_from(&vault.account.data)
|
||||
.expect("Vault account must hold a valid TokenHolding");
|
||||
// The vault PDA is verified to belong to this position, so its holding's
|
||||
// definition is the authoritative collateral definition. Plan 1 dropped the
|
||||
// definition is the authoritative collateral definition. #161 dropped the
|
||||
// redundant copy from `Position`; `ProtocolParameters` owns the global
|
||||
// collateral definition from #173 onward.
|
||||
let collateral_definition_id = vault_holding.definition_id();
|
||||
|
||||
Reference in New Issue
Block a user