Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ztshort committed Dec 27, 2022
1 parent 8a12aa9 commit c035da0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions subgraph/src/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export function partialUnstakeHandler(event: PartialUnstaked): void {

}
export function pendingHandler(event: Pending): void {
// Pending(uint256 indexed streamId, address indexed account, uint256 indexed pendings);
let staker = Staker.load(event.params.account.toHexString())
let streamData = Stream.load(event.params.streamId.toHexString())
if (staker != null && streamData!=null){
Expand Down Expand Up @@ -217,7 +216,6 @@ function completeUnstake(account: Bytes, lockId: BigInt): void{
log.info('User with id {} Found',[account.toHexString()])
let lengthOfLockPositions = staker.lockPositionIds.length
if (lengthOfLockPositions > 0){
log.info('lengthOfLockPositions is {}',[lengthOfLockPositions.toString()])
let lastLockPositionIndex = staker.lockPositionIds[lengthOfLockPositions - 1]
let lastLockPosition = LockPosition.load(lastLockPositionIndex)
let lockIdInt = lockId.toI32();
Expand Down

0 comments on commit c035da0

Please sign in to comment.