Skip to content

Commit df47225

Browse files
committed
Add comment clarifying panic behavior when rebalancer already exists
1 parent 6600467 commit df47225

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cadence/contracts/FlowALPRebalancerPaidv1.cdc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ access(all) contract FlowALPRebalancerPaidv1 {
242242
let rebalancer <- create PositionRebalancer(
243243
positionID: positionID
244244
)
245+
// will panic if the rebalancer already exists
245246
self.storeRebalancer(rebalancer: <-rebalancer, positionID: positionID)
246247
self.setSelfCapability(positionID: positionID).fixReschedule()
247248
emit CreatedRebalancerPaid(positionID: positionID)

0 commit comments

Comments
 (0)