pendulum-chain / pendulum-chain/vortex
Skip waiting for finalization of `ExecuteRedeem` event to speed up process
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 33
Description
Context
At the moment, the process waits for the finalization of the redeem execution on Spacewalk. This is not necessary as it's only relevant whether the tokens arrived on the Stellar account or not. By cutting this out from the process, we can simplify the logic and save a couple of seconds.
TODO
Instead of waiting for the ExecuteRedeem event to be emitted here, the process can just check if the tokens already arrived on the Stellar account. This is already done in the error case here.
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 in src/services/polkadot/index.tsx at the ExecuteRedeem handling around lines 158 and 170. Compare the normal path with the existing error-case check for whether tokens arrived on the Stellar account. Done means the process checks token arrival without waiting for ExecuteRedeem finalization and preserves the expected flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100