tx · AwJEjscmYKHC5VDfatN1BVSpkXtHqPUJFrGpULQZYeBj

3N6D2nVttodJL3Sos3t1ui6DhrF6e79GAUB:  -0.01000000 Waves

2023.09.27 16:14 [2773862] smart account 3N6D2nVttodJL3Sos3t1ui6DhrF6e79GAUB > SELF 0.00000000 Waves

{ "type": 13, "id": "AwJEjscmYKHC5VDfatN1BVSpkXtHqPUJFrGpULQZYeBj", "fee": 1000000, "feeAssetId": null, "timestamp": 1695820475084, "version": 2, "chainId": 84, "sender": "3N6D2nVttodJL3Sos3t1ui6DhrF6e79GAUB", "senderPublicKey": "6xBTQKYXNv2nHWCVJnDxb8afEksqZW8U6Bg1hjxcTj2", "proofs": [ "642hU6cbAaeX4NepcoHAVeHwFXgWjRGYXgGcBqRDpG9Q9dbn1TxFtq2FGteWwEoh1x1kGJ85P6dMk5C7HRBLt6Dy" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V528FzSg==", "height": 2773862, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2aN89g1ajy6NpQxiTwpVGYmBeKQgmCc5vwhmBdGftBTV Next: none Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let wxTestAssetIdKey = "wx_test_assetId"
5-
6-let currentRewardAmountIdKey = "reward_amount_id"
7-
8-@Callable(i)
9-func setWXAssetId (wxAssetId) = [StringEntry(wxTestAssetIdKey, wxAssetId), IntegerEntry(currentRewardAmountIdKey, 0)]
10-
114
125
136 @Callable(i)
14-func stakePoolLps () = [IntegerEntry("stakePoolLpsFuncCalled", height)]
15-
16-
17-
18-@Callable(i)
19-func withdrawPoolLps () = [IntegerEntry("withdrawPoolLpsFuncCalled", height)]
20-
21-
22-
23-@Callable(i)
24-func claimPoolRewards () = {
25- let currentRewardAmountId = getIntegerValue(currentRewardAmountIdKey)
26- let wxTestAssetId = getStringValue(wxTestAssetIdKey)
27- let amount = if ((currentRewardAmountId == 0))
28- then 100000000000
29- else if ((currentRewardAmountId == 1))
30- then 200000000000
31- else if ((currentRewardAmountId == 2))
32- then 50000000000
33- else if ((currentRewardAmountId == 3))
34- then 350000000000
35- else 220000000000
36- let newCurrentRewardAmountId = if ((currentRewardAmountId == 4))
37- then 0
38- else (currentRewardAmountId + 1)
39-[IntegerEntry(currentRewardAmountIdKey, newCurrentRewardAmountId), ScriptTransfer(i.caller, amount, fromBase58String(wxTestAssetId))]
40- }
7+func call () = nil
418
429
4310 @Verifier(tx)
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let wxTestAssetIdKey = "wx_test_assetId"
5-
6-let currentRewardAmountIdKey = "reward_amount_id"
7-
8-@Callable(i)
9-func setWXAssetId (wxAssetId) = [StringEntry(wxTestAssetIdKey, wxAssetId), IntegerEntry(currentRewardAmountIdKey, 0)]
10-
114
125
136 @Callable(i)
14-func stakePoolLps () = [IntegerEntry("stakePoolLpsFuncCalled", height)]
15-
16-
17-
18-@Callable(i)
19-func withdrawPoolLps () = [IntegerEntry("withdrawPoolLpsFuncCalled", height)]
20-
21-
22-
23-@Callable(i)
24-func claimPoolRewards () = {
25- let currentRewardAmountId = getIntegerValue(currentRewardAmountIdKey)
26- let wxTestAssetId = getStringValue(wxTestAssetIdKey)
27- let amount = if ((currentRewardAmountId == 0))
28- then 100000000000
29- else if ((currentRewardAmountId == 1))
30- then 200000000000
31- else if ((currentRewardAmountId == 2))
32- then 50000000000
33- else if ((currentRewardAmountId == 3))
34- then 350000000000
35- else 220000000000
36- let newCurrentRewardAmountId = if ((currentRewardAmountId == 4))
37- then 0
38- else (currentRewardAmountId + 1)
39-[IntegerEntry(currentRewardAmountIdKey, newCurrentRewardAmountId), ScriptTransfer(i.caller, amount, fromBase58String(wxTestAssetId))]
40- }
7+func call () = nil
418
429
4310 @Verifier(tx)
4411 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4512

github/deemru/w8io/6500d08 
26.63 ms