pendulum-chain / pendulum-chain/pendulum
Extend automation pallet to allow processing of paused transfers
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 45
- Forks
- 13
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Context
This is a follow-up for #357.
In #357, we implemented the processing of transfers so that the processing is paused when the designated exchange rate/amount cannot be achieved. To prevent transfers from getting stuck and users losing their funds, we need to extend the automation pallet to allow for the continuation of these paused transfers.
TODO
We should add a new extrinsic continueOfframpForReference(reference) which retries the processing of the offramp requests, re-checking if the buffer pool account holds enough tokens this time. The extrinsic is callable by any user.
For this to work, we assume that someone charged the pallet's buffer pool account in the meantime.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the automation pallet and the existing offramp processing implemented in #357. Trace how paused transfers are represented and how the buffer pool balance is checked. Done means adding the callable continueOfframpForReference(reference) entry point so any user can retry processing after the buffer pool is replenished.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100