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