tx · 6w1ZJuR5yTrofDiYanU3rB7c6Ry7Kenui7Rg1YXhHiMA 3MrK661ZJP9yezKng8pgVrxsiqHmbTxYgYR: -0.01000000 Waves 2023.09.22 14:03 [2766494] smart account 3MrK661ZJP9yezKng8pgVrxsiqHmbTxYgYR > SELF 0.00000000 Waves
{ "type": 13, "id": "6w1ZJuR5yTrofDiYanU3rB7c6Ry7Kenui7Rg1YXhHiMA", "fee": 1000000, "feeAssetId": null, "timestamp": 1695380666308, "version": 2, "chainId": 84, "sender": "3MrK661ZJP9yezKng8pgVrxsiqHmbTxYgYR", "senderPublicKey": "8DAy52cJLZAR4bfy7weDgPJjPh2puXYjuByo2xAZWwGA", "proofs": [ "3NxxC8vZgJFXzz3VbGBbMxqvpyBnaam6ftvpHA1y6y7WTMLmpkyWh2NQ6oi6DxbGWhcUXbnFxvJRUcgUHntMrCkw" ], "script": "base64:BgIWCAISAwoBCBIDCgEBEgMKAQESAwoBAQIAEHd4VGVzdEFzc2V0SWRLZXkCD3d4X3Rlc3RfYXNzZXRJZAAYY3VycmVudFJld2FyZEFtb3VudElkS2V5AhByZXdhcmRfYW1vdW50X2lkBAFpAQxzZXRXWEFzc2V0SWQBCXd4QXNzZXRJZAkAzAgCCQELU3RyaW5nRW50cnkCBRB3eFRlc3RBc3NldElkS2V5BQl3eEFzc2V0SWQFA25pbAFpAQxzdGFrZVBvb2xMcHMBBnBvb2xJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgIWc3Rha2VQb29sTHBzRnVuY0NhbGxlZAUGaGVpZ2h0BQNuaWwBaQEPd2l0aGRyYXdQb29sTHBzAQZwb29sSWQJAMwIAgkBDEludGVnZXJFbnRyeQICGXdpdGhkcmF3UG9vbExwc0Z1bmNDYWxsZWQFBmhlaWdodAUDbmlsAWkBEGNsYWltUG9vbFJld2FyZHMBBnBvb2xJZAQVY3VycmVudFJld2FyZEFtb3VudElkCQERQGV4dHJOYXRpdmUoMTA1NSkBBRhjdXJyZW50UmV3YXJkQW1vdW50SWRLZXkEDXd4VGVzdEFzc2V0SWQJARFAZXh0ck5hdGl2ZSgxMDU4KQEFEHd4VGVzdEFzc2V0SWRLZXkEBmFtb3VudAMJAAACBRVjdXJyZW50UmV3YXJkQW1vdW50SWQAAACA0NvD9AIDCQAAAgUVY3VycmVudFJld2FyZEFtb3VudElkAAEAgKC3h+kFAwkAAAIFFWN1cnJlbnRSZXdhcmRBbW91bnRJZAACAIDo7aG6AQMJAAACBRVjdXJyZW50UmV3YXJkQW1vdW50SWQAAwCA2IDtlwoAgLCWyLMGBBhuZXdDdXJyZW50UmV3YXJkQW1vdW50SWQDCQAAAgUVY3VycmVudFJld2FyZEFtb3VudElkAAQAAAkAZAIFFWN1cnJlbnRSZXdhcmRBbW91bnRJZAABCQDMCAIJAQxJbnRlZ2VyRW50cnkCBRhjdXJyZW50UmV3YXJkQW1vdW50SWRLZXkFGG5ld0N1cnJlbnRSZXdhcmRBbW91bnRJZAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBmFtb3VudAkA2QQBBQ13eFRlc3RBc3NldElkBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5iLi6IQ==", "height": 2766494, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DuhtAELTZJdBBveJ9yLYNVqGYrgJTdCd3VhRwm8yn6PG Next: AZDP7SksRojQ2tYphr9GE1YxHZXrvVWdWaMcTT149yuu Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let wxTestAssetIdKey = "wx_test_assetId" | |
5 | 5 | ||
6 | 6 | let currentRewardAmountIdKey = "reward_amount_id" | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func setWXAssetId (wxAssetId) = [StringEntry(wxTestAssetIdKey, wxAssetId)] | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | 14 | func stakePoolLps (poolId) = [IntegerEntry("stakePoolLpsFuncCalled", height)] | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | @Callable(i) | |
19 | 19 | func withdrawPoolLps (poolId) = [IntegerEntry("withdrawPoolLpsFuncCalled", height)] | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(i) | |
24 | 24 | func claimPoolRewards (poolId) = { | |
25 | 25 | let currentRewardAmountId = getIntegerValue(currentRewardAmountIdKey) | |
26 | 26 | let wxTestAssetId = getStringValue(wxTestAssetIdKey) | |
27 | 27 | let amount = if ((currentRewardAmountId == 0)) | |
28 | 28 | then 100000000000 | |
29 | 29 | else if ((currentRewardAmountId == 1)) | |
30 | 30 | then 200000000000 | |
31 | 31 | else if ((currentRewardAmountId == 2)) | |
32 | 32 | then 50000000000 | |
33 | 33 | else if ((currentRewardAmountId == 3)) | |
34 | 34 | then 350000000000 | |
35 | 35 | else 220000000000 | |
36 | 36 | let newCurrentRewardAmountId = if ((currentRewardAmountId == 4)) | |
37 | 37 | then 0 | |
38 | 38 | else (currentRewardAmountId + 1) | |
39 | 39 | [IntegerEntry(currentRewardAmountIdKey, newCurrentRewardAmountId), ScriptTransfer(i.caller, amount, fromBase58String(wxTestAssetId))] | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Verifier(tx) | |
44 | 44 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
45 | 45 |
github/deemru/w8io/169f3d6 29.85 ms ◑