Skip to content

bug: Withdraw functionality is disabled when 100% of TVL limit is hit #163

@akiraonstarknet

Description

@akiraonstarknet

Describe the bug
In the strategies page, when a strategy hits 100% of TVL limit, withdraws are not working. Ideally, just deposit shouldn't work, withdraws should still be functional.

To Reproduce
Steps to reproduce the behavior:

  1. Reduce the strategy TVL limit in strategies.atoms.ts to below current TVL value
  2. Try withdrawing, you will not be able to withdraw. Max and input button are disabled

Expected behavior
If user as deposits, withdraw should still function. User should be able to use max and enter input amount to withdraw

Screenshots or GIFs
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions