tx · BiE1ZnrYataDZu31XvXQT1QDmi3wDULSqfaUgFzjnfJ2

3MvEkw2C78pz2dKAppkhh1mRH6HuJGwRCSk:  -0.01000000 Waves

2023.05.29 19:26 [2599498] smart account 3MvEkw2C78pz2dKAppkhh1mRH6HuJGwRCSk > SELF 0.00000000 Waves

{ "type": 13, "id": "BiE1ZnrYataDZu31XvXQT1QDmi3wDULSqfaUgFzjnfJ2", "fee": 1000000, "feeAssetId": null, "timestamp": 1685377554838, "version": 2, "chainId": 84, "sender": "3MvEkw2C78pz2dKAppkhh1mRH6HuJGwRCSk", "senderPublicKey": "9s6e65tKERrhVTka26nUspCZX3GsFZJ6zko3rgnryQqg", "proofs": [ "F7bmVET7nwobsRz6hAfXp8AGX36Wf4kazWPuA32nwLxGXr1fdNZ2wxdSeJ3p361LMXmnGu84GmA7x6KuTKh6r8B" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAwEAAAAUZ2VuZXJhdGVSYW5kb21OdW1iZXIAAAADAAAAAWkAAAADbWluAAAAA21heAQAAAAKcmFuZG9tU2VlZAkABLEAAAABCQAB9QAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAADHJhbmRvbU51bWJlcgkAAGQAAAACCQAAagAAAAIFAAAACnJhbmRvbVNlZWQJAABkAAAAAgkAAGUAAAACBQAAAANtYXgFAAAAA21pbgAAAAAAAAAAAQUAAAADbWluBQAAAAxyYW5kb21OdW1iZXIBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgIkSm54hUfVEormpXug9p+nbhDnc37ahHq1IfaU2UQkcDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIB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OU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADXdpbm5pbmdBbW91bnQFAAAABHVuaXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAFZ2FtZV8FAAAAAmlkBQAAAA13aW5uaW5nQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAF3Rlc3RfZ2FtZV9yYW5kb21OdW1iZXJfBQAAAAJpZAUAAAAMcmFuZG9tTnVtYmVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAGHRlc3RfZ2FtZV93aW5uaW5nQW1vdW50XwUAAAACaWQFAAAADXdpbm5pbmdBbW91bnQFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAVnYW1lXwUAAAACaWQFAAAADXdpbm5pbmdBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAXdGVzdF9nYW1lX3JhbmRvbU51bWJlcl8FAAAAAmlkBQAAAAxyYW5kb21OdW1iZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAYdGVzdF9nYW1lX3dpbm5pbmdBbW91bnRfBQAAAAJpZAUAAAANd2lubmluZ0Ftb3VudAUAAAADbmlsAAAAAAGUUHA=", "height": 2599498, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5Rb6Pno8poU7pDUdFrzZqfPboE9BfzJcqgaa4cd9KkUk Next: 4bV5LY9LgHAEZJMd3CXeH8PHLq81Jow8McJCcpm7sa6x Diff:
OldNewDifferences
3030 func l (m) = {
3131 let j = m
3232 if ((1 == j))
33- then 200000000
33+ then 20000000
3434 else if ((3 == j))
35- then 100000000
35+ then 10000000
3636 else if ((5 == j))
37- then 100000000
37+ then 10000000
3838 else if ((7 == j))
39- then 300000000
39+ then 30000000
4040 else if ((8 == j))
41- then 100000000
41+ then 10000000
4242 else if ((11 == j))
43- then 100000000
43+ then 10000000
4444 else 0
4545 }
4646
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d) = {
55 let e = toInt(keccak256(b.transactionId))
66 let f = ((e % ((d - c) + 1)) + c)
77 f
88 }
99
1010
1111 func g (b) = {
1212 let h = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg'
1313 if ((size(b.payments) == 0))
1414 then throw("Payment not attached")
1515 else {
1616 let i = b.payments[0]
1717 let j = i.assetId
1818 if ($isInstanceOf(j, "ByteVector"))
1919 then {
2020 let k = j
2121 if ((k == h))
2222 then (i.amount >= 10000000)
2323 else false
2424 }
2525 else (i.amount >= 10000000)
2626 }
2727 }
2828
2929
3030 func l (m) = {
3131 let j = m
3232 if ((1 == j))
33- then 200000000
33+ then 20000000
3434 else if ((3 == j))
35- then 100000000
35+ then 10000000
3636 else if ((5 == j))
37- then 100000000
37+ then 10000000
3838 else if ((7 == j))
39- then 300000000
39+ then 30000000
4040 else if ((8 == j))
41- then 100000000
41+ then 10000000
4242 else if ((11 == j))
43- then 100000000
43+ then 10000000
4444 else 0
4545 }
4646
4747
4848 @Callable(b)
4949 func gameLuckyWheel (n) = if (!(g(b)))
5050 then throw("Wrong payment amount or asset")
5151 else {
5252 let f = a(b, 1, 12)
5353 let o = l(f)
5454 if ((o > 0))
5555 then [ScriptTransfer(b.caller, o, unit), IntegerEntry(("game_" + n), o), IntegerEntry(("test_game_randomNumber_" + n), f), IntegerEntry(("test_game_winningAmount_" + n), o)]
5656 else [IntegerEntry(("game_" + n), o), IntegerEntry(("test_game_randomNumber_" + n), f), IntegerEntry(("test_game_winningAmount_" + n), o)]
5757 }
5858
5959

github/deemru/w8io/169f3d6 
29.66 ms