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:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let wxTestAssetIdKey = "wx_test_assetId"
55
66 let currentRewardAmountIdKey = "reward_amount_id"
77
88 @Callable(i)
99 func setWXAssetId (wxAssetId) = [StringEntry(wxTestAssetIdKey, wxAssetId)]
1010
1111
1212
1313 @Callable(i)
1414 func stakePoolLps (poolId) = [IntegerEntry("stakePoolLpsFuncCalled", height)]
1515
1616
1717
1818 @Callable(i)
1919 func withdrawPoolLps (poolId) = [IntegerEntry("withdrawPoolLpsFuncCalled", height)]
2020
2121
2222
2323 @Callable(i)
2424 func claimPoolRewards (poolId) = {
2525 let currentRewardAmountId = getIntegerValue(currentRewardAmountIdKey)
2626 let wxTestAssetId = getStringValue(wxTestAssetIdKey)
2727 let amount = if ((currentRewardAmountId == 0))
2828 then 100000000000
2929 else if ((currentRewardAmountId == 1))
3030 then 200000000000
3131 else if ((currentRewardAmountId == 2))
3232 then 50000000000
3333 else if ((currentRewardAmountId == 3))
3434 then 350000000000
3535 else 220000000000
3636 let newCurrentRewardAmountId = if ((currentRewardAmountId == 4))
3737 then 0
3838 else (currentRewardAmountId + 1)
3939 [IntegerEntry(currentRewardAmountIdKey, newCurrentRewardAmountId), ScriptTransfer(i.caller, amount, fromBase58String(wxTestAssetId))]
4040 }
4141
4242
4343 @Verifier(tx)
4444 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4545

github/deemru/w8io/169f3d6 
29.85 ms