pendulum-chain / pendulum-chain/pendulum

Extend automation pallet to allow processing of paused transfers

Open
#378 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.