payment_policy
erc-7540
async-vault
request-lifecycle
rwa-fund
rounding
mcp:recompute_erc7540_request_accounting

ERC-7540 Async-Vault Request Accounting

Recomputes ERC-7540 asynchronous-vault request accounting from caller-declared request state. ERC-7540 extends ERC-4626 with a three-state request lifecycle used by funds that cannot settle a deposit or redemption in the same transaction: an amount is Pending after a request, becomes Claimable when the vault fulfils it, and is Claimed when the holder calls deposit, mint, withdraw or redeem. This tool applies a sequence of claims against the claimable buckets at the pro-rata rate they were made claimable at, tracks the pending, claimable and claimed split for both legs, reports the rounding residue a sequence of partial claims strands, and checks the standard's invariants by name. ERC-7540 mandates no rounding direction for a partial claim, so the direction is a declared parameter and the opposite direction's result is reported beside it. Never reads any chain: it cannot know whether the declared amounts match a deployed vault, when a pending request will be fulfilled, whether the controller is authorised, or whether a claim transaction would succeed.

Tool URL: https://ainumbers.co/chaingraph/art-611-erc7540-async-vault-request-accounting.html

post/v1/tools/recompute_erc7540_request_accounting

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/recompute_erc7540_request_accounting
  • Auth: none declared

Request body

request_idstring
depositobject
redeemobject
claim_roundingstring
chain_idstring
network_labelstring

Response

Successful tool execution result

declared_contextobject
request_idstring nullable
aggregate_by_controllerboolean nullable
claim_rounding_usedstring nullable
openingobject nullable
closingobject nullable
dustobject
notestring
reasonsstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.