Description: Build a standalone Vault contract allowing users to lock XLM or stablecoins (USDC) as collateral to mint a synthetic stablecoin (e.g., tfUSD).
Context / Motivation: This transforms TradeFlow from a simple DEX into a comprehensive DeFi ecosystem by introducing debt markets.
Acceptance Criteria: - [ ] Contract must accept multiple Stellar assets as collateral.
Description: Build a standalone Vault contract allowing users to lock XLM or stablecoins (USDC) as collateral to mint a synthetic stablecoin (e.g., tfUSD).
Context / Motivation: This transforms TradeFlow from a simple DEX into a comprehensive DeFi ecosystem by introducing debt markets.
Acceptance Criteria: - [ ] Contract must accept multiple Stellar assets as collateral.
COLLATERALIZATION_RATIO(e.g., 150%).liquidatefunction allowing third parties to repay debt and seize collateral at a discount if a vault falls below the maintenance margin.Technical Pointers: State management is crucial here. Use
Mapor separate storage entries for individual user debt and collateral balances. Ensure arithmetic does not suffer from precision loss (use Soroban's fixed-point math conventions).