Skip to main content

Payment Vault

PaymentVault manages prepaid credits in OLYMP.

Key calls​

deposit(uint256 amount, address beneficiary)
withdraw(uint256 amount)
consumeCredits(address consumer, uint256 amount, bytes32 requestId)

Gateways must be authorized to call consumeCredits.

In epoch-batched mode, gateways call consumeCredits once per consumer per epoch using a deterministic usageId to match receipts.