Funding
You can fund a vault with an ERC-20 transfer to its computed address. The Portal also provides functions that publish and fund an intent together. Use the vault address returned by the API or the Portal’sintentVaultAddress helper; the address depends on the complete intent and deployment.
Funding does not establish who receives a refund. The contract’s default refund recipient is reward.creator, which can differ from the account that sent the tokens.
Releasing funds
The Portal controls the vault’s operations:- Withdrawal: the configured prover supplies a claimant and destination, and the Portal checks the reward state before releasing funds.
- Refund: the Portal checks refund eligibility and transfers the listed reward tokens to the refund recipient.
- Recovery: tokens outside the reward can be recovered through the Portal to the creator.
