tx · F5piSAY7RwaFox5DAbd11EdFuxD7AgEQo1N6pxi4Ms3r

3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk:  -0.01000000 Waves

2021.10.14 18:58 [1746150] smart account 3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk > SELF 0.00000000 Waves

{ "type": 13, "id": "F5piSAY7RwaFox5DAbd11EdFuxD7AgEQo1N6pxi4Ms3r", "fee": 1000000, "feeAssetId": null, "timestamp": 1634227134378, "version": 2, "chainId": 84, "sender": "3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk", "senderPublicKey": "8v9pmcXqHz9DTc5k1Z8duTYyDwykFxN3EzdZ9WAn3KXJ", "proofs": [ "yT7zt1PchkNmdWmQdnxTRTZLT7YFtcgdZYmc6GY7mdqPhNbnP78Xaghc6NpB5J8HRZuQ59yC3o6iv1xo5BQR85v" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIBAQAAAAIBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdFBsYXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADFdhdmVzTG90dG9WMgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAAEcmFuZAkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIFAAAACGxhc3RQbGF5CAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQIBQAAAANpbnYAAAAPY2FsbGVyUHVibGljS2V5CAUAAAAJbGFzdEJsb2NrAAAAE2dlbmVyYXRpb25TaWduYXR1cmUJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAAGaAAAAAQgFAAAACWxhc3R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XplcgAAAAEFAAAAA2ludgQAAAAEcmFuZAkAAGoAAAACCQAEsQAAAAEFAAAACHJhbmRoYXNoAAAAAAAAAABlBAAAAA13cml0ZUxhc3RQbGF5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhsYXN0UGxheQUAAAAEcmFuZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHbGFzdGJldAkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAKZ3Vlc3NTdGFydAIAAAABXwkAAaQAAAABBQAAAAhndWVzc0VuZAUAAAADbmlsAwMJAABmAAAAAgUAAAAIZ3Vlc3NFbmQFAAAABHJhbmQJAABmAAAAAgUAAAAEcmFuZAUAAAAKZ3Vlc3NTdGFydAcJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAANpbnYAAAAGY2FsbGVyCQAAaQAAAAIJAABoAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50AAAAAAAAAAC+AAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABAAAAA2ludgEAAAAJemVybzJoZXJvAAAAAgAAAApndWVzc1N0YXJ0AAAACGd1ZXNzRW5kCQEAAAAKc3RhcnRMb3R0bwAAAAMFAAAAA2ludgUAAAAKZ3Vlc3NTdGFydAUAAAAIZ3Vlc3NFbmQAAAAAnzvmaQ==", "height": 1746150, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3xQfeiWp54XmH3v7wLVBVUivtM9AM9DZFametgosYMeV Next: 7V2dyp9oNZPAGjFinKLfGDdnXdMa9mEpVE3oD4UuvhAJ Diff:
OldNewDifferences
3535 then throw("guessStart and guessEnd Must be in between 0-100")
3636 else {
3737 let l = a(b)
38- let f = (toInt(l) % 1000)
38+ let f = (toInt(l) % 101)
3939 let m = WriteSet([DataEntry("lastPlay", f), DataEntry("lastbet", ((toString(h) + "_") + toString(i)))])
4040 if (if ((i > f))
4141 then (f > h)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getBinary(this, "lastPlay")
77 if ($isInstanceOf(d, "ByteVector"))
88 then {
99 let e = d
1010 e
1111 }
1212 else if ($isInstanceOf(d, "Unit"))
1313 then base58'2ee4oFDYriWJ9EMeR'
1414 else throw("Match error")
1515 }
1616 let f = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
1717 sha256(f)
1818 }
1919
2020
2121 func g (b,h,i) = {
2222 let j = (wavesBalance(this) / 100)
2323 let k = extract(b.payment)
2424 if (!(isDefined(b.payment)))
2525 then throw("Should be with Payment in Waves")
2626 else if (isDefined(k.assetId))
2727 then throw("Payment should be in Waves")
2828 else if ((k.amount > j))
2929 then throw(("Payment should be less than " + toString(j)))
3030 else if ((0 > h))
3131 then throw("guessStart and guessEnd Must be in between 0-100")
3232 else if ((i > 100))
3333 then throw("guessStart and guessEnd Must be in between 0-100")
3434 else if ((h > i))
3535 then throw("guessStart and guessEnd Must be in between 0-100")
3636 else {
3737 let l = a(b)
38- let f = (toInt(l) % 1000)
38+ let f = (toInt(l) % 101)
3939 let m = WriteSet([DataEntry("lastPlay", f), DataEntry("lastbet", ((toString(h) + "_") + toString(i)))])
4040 if (if ((i > f))
4141 then (f > h)
4242 else false)
4343 then ScriptResult(m, TransferSet([ScriptTransfer(b.caller, ((k.amount * 190) / 100), unit)]))
4444 else ScriptResult(m, TransferSet(nil))
4545 }
4646 }
4747
4848
4949 @Callable(b)
5050 func zero2hero (h,i) = g(b, h, i)
5151
5252

github/deemru/w8io/169f3d6 
33.71 ms