Assets and Yield

🪙 Supported Assets

MockUSDC (Stablecoin)

Used for testing deposits and withdrawals in the vault.

  • Address: 0x... (Isi Address MockUSDC)

  • Decimals: 6

  • Standard: ERC-20 (Rust Implementation)

  • Faucet: Call the contract function to mint tokens:

Faucet (example)
// Example call
mint(address, amount)

📈 Internal Yield Engine (Rust)

Unlike protocols that rely on external Oracles for yield rates, LegacyVault utilizes an internal, immutable math engine built on Arbitrum Stylus.

Parameter
Value

Yield Rate

1% Daily (Compound Interest)

Calculation Method

Iterative Integer Scaling (Rust)

Compounding

Auto-compounds on Interaction

Safety Cap

365 Days per Batch

circle-info

Why Internal Math?

  • Gas Efficiency: Rust calculates complex loops cheaper than Solidity.

  • Predictability: The rate is fixed in the code, shielding users from external DeFi volatility during the testing phase.

  • Precision: Uses U256 integer math to prevent floating-point errors common in financial contracts.