Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Dec 16, 2024
1 parent b10dfb7 commit e645cda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions staker/staker.gno
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ func calculateStakeData(tokenId uint64, owner, caller std.Address) (*stakeResult
return nil, err
}

poolPath := pn.PositionGetPositionPoolKey(tokenId)
if err := poolHasIncentives(poolPath); err != nil {
if err := tokenHasLiquidity(tokenId); err != nil {
return nil, err
}

if err := tokenHasLiquidity(tokenId); err != nil {
poolPath := pn.PositionGetPositionPoolKey(tokenId)
if err := poolHasIncentives(poolPath); err != nil {
return nil, err
}

Expand Down

0 comments on commit e645cda

Please sign in to comment.