refactor(archive): move historical contracts and adapters to archive directory
- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`. - Updated documentation to reflect the historical status of archived components. - Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations. - Enhanced Makefile and package.json scripts for improved contract testing and building processes. - Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory. - Updated implementation reports to indicate archived status for various components.
This commit is contained in:
@@ -231,7 +231,7 @@ All interfaces have been created:
|
||||
- Money Multiplier: m = 1 / r and m = (1 + c) / (r + c)
|
||||
- Exact formula implementations without modification
|
||||
|
||||
**XAUTriangulation.sol**:
|
||||
**XAUTriangulation.sol** (historical, archived):
|
||||
- XAU triangulation for all currency conversions
|
||||
- CurrencyA → XAU → CurrencyB enforcement
|
||||
- XAU conversion utilities
|
||||
@@ -259,7 +259,7 @@ contracts/vault/
|
||||
│ ├── CurrencyValidation.sol ✅ ISO 4217 compliance
|
||||
│ ├── GRUConstants.sol ✅ GRU relationships
|
||||
│ ├── MonetaryFormulas.sol ✅ Mandatory formulas
|
||||
│ └── XAUTriangulation.sol ✅ XAU triangulation
|
||||
│ └── XAUTriangulation.sol ✅ XAU triangulation (historical, archived)
|
||||
├── errors/
|
||||
│ └── VaultErrors.sol
|
||||
├── Ledger.sol
|
||||
@@ -322,9 +322,9 @@ See `docs/vault/COMPLIANCE_REQUIREMENTS.md` for complete compliance documentatio
|
||||
|
||||
### GRU Smart Vault and PMM Integration
|
||||
|
||||
- **PMM price for vault valuation**: When collateral or debt is a token that has a PMM pool (e.g. cUSDT, cUSDC), price can be obtained from **PMMPriceProvider** (`contracts/vault/adapters/PMMPriceProvider.sol`). It wraps DODOPMMIntegration and exposes `getPrice(asset, quoteToken)` using `getPoolPriceOrOracle` (oracle-backed when ReserveSystem is set on DODOPMMIntegration). The Ledger’s primary valuation remains XAU via XAUOracle; PMMPriceProvider is for optional use by keepers, UIs, or a future Ledger extension that supports a secondary price source per asset.
|
||||
- **PMM price for vault valuation**: When collateral or debt is a token that has a PMM pool (e.g. cUSDT, cUSDC), price can be obtained from the historical **PMMPriceProvider** reference implementation (`archive/solidity/contracts/vault/adapters/PMMPriceProvider.sol`). It wraps DODOPMMIntegration and exposes `getPrice(asset, quoteToken)` using `getPoolPriceOrOracle` (oracle-backed when ReserveSystem is set on DODOPMMIntegration). The Ledger’s primary valuation remains XAU via XAUOracle; PMMPriceProvider is retained as a reference pattern for optional use by keepers, UIs, or a future Ledger extension that supports a secondary price source per asset.
|
||||
- **Vault as LP / PMM liquidity**: A vault (or its regulated entity) can add liquidity to PMM pools by calling **DODOPMMIntegration.addLiquidity(pool, baseAmount, quoteAmount)**. The vault (or entity) must hold base and quote tokens and approve the integration contract. Required role on DODOPMMIntegration: none for addLiquidity (anyone can add); pool creation requires **POOL_MANAGER_ROLE**. LP positions are not currently accepted as collateral in the Ledger; that would require a future extension (e.g. LP token as approved asset and a valuation path for LP shares).
|
||||
- **GRUHandler / registry**: GRU assets used in vaults should be validated via **GRUHandler** (`contracts/registry/handlers/GRUHandler.sol`). Register any new PMM-related or GRU asset types in **ChainRegistry** / **UniversalAssetRegistry** as applicable.
|
||||
- **GRUHandler / registry**: GRU assets used in vaults should be validated via the historical **GRUHandler** reference implementation (`archive/solidity/contracts/registry/handlers/GRUHandler.sol`). Register any new PMM-related or GRU asset types in **ChainRegistry** / **UniversalAssetRegistry** as applicable.
|
||||
|
||||
See also: `docs/integration/DODO_PMM_INTEGRATION.md`, `docs/integration/ORACLE_AND_KEEPER_CHAIN138.md`.
|
||||
|
||||
@@ -334,4 +334,4 @@ See also: `docs/integration/DODO_PMM_INTEGRATION.md`, `docs/integration/ORACLE_A
|
||||
- All contracts follow OpenZeppelin security best practices
|
||||
- The system enforces strict access controls and compliance checks
|
||||
- XAU normalization ensures consistent valuation across all operations
|
||||
- **MANDATORY COMPLIANCE**: All currency codes, GRU relationships, and monetary formulas are enforced
|
||||
- **MANDATORY COMPLIANCE**: All currency codes, GRU relationships, and monetary formulas are enforced
|
||||
|
||||
Reference in New Issue
Block a user