Skip to content

Commit

Permalink
Add an ability to remove less than 1 (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefashkaa authored Oct 10, 2022
1 parent 5f203e2 commit e874646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/RemoveLiquidity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ export default class RemoveLiquidity extends Mixins(
}
get isEmptyAmount(): boolean {
return !this.removePart || !Number(this.liquidityAmount) || !this.firstTokenAmount || !this.secondTokenAmount;
// We don't check removePart for less than 1%
return !Number(this.liquidityAmount) || !this.firstTokenAmount || !this.secondTokenAmount;
}
get liquidityLocked(): boolean {
Expand Down

0 comments on commit e874646

Please sign in to comment.