feat(chain138): Monad CCIP, token aggregation OMNL gates, HYBX client, and PMM deploy updates.
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -205,8 +205,8 @@ contract ReserveSystem is IReserveSystem, AccessControl, ReentrancyGuard {
|
||||
require(block.timestamp - sourceTimestamp <= PRICE_STALENESS_THRESHOLD, "ReserveSystem: stale source price");
|
||||
require(block.timestamp - targetTimestamp <= PRICE_STALENESS_THRESHOLD, "ReserveSystem: stale target price");
|
||||
|
||||
// Direct conversion
|
||||
targetAmount = (amount * targetPrice) / sourcePrice;
|
||||
// targetAmount in targetAsset units (same value in USD terms)
|
||||
targetAmount = (amount * sourcePrice) / targetPrice;
|
||||
|
||||
// Calculate fees
|
||||
fees = calculateFees(targetAmount, 0); // No slippage for direct conversion
|
||||
@@ -292,7 +292,8 @@ contract ReserveSystem is IReserveSystem, AccessControl, ReentrancyGuard {
|
||||
) external view override returns (uint256) {
|
||||
(uint256 sourcePrice,) = getPrice(sourceAsset);
|
||||
(uint256 targetPrice,) = getPrice(targetAsset);
|
||||
return (targetPrice * 1e18) / sourcePrice; // Price in 18 decimals
|
||||
// target per source (e.g. USDC per WETH when source=WETH, target=USDC)
|
||||
return (sourcePrice * 1e18) / targetPrice;
|
||||
}
|
||||
|
||||
// ============ Admin Functions ============
|
||||
|
||||
Reference in New Issue
Block a user