30-decimal precision system, gas optimization, and performance characteristics
Function | Single Call | Batch (10 assets) | Optimization |
---|---|---|---|
getAssetInfo() | ~2,500 gas | N/A | Minimal reads |
getAssetsInfo() | N/A | ~17,500 gas | 30% batch savings |
getPairById() | ~5,000 gas | N/A | In-memory calculation |
getPairsbyIdForward() | N/A | ~35,000 gas | 25% batch savings |
submitPriceFeed() (1 asset) | ~45,000 gas | N/A | Storage update |
submitPriceFeed() (10 assets) | N/A | ~310,000 gas | 31% batch savings |