tx · gbLY4JEEMPhV6bTpHXyhENLRWAq6DKoC6xAeD3nWhrK 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a: -0.01400000 Waves 2020.10.18 22:12 [1226417] smart account 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a > SELF 0.00000000 Waves
{ "type": 13, "id": "gbLY4JEEMPhV6bTpHXyhENLRWAq6DKoC6xAeD3nWhrK", "fee": 1400000, "feeAssetId": null, "timestamp": 1603048402447, "version": 2, "chainId": 84, "sender": "3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a", "senderPublicKey": "7rC1eUHm39ujzNxeYHmmZia2bTsJ1Un38mzD1QHNVwUN", "proofs": [ "5Jg2BDr1btWJzXc5qPYwTNwDm3qh5qpqaSZC5BF5AokyNZAvNXbkfi51LmrVEm4kQwhPeqMr4DGoLZ3xmMH6vswn" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAKAAAAAAFvAQAAACBlwAgSzsM+70d8C1Jb3wzHWPTczpzKAVyB9scXCgMiOwAAAAABbAIAAAAjM04yaEhhcUVFWGpGSEU1RzhOVHc2djdLTk13Y0hvYjJFbmEAAAAAAWYAAAAAAAAAAAoAAAAAAXAAAAAAAAAAABQAAAAAA3ByMQAAAAAAAAAAAwAAAAADcHIyAAAAAAAAAAACAAAAAANwcjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAETBfMF8wXzBfMF8wXzBfMF8wAQAAAAdnZXRVc2VyAAAAAQAAAAR1c2VyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAABHVzZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hd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kJAARMAAAAAgkAASwAAAACCQABkQAAAAIFAAAAAXUAAAAAAAAAAAoCAAAAAl8wBQAAAANuaWwCAAAAAV8JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAF5BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAFvBsQq1h0=", "height": 1226417, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BTTiPJsGb4dhz2PoWez9BjXM7eQSeCRYvduxfXKFbr9 Next: 7tg97SPXoThiztqJ1wdcfNqaNGkdpEHpPR3pjVQbYfMt Diff:
Old | New | Differences | |
---|---|---|---|
34 | 34 | func getWithdraw (s) = { | |
35 | 35 | let a = split(s, " Waves") | |
36 | 36 | let b = split(a[0], ".") | |
37 | + | let v = (parseIntValue(b[0]) * 100000000) | |
37 | 38 | if ((size(b) == 1)) | |
38 | - | then | |
39 | + | then v | |
39 | 40 | else { | |
40 | - | let c = (parseIntValue(b[0]) * 100000000) | |
41 | - | parseIntValue(b[1]) | |
41 | + | let j = parseIntValue(b[1]) | |
42 | + | let x = size(b[1]) | |
43 | + | if ((x == 1)) | |
44 | + | then ((j * 10000000) + v) | |
45 | + | else if ((x == 2)) | |
46 | + | then ((j * 1000000) + v) | |
47 | + | else if ((x == 3)) | |
48 | + | then ((j * 100000) + v) | |
49 | + | else if ((x == 4)) | |
50 | + | then ((j * 10000) + v) | |
51 | + | else if ((x == 5)) | |
52 | + | then ((j * 1000) + v) | |
53 | + | else if ((x == 6)) | |
54 | + | then ((j * 100) + v) | |
55 | + | else ((j * 10) + v) | |
42 | 56 | } | |
43 | 57 | } | |
44 | 58 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let o = base58'7rC1eUHm39ujzNxeYHmmZia2bTsJ1Un38mzD1QHNVwUN' | |
5 | 5 | ||
6 | 6 | let l = "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena" | |
7 | 7 | ||
8 | 8 | let f = 10 | |
9 | 9 | ||
10 | 10 | let p = 20 | |
11 | 11 | ||
12 | 12 | let pr1 = 3 | |
13 | 13 | ||
14 | 14 | let pr2 = 2 | |
15 | 15 | ||
16 | 16 | let pr3 = 1 | |
17 | 17 | ||
18 | 18 | func getStatistic () = match getString(this, "statistic") { | |
19 | 19 | case a: String => | |
20 | 20 | a | |
21 | 21 | case _ => | |
22 | 22 | "0_0_0_0_0_0_0_0_0" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func getUser (user) = match getString(this, user) { | |
27 | 27 | case a: String => | |
28 | 28 | a | |
29 | 29 | case _ => | |
30 | 30 | "0_0_0_0_0_0_0_0_0_0_0_0" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getWithdraw (s) = { | |
35 | 35 | let a = split(s, " Waves") | |
36 | 36 | let b = split(a[0], ".") | |
37 | + | let v = (parseIntValue(b[0]) * 100000000) | |
37 | 38 | if ((size(b) == 1)) | |
38 | - | then | |
39 | + | then v | |
39 | 40 | else { | |
40 | - | let c = (parseIntValue(b[0]) * 100000000) | |
41 | - | parseIntValue(b[1]) | |
41 | + | let j = parseIntValue(b[1]) | |
42 | + | let x = size(b[1]) | |
43 | + | if ((x == 1)) | |
44 | + | then ((j * 10000000) + v) | |
45 | + | else if ((x == 2)) | |
46 | + | then ((j * 1000000) + v) | |
47 | + | else if ((x == 3)) | |
48 | + | then ((j * 100000) + v) | |
49 | + | else if ((x == 4)) | |
50 | + | then ((j * 10000) + v) | |
51 | + | else if ((x == 5)) | |
52 | + | then ((j * 1000) + v) | |
53 | + | else if ((x == 6)) | |
54 | + | then ((j * 100) + v) | |
55 | + | else ((j * 10) + v) | |
42 | 56 | } | |
43 | 57 | } | |
44 | 58 | ||
45 | 59 | ||
46 | 60 | @Callable(i) | |
47 | 61 | func deposit () = { | |
48 | 62 | let t = value(i.payments[0]) | |
49 | 63 | let z = t.amount | |
50 | 64 | if (isDefined(t.assetId)) | |
51 | 65 | then throw("can hodl waves only at the moment") | |
52 | 66 | else { | |
53 | 67 | let a = toBase58String(i.caller.bytes) | |
54 | 68 | let s = split(getStatistic(), "_") | |
55 | 69 | if ((a == l)) | |
56 | 70 | then [StringEntry("statistic", makeString([s[0], s[1], s[2], s[3], s[4], s[5], s[6], toString((parseIntValue(s[7]) + z)), s[8]], "_"))] | |
57 | 71 | else { | |
58 | 72 | let h = lastBlock.height | |
59 | 73 | let x = ((z / 100) * (100 + p)) | |
60 | 74 | let y = (x - z) | |
61 | 75 | let u = split(getUser(a), "_") | |
62 | 76 | let ud2 = parseIntValue(u[2]) | |
63 | 77 | if ((u[7] == "0")) | |
64 | 78 | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], s[4], s[5], s[6], s[7], toString((parseIntValue(s[8]) + y))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_"))] | |
65 | 79 | else { | |
66 | 80 | let r1 = split(getUser(u[7]), "_") | |
67 | 81 | let sr1 = ((z / 100) * pr1) | |
68 | 82 | if ((r1[7] == "0")) | |
69 | 83 | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((parseIntValue(s[4]) + sr1)), toString((parseIntValue(s[5]) + 1)), s[6], s[7], toString(((parseIntValue(s[8]) + y) + sr1))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_"))] | |
70 | 84 | else { | |
71 | 85 | let r2 = split(getUser(r1[7]), "_") | |
72 | 86 | let sr2 = ((z / 100) * pr2) | |
73 | 87 | if ((r2[7] == "0")) | |
74 | 88 | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString(((parseIntValue(s[4]) + sr1) + sr2)), toString((parseIntValue(s[5]) + 2)), s[6], s[7], toString((((parseIntValue(s[8]) + y) + sr1) + sr2))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_"))] | |
75 | 89 | else { | |
76 | 90 | let r3 = split(getUser(r2[7]), "_") | |
77 | 91 | let sr3 = ((z / 100) * pr3) | |
78 | 92 | [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((((parseIntValue(s[4]) + sr1) + sr2) + sr3)), toString((parseIntValue(s[5]) + 3)), s[6], s[7], toString(((((parseIntValue(s[8]) + y) + sr1) + sr2) + sr3))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_")), StringEntry(r2[7], makeString([r3[0], r3[1], r3[2], r3[3], r3[4], r3[5], r3[6], r3[7], r3[8], r3[9], toString((parseIntValue(r3[10]) + sr3)), toString((parseIntValue(r3[11]) + sr3))], "_"))] | |
79 | 93 | } | |
80 | 94 | } | |
81 | 95 | } | |
82 | 96 | } | |
83 | 97 | } | |
84 | 98 | } | |
85 | 99 | ||
86 | 100 | ||
87 | 101 | ||
88 | 102 | @Callable(i) | |
89 | 103 | func withdraw (w) = { | |
90 | 104 | let y = getWithdraw(w) | |
91 | 105 | let a = toBase58String(i.caller.bytes) | |
92 | 106 | let u = split(getUser(a), "_") | |
93 | 107 | let s = split(getStatistic(), "_") | |
94 | 108 | let h = lastBlock.height | |
95 | 109 | let j = parseIntValue(u[4]) | |
96 | 110 | let x = parseIntValue(u[2]) | |
97 | 111 | let d = parseIntValue(u[3]) | |
98 | 112 | let b = parseIntValue(u[11]) | |
99 | 113 | let g = (j + f) | |
100 | 114 | let m = if ((h >= g)) | |
101 | 115 | then (x + b) | |
102 | 116 | else ((d * ((f - g) - h)) + b) | |
103 | 117 | if ((0 > y)) | |
104 | 118 | then throw("Can't withdraw negative amount") | |
105 | 119 | else if ((b >= y)) | |
106 | 120 | then [StringEntry("statistic", makeString([s[0], s[1], s[2], toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + y)), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], u[2], u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], u[10], toString((parseIntValue(u[11]) - y))], "_")), ScriptTransfer(i.caller, y, unit)] | |
107 | 121 | else if ((0 > (m - y))) | |
108 | 122 | then throw(((((((((((((((("Not enough balance: m" + toString(m)) + " / y") + toString(y)) + " / x") + toString(x)) + " / b") + toString(b)) + " / f") + toString(f)) + " / g") + toString(g)) + " / h") + toString(h)) + " / d") + toString(d))) | |
109 | 123 | else { | |
110 | 124 | let n = ((x + b) - y) | |
111 | 125 | [StringEntry("statistic", makeString([s[0], s[1], toString(((parseIntValue(s[2]) + y) - parseIntValue(u[11]))), toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + parseIntValue(u[11]))), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], toString(n), u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], (u[10] + "_0")], "_")), ScriptTransfer(i.caller, y, unit)] | |
112 | 126 | } | |
113 | 127 | } | |
114 | 128 | ||
115 | 129 | ||
116 | 130 | @Verifier(tx) | |
117 | 131 | func verify () = match tx { | |
118 | 132 | case d: SetScriptTransaction => | |
119 | 133 | sigVerify(tx.bodyBytes, tx.proofs[0], o) | |
120 | 134 | case _ => | |
121 | 135 | true | |
122 | 136 | } | |
123 | 137 |
github/deemru/w8io/169f3d6 52.71 ms ◑