verify_fees
Verify off-chain fee quote matches on-chain DPXSettlementRouter charge. Returns true if fees match, enabling settlement.
Instructions
Verify that the off-chain fee quote matches what the on-chain DPXSettlementRouter contract will charge. Returns feesMatch (true/false). If feesMatch is true, proceed with settlement. Call this after get_quote and before settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountUsd | Yes | Settlement amount in USD | |
| hasFx | No | Cross-currency settlement? | |
| esgScore | No | ESG score 0–100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feesMatch | No | ||
| offChainFee | No | ||
| onChainFee | No | ||
| delta | No | ||
| recommendation | No |