tx · J7AfqSYcbRhSbR7ip51YqxyajwJKRiQxaA5XQtE9PLCE

3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk:  -0.01000000 Waves

2021.10.15 21:56 [1747777] smart account 3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk > SELF 0.00000000 Waves

{ "type": 13, "id": "J7AfqSYcbRhSbR7ip51YqxyajwJKRiQxaA5XQtE9PLCE", "fee": 1000000, "feeAssetId": null, "timestamp": 1634324192900, "version": 2, "chainId": 84, "sender": "3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk", "senderPublicKey": "8v9pmcXqHz9DTc5k1Z8duTYyDwykFxN3EzdZ9WAn3KXJ", "proofs": [ "4CyrzAZmvo7XMpL5X1BQiTqakuM17kqCrTmuaty3qZvsAeBBKJAoC1BbrjGT86DcKRMMWEQnwvMvdwinbkrvR8mk" ], "script": "base64:AAIDAAAAAAAAAA0IARIECgIBARIDCgEBAAAACAAAAAANZ2FtZU51bWJlcktleQIAAAAMJEdBTUVfTlVNQkVSAAAAAAtsYXN0UGxheUtleQIAAAAKJExBU1RfUExBWQAAAAAHdGVzdEtleQIAAAAFJFRFU1QAAAAAA1dPTgAAAAAAAAAAAQAAAAAETE9TRQAAAAAAAAAAAgEAAAAKcGF5b3V0Y2FsYwAAAAEAAAAGbnVtYmVyBAAAAAVob3VzZQAAAAAAAAAABgQAAAAEYmFzZQAAAAAAAAAnEAQAAAAEcmF0ZQkAAGkAAAACCQAAaAAAAAIFAAAABGJhc2UJAABlAAAAAgAAAAAAAAAAZAAAAAAAAAAABgkAAGgAAAACBQAAAAZudW1iZXIAAAAAAAAAAGQFAAAABHJhdGUBAAAACnJhbmRvbWl6ZXIAAAABAAAAAWkEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMFAAAAC2xhc3RQbGF5S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQ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AAAAQUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAgAAAAFpAQAAAAl6ZXJvMmhlcm8AAAACAAAACmd1ZXNzU3RhcnQAAAAIZ3Vlc3NFbmQJAQAAAApzdGFydExvdHRvAAAAAwUAAAABaQUAAAAKZ3Vlc3NTdGFydAUAAAAIZ3Vlc3NFbmQAAAABaQEAAAALcGF5b3V0Y2FsY3QAAAABAAAABm51bWJlcgQAAAAEcmF0ZQkBAAAACnBheW91dGNhbGMAAAABBQAAAAZudW1iZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAd0ZXN0S2V5CQABpAAAAAEFAAAABHJhdGUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAAZAb1E=", "height": 1747777, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9zyoZV4p2Zr3MGLcHxtstmu74XuMaaVpxxTzSVyzc19Q Next: BdjfNv5LHc8LHdxmBA8YmhMP9J2gbvSABq65Ht9BaP89 Diff:
OldNewDifferences
1414 func f (g) = {
1515 let h = 6
1616 let i = 10000
17- ((i * ((100 - 6) / 100)) / g)
17+ let j = ((i * (100 - 6)) / (g * 100))
18+ j
1819 }
1920
2021
21-func j (k) = {
22- let l = {
23- let m = getBinary(this, b)
24- if ($isInstanceOf(m, "ByteVector"))
22+func k (l) = {
23+ let m = {
24+ let n = getBinary(this, b)
25+ if ($isInstanceOf(n, "ByteVector"))
2526 then {
26- let n = m
27- n
27+ let o = n
28+ o
2829 }
29- else if ($isInstanceOf(m, "Unit"))
30+ else if ($isInstanceOf(n, "Unit"))
3031 then base58'2ee4oFDYriWJ9EMeR'
3132 else throw("Match error")
3233 }
33- let o = (((((l + k.transactionId) + k.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
34- sha256(o)
34+ let p = (((((m + l.transactionId) + l.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
35+ sha256(p)
3536 }
3637
3738
38-func p (k,q,r) = {
39- let s = (wavesBalance(this) / 100)
40- let t = extract(k.payment)
41- if (!(isDefined(k.payment)))
39+func q (l,r,s) = {
40+ let t = (wavesBalance(this) / 100)
41+ let u = extract(l.payment)
42+ if (!(isDefined(l.payment)))
4243 then throw("Should be with Payment in Waves")
43- else if (isDefined(t.assetId))
44+ else if (isDefined(u.assetId))
4445 then throw("Payment should be in Waves")
45- else if ((t.amount > s))
46- then throw(("Payment should be less than " + toString(s)))
47- else if ((0 > q))
46+ else if ((u.amount > t))
47+ then throw(("Payment should be less than " + toString(t)))
48+ else if ((0 > r))
4849 then throw("guessStart and guessEnd Must be in between 0-99")
49- else if ((r > 99))
50+ else if ((s > 99))
5051 then throw("guessStart and guessEnd Must be in between 0-99")
51- else if ((q > r))
52+ else if ((r > s))
5253 then throw("guessStart and guessEnd Must be in between 0-99")
53- else if ((5 > ((r - q) + 1)))
54+ else if ((5 > ((s - r) + 1)))
5455 then throw("guessStart and guessEnd Must be at least 5 apart")
55- else if ((((r - q) + 1) > 95))
56+ else if ((((s - r) + 1) > 95))
5657 then throw("guessStart and guessEnd Must not be at least 95 apart")
5758 else {
58- let u = toBase58String(k.caller.bytes)
59- let v = toBase58String(k.transactionId)
60- let w = j(k)
61- let o = (toInt(w) % 100)
62- let x = {
63- let m = getInteger(this, a)
64- if ($isInstanceOf(m, "Int"))
59+ let v = toBase58String(l.caller.bytes)
60+ let w = toBase58String(l.transactionId)
61+ let x = k(l)
62+ let p = (toInt(x) % 100)
63+ let y = {
64+ let n = getInteger(this, a)
65+ if ($isInstanceOf(n, "Int"))
6566 then {
66- let y = m
67- y
67+ let z = n
68+ z
6869 }
69- else if ($isInstanceOf(m, "Unit"))
70+ else if ($isInstanceOf(n, "Unit"))
7071 then 1
7172 else throw("Match error")
7273 }
73- let z = ((u + "_") + toString(x))
74- if (if (((r + 1) > o))
75- then (o > (q - 1))
74+ let A = ((v + "_") + toString(y))
75+ if (if (((s + 1) > p))
76+ then (p > (r - 1))
7677 else false)
7778 then {
78- let A = ((((((((((toString(d) + "_WON_") + v) + "_") + z) + "_") + toString(q)) + "-") + toString(r)) + "_") + toString(o))
79- let B = (f(((r - q) + 1)) / 100)
80- let C = WriteSet([DataEntry(b, o), DataEntry(z, A), DataEntry(a, (x + 1)), DataEntry(c, ((toString(B) + "_") + toString((t.amount * B))))])
81- ScriptResult(C, TransferSet([ScriptTransfer(k.caller, ((t.amount * f(((r - q) + 1))) / 100), unit)]))
79+ let B = ((((((((((toString(d) + "_WON_") + w) + "_") + A) + "_") + toString(r)) + "-") + toString(s)) + "_") + toString(p))
80+ let C = f(((s - r) + 1))
81+ let D = ((u.amount * C) / 100)
82+ let E = WriteSet([DataEntry(b, p), DataEntry(A, B), DataEntry(a, (y + 1)), DataEntry(c, ((((toString(C) + "_") + toString(u.amount)) + "_") + toString(D)))])
83+ ScriptResult(E, TransferSet([ScriptTransfer(l.caller, D, unit)]))
8284 }
8385 else {
84- let A = ((((((((((toString(d) + "_LOSE_") + v) + "_") + z) + "_") + toString(q)) + "-") + toString(r)) + "_") + toString(o))
85- let C = WriteSet([DataEntry(b, o), DataEntry(z, A), DataEntry(a, (x + 1))])
86- ScriptResult(C, TransferSet(nil))
86+ let B = ((((((((((toString(d) + "_LOSE_") + w) + "_") + A) + "_") + toString(r)) + "-") + toString(s)) + "_") + toString(p))
87+ let E = WriteSet([DataEntry(b, p), DataEntry(A, B), DataEntry(a, (y + 1))])
88+ ScriptResult(E, TransferSet(nil))
8789 }
8890 }
8991 }
9092
9193
92-@Callable(k)
93-func zero2hero (q,r) = p(k, q, r)
94+@Callable(l)
95+func zero2hero (r,s) = q(l, r, s)
96+
97+
98+
99+@Callable(l)
100+func payoutcalct (g) = {
101+ let j = f(g)
102+ ScriptResult(WriteSet([DataEntry(c, toString(j))]), TransferSet(nil))
103+ }
94104
95105
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "$GAME_NUMBER"
55
66 let b = "$LAST_PLAY"
77
88 let c = "$TEST"
99
1010 let d = 1
1111
1212 let e = 2
1313
1414 func f (g) = {
1515 let h = 6
1616 let i = 10000
17- ((i * ((100 - 6) / 100)) / g)
17+ let j = ((i * (100 - 6)) / (g * 100))
18+ j
1819 }
1920
2021
21-func j (k) = {
22- let l = {
23- let m = getBinary(this, b)
24- if ($isInstanceOf(m, "ByteVector"))
22+func k (l) = {
23+ let m = {
24+ let n = getBinary(this, b)
25+ if ($isInstanceOf(n, "ByteVector"))
2526 then {
26- let n = m
27- n
27+ let o = n
28+ o
2829 }
29- else if ($isInstanceOf(m, "Unit"))
30+ else if ($isInstanceOf(n, "Unit"))
3031 then base58'2ee4oFDYriWJ9EMeR'
3132 else throw("Match error")
3233 }
33- let o = (((((l + k.transactionId) + k.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
34- sha256(o)
34+ let p = (((((m + l.transactionId) + l.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
35+ sha256(p)
3536 }
3637
3738
38-func p (k,q,r) = {
39- let s = (wavesBalance(this) / 100)
40- let t = extract(k.payment)
41- if (!(isDefined(k.payment)))
39+func q (l,r,s) = {
40+ let t = (wavesBalance(this) / 100)
41+ let u = extract(l.payment)
42+ if (!(isDefined(l.payment)))
4243 then throw("Should be with Payment in Waves")
43- else if (isDefined(t.assetId))
44+ else if (isDefined(u.assetId))
4445 then throw("Payment should be in Waves")
45- else if ((t.amount > s))
46- then throw(("Payment should be less than " + toString(s)))
47- else if ((0 > q))
46+ else if ((u.amount > t))
47+ then throw(("Payment should be less than " + toString(t)))
48+ else if ((0 > r))
4849 then throw("guessStart and guessEnd Must be in between 0-99")
49- else if ((r > 99))
50+ else if ((s > 99))
5051 then throw("guessStart and guessEnd Must be in between 0-99")
51- else if ((q > r))
52+ else if ((r > s))
5253 then throw("guessStart and guessEnd Must be in between 0-99")
53- else if ((5 > ((r - q) + 1)))
54+ else if ((5 > ((s - r) + 1)))
5455 then throw("guessStart and guessEnd Must be at least 5 apart")
55- else if ((((r - q) + 1) > 95))
56+ else if ((((s - r) + 1) > 95))
5657 then throw("guessStart and guessEnd Must not be at least 95 apart")
5758 else {
58- let u = toBase58String(k.caller.bytes)
59- let v = toBase58String(k.transactionId)
60- let w = j(k)
61- let o = (toInt(w) % 100)
62- let x = {
63- let m = getInteger(this, a)
64- if ($isInstanceOf(m, "Int"))
59+ let v = toBase58String(l.caller.bytes)
60+ let w = toBase58String(l.transactionId)
61+ let x = k(l)
62+ let p = (toInt(x) % 100)
63+ let y = {
64+ let n = getInteger(this, a)
65+ if ($isInstanceOf(n, "Int"))
6566 then {
66- let y = m
67- y
67+ let z = n
68+ z
6869 }
69- else if ($isInstanceOf(m, "Unit"))
70+ else if ($isInstanceOf(n, "Unit"))
7071 then 1
7172 else throw("Match error")
7273 }
73- let z = ((u + "_") + toString(x))
74- if (if (((r + 1) > o))
75- then (o > (q - 1))
74+ let A = ((v + "_") + toString(y))
75+ if (if (((s + 1) > p))
76+ then (p > (r - 1))
7677 else false)
7778 then {
78- let A = ((((((((((toString(d) + "_WON_") + v) + "_") + z) + "_") + toString(q)) + "-") + toString(r)) + "_") + toString(o))
79- let B = (f(((r - q) + 1)) / 100)
80- let C = WriteSet([DataEntry(b, o), DataEntry(z, A), DataEntry(a, (x + 1)), DataEntry(c, ((toString(B) + "_") + toString((t.amount * B))))])
81- ScriptResult(C, TransferSet([ScriptTransfer(k.caller, ((t.amount * f(((r - q) + 1))) / 100), unit)]))
79+ let B = ((((((((((toString(d) + "_WON_") + w) + "_") + A) + "_") + toString(r)) + "-") + toString(s)) + "_") + toString(p))
80+ let C = f(((s - r) + 1))
81+ let D = ((u.amount * C) / 100)
82+ let E = WriteSet([DataEntry(b, p), DataEntry(A, B), DataEntry(a, (y + 1)), DataEntry(c, ((((toString(C) + "_") + toString(u.amount)) + "_") + toString(D)))])
83+ ScriptResult(E, TransferSet([ScriptTransfer(l.caller, D, unit)]))
8284 }
8385 else {
84- let A = ((((((((((toString(d) + "_LOSE_") + v) + "_") + z) + "_") + toString(q)) + "-") + toString(r)) + "_") + toString(o))
85- let C = WriteSet([DataEntry(b, o), DataEntry(z, A), DataEntry(a, (x + 1))])
86- ScriptResult(C, TransferSet(nil))
86+ let B = ((((((((((toString(d) + "_LOSE_") + w) + "_") + A) + "_") + toString(r)) + "-") + toString(s)) + "_") + toString(p))
87+ let E = WriteSet([DataEntry(b, p), DataEntry(A, B), DataEntry(a, (y + 1))])
88+ ScriptResult(E, TransferSet(nil))
8789 }
8890 }
8991 }
9092
9193
92-@Callable(k)
93-func zero2hero (q,r) = p(k, q, r)
94+@Callable(l)
95+func zero2hero (r,s) = q(l, r, s)
96+
97+
98+
99+@Callable(l)
100+func payoutcalct (g) = {
101+ let j = f(g)
102+ ScriptResult(WriteSet([DataEntry(c, toString(j))]), TransferSet(nil))
103+ }
94104
95105

github/deemru/w8io/169f3d6 
268.95 ms