For the complete documentation index, see llms.txt. This page is also available as Markdown.

NavImpactLib

Provides percentage-based NAV impact validation for cross-chain transfers

Used by both AIntents (source) and ECrosschain (destination) for consistent validation

EffectiveSupplyTooLow

error EffectiveSupplyTooLow()
error NavImpactTooHigh()

Thrown when transfer amount exceeds maximum allowed NAV impact

Impact is calculated as (transferValue * 10000) / totalAssetsValue in basis points

MINIMUM_SUPPLY_RATIO

uint256 MINIMUM_SUPPLY_RATIO

Minimum ratio of effective supply to total supply (1/20 = 5%)

When virtual supply is negative, effective supply must be at least totalSupply / MINIMUM_SUPPLY_RATIO

validateNavImpact

Validates that transfer amount doesn't exceed NAV impact tolerance

Calculates percentage impact: (transferValue * 10000) / totalAssetsValue vs toleranceBps

Parameters

Name
Type
Description

token

address

Token being transferred

amount

uint256

Amount being transferred

toleranceBps

uint256

Maximum allowed NAV impact in basis points (e.g., 1000 = 10%)

validateSupply

Validates that effective supply meets minimum threshold when virtual supply is negative

Last updated