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.
2 parents 1388c67 + ea2b43e commit fb34069Copy full SHA for fb34069
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