Skip to content

Add helper to update expired ledger entries #586

@chopan123

Description

@chopan123

Whenever a user deposit liquidity to a Soroswap Pool and doesn't interact in a while with it, the balance of shares of the pool for the user may expire, leading to DoS for the user.

Describe the solution you'd like
Just before removing liquidity, we would like to simulate the transaction and check if the ledger entry for the balance of the user has expired. If it fails due to ledger entry expiration, we should propose a new transaction that restores that ledger entry. If not, we should continue the current flow

Additional context

Acceptance Critera

  • Modular code, make a function specifically for this
  • Propose a way to test it

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions