Comment on page
PayMasterhandles payment and relayer cost management for crosschain transactions. Callers pay in native tokens on the source chain directly through SuperformRouter entry functions (
_forwardPayment) and this payment is used to fund Keepers making cross-chain transactions including retrying of messages. To rebalance funds across chains when they get low,
While estimations try to estimate the amount paid in SuperformRouter as accurately as possible, it is possible that transactions are underpaid, especially in custom integrations not using the Superform API. Underpaid transactions will become stuck. Users can pay more native tokens to
PayMasteron any chain Superform supports through the
makePayment()function by specifying which address the payments should be used for. Once completed, Superform Keepers will recognize this and attempt to retry the action.
address user_) external payable;
This function is utilized to withdraw native tokens from
PayMasterto the appropriate contract on the same chain.
uint256 nativeAmount_) external;
These functions are used to withdraw and bridge native tokens from PayMaster to the appropriate contract on other chains. Bridge Validators ensure that bridged data sends funds to the intended contract.
LiqRequest memory req_,
uint64 dstChainId_) external;
This function allows
PaymentAdminto use funds in
PayMasterto retry messages automatically.
bytes memory data_) external
Last modified 14d ago