tx · 8AVX6sJtKNMujW2vXfyGbTmbCR9ZWLJUZf2bfbCXQMK9

3MsU428UzSefm85q7jvBsRV66Du7E72xEkL:  -0.01000000 Waves

2022.06.09 16:05 [2088874] smart account 3MsU428UzSefm85q7jvBsRV66Du7E72xEkL > SELF 0.00000000 Waves

{ "type": 13, "id": "8AVX6sJtKNMujW2vXfyGbTmbCR9ZWLJUZf2bfbCXQMK9", "fee": 1000000, "feeAssetId": null, "timestamp": 1654779926096, "version": 2, "chainId": 84, "sender": "3MsU428UzSefm85q7jvBsRV66Du7E72xEkL", "senderPublicKey": "58FFoU7LCj1DKboVntQXuE3KQDpf92NouXncN5b4vY8U", "proofs": [ "4PZJ5okHGBiSytECa6jdQgGuMn7Sbj18oTh3E7uFwAhvubgNxVkJH2KkrVkrcivJPsWjz5TgVLueVynB3YXCtroJ" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgASABIDCgEIAAAAAwAAAAAFQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAtTVEFLRV9BU1NFVAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQAAAAADVJFV0FSRF9BTU9VTlQAAAAAF0h26AAAAAAEAAAAAWkBAAAABXN0YWtlAAAAAAQAAAAJJHQwMjk3MzcyCQAFFAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAJcG10QW1vdW50CAUAAAAJJHQwMjk3MzcyAAAAAl8xBAAAAApwbXRBc3NldElkCAUAAAAJJHQwMjk3MzcyAAAAAl8yAwMDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAQAAAAIhPQAAAAIFAAAACnBtdEFzc2V0SWQFAAAAC1NUQUtFX0FTU0VUBwkAAGcAAAACAAAAAAAAAAAABQAAAAlwbXRBbW91bnQHCQAAAgAAAAECAAAAE3NlbmQgdG9rZW4gdG8gc3Rha2UEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPZ2V0U3Rha2VkQW1vdW50CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAKY3VycmVudEtleQIAAAAHX3N0YWtlZAAAAAAAAAAAAAQAAAALdG90YWxTdGFrZWQJAABkAAAAAgUAAAAPZ2V0U3Rha2VkQW1vdW50BQAAAAlwbXRBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAAAV8JAAGkAAAAAQUAAAAGaGVpZ2h0AgAAAAdfc3Rha2VkBQAAAAt0b3RhbFN0YWtlZAUAAAADbmlsAAAAAWkBAAAACHdpdGhkcmF3AAAAAAkAAAIAAAABAgAAAAR0ZXN0AAAAAWkBAAAAC2NsYWltUmV3YXJkAAAAAAkAAAIAAAABAgAAAAR0ZXN0AAAAAWkBAAAAA2RlbAAAAAEAAAADa2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlMbO1z", "height": 2088874, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3e2Z6Hec9KGbxKfUpxbXDCkXzaytHQTYX4BYmbFsvkY1 Next: 5dtNnjNdnoHmk49iqqVGkQRRGL9J2FenuXy7GKyLfkxN Diff:
OldNewDifferences
99
1010 @Callable(i)
1111 func stake () = {
12- let $t0298373 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
13- let pmtAmount = $t0298373._1
14- let pmtAssetId = $t0298373._2
12+ let $t0297372 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
13+ let pmtAmount = $t0297372._1
14+ let pmtAssetId = $t0297372._2
1515 if (if (if ((size(i.payments) == 0))
1616 then (pmtAssetId != STAKE_ASSET)
1717 else false)
1818 then (0 >= pmtAmount)
1919 else false)
20- then throw("send pixels to stake")
20+ then throw("send token to stake")
2121 else {
2222 let currentKey = toBase58String(i.caller.bytes)
2323 let getStakedAmount = valueOrElse(getInteger(this, (currentKey + "_staked")), 0)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ASSET = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS'
55
66 let STAKE_ASSET = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
77
88 let REWARD_AMOUNT = 100000000000
99
1010 @Callable(i)
1111 func stake () = {
12- let $t0298373 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
13- let pmtAmount = $t0298373._1
14- let pmtAssetId = $t0298373._2
12+ let $t0297372 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
13+ let pmtAmount = $t0297372._1
14+ let pmtAssetId = $t0297372._2
1515 if (if (if ((size(i.payments) == 0))
1616 then (pmtAssetId != STAKE_ASSET)
1717 else false)
1818 then (0 >= pmtAmount)
1919 else false)
20- then throw("send pixels to stake")
20+ then throw("send token to stake")
2121 else {
2222 let currentKey = toBase58String(i.caller.bytes)
2323 let getStakedAmount = valueOrElse(getInteger(this, (currentKey + "_staked")), 0)
2424 let totalStaked = (getStakedAmount + pmtAmount)
2525 [IntegerEntry((((currentKey + "_") + toString(height)) + "_staked"), totalStaked)]
2626 }
2727 }
2828
2929
3030
3131 @Callable(i)
3232 func withdraw () = throw("test")
3333
3434
3535
3636 @Callable(i)
3737 func claimReward () = throw("test")
3838
3939
4040
4141 @Callable(i)
4242 func del (key) = [DeleteEntry(key)]
4343
4444
4545 @Verifier(tx)
4646 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4747

github/deemru/w8io/026f985 
21.89 ms