We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1388c67 commit ea2b43eCopy full SHA for ea2b43e
contracts/collections/positions.ral
@@ -64,7 +64,11 @@ Abstract Contract Positions(clamm: CLAMM) extends PositionHelper(clamm) {
64
positions[key] = lastPosition
65
positions.remove!(caller, lastKey)
66
}
67
- positionsCounter[caller] = length - 1
+ if(length > 1) {
68
+ positionsCounter[caller] = length - 1
69
+ } else {
70
+ positionsCounter.remove!(caller, caller)
71
+ }
72
73
74
@using(preapprovedAssets = true)
0 commit comments