Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromel777 committed Jan 11, 2023
1 parent 45e53d4 commit d721921
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ vestingWithPeriodValidatorT = plam $ \conf' redeemer' ctx' -> unTermCont $ do
tlet . ptraceShowId $ validTime
tlet . ptraceShowId $ validSignature
tlet . ptraceShowId $ correctReward
pure $ validTime
pure $ validTime
#&& validSignature
#&& correctReward

Expand All @@ -116,9 +116,5 @@ checkRewardCorrectness =
selfOutput = phead # selfOutputsList
selfValue = pfield @"value" # selfOutput
correctOutQty = totalVested - (periodId * periodVested)
tlet . ptraceShowId $ correctOutQty
let
realOutQty = assetClassValueOf # selfValue # vestingAC
tlet . ptraceShowId $ vestingAC
tlet . ptraceShowId $ realOutQty
pure $ realOutQty #== correctOutQty

0 comments on commit d721921

Please sign in to comment.