tx · HNEnZ9X36kspqaKohpNdB8QcmkGifFfsQHLjZn73aHiZ 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a: -0.01400000 Waves 2020.10.19 01:47 [1226621] smart account 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a > SELF 0.00000000 Waves
{ "type": 13, "id": "HNEnZ9X36kspqaKohpNdB8QcmkGifFfsQHLjZn73aHiZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1603061270636, "version": 2, "chainId": 84, "sender": "3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a", "senderPublicKey": "7rC1eUHm39ujzNxeYHmmZia2bTsJ1Un38mzD1QHNVwUN", "proofs": [ "3GqHGACLvU8Bi7PR6r55VrsAg5jhyafGoSYSjV5SQqcX7RWtjT4XEmwbmurqUeamM41XtLXAUDd9ZxdeQK2sZtU2" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAKAAAAAAFvAQAAACBlwAgSzsM+70d8C1Jb3wzHWPTczpzKAVyB9scXCgMiOwAAAAABbAIAAAAjM04yaEhhcUVFWGpGSEU1RzhOVHc2djdLTk13Y0hvYjJFbmEAAAAAAWYAAAAAAAAAAAoAAAAAAXAAAAAAAAAAABQAAAAAA3ByMQAAAAAAAAAAAwAAAAADcHIyAAAAAAAAAAACAAAAAANwcjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAETBfMF8wXzBfMF8wXzBfMF8wAQAAAAdnZXRVc2VyAAAAAQAAAAR1c2VyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAABHVzZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoM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AW8Gxah2Kg==", "height": 1226621, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4cjQciUxxGB1Efc7ZZvTSpyg4EoPwvxrjfD66xQunqJb Next: CUgBPmT5T5UXZWAX3kxTw5UfE57Ez35wSXkEgjj1KNZL Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | let v = (parseIntValue(b[0]) * 100000000) | |
38 | 38 | if ((size(b) == 1)) | |
39 | 39 | then v | |
40 | - | else ((parseIntValue(b[1]) * pow(10, 0, (size(b[1]) | |
40 | + | else ((parseIntValue(b[1]) * pow(10, 0, (8 - size(b[1])), 0, 0, HALFDOWN)) + v) | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 |
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 | 37 | let v = (parseIntValue(b[0]) * 100000000) | |
38 | 38 | if ((size(b) == 1)) | |
39 | 39 | then v | |
40 | - | else ((parseIntValue(b[1]) * pow(10, 0, (size(b[1]) | |
40 | + | else ((parseIntValue(b[1]) * pow(10, 0, (8 - size(b[1])), 0, 0, HALFDOWN)) + v) | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(i) | |
45 | 45 | func deposit () = { | |
46 | 46 | let t = value(i.payments[0]) | |
47 | 47 | let z = t.amount | |
48 | 48 | if (isDefined(t.assetId)) | |
49 | 49 | then throw("can hodl waves only at the moment") | |
50 | 50 | else { | |
51 | 51 | let a = toBase58String(i.caller.bytes) | |
52 | 52 | let s = split(getStatistic(), "_") | |
53 | 53 | if ((a == l)) | |
54 | 54 | 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 | 55 | else { | |
56 | 56 | let h = lastBlock.height | |
57 | 57 | let x = ((z / 100) * (100 + p)) | |
58 | 58 | let y = (x - z) | |
59 | 59 | let u = split(getUser(a), "_") | |
60 | 60 | let ud2 = parseIntValue(u[2]) | |
61 | 61 | if ((u[7] == "0")) | |
62 | 62 | 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 | 63 | else { | |
64 | 64 | let r1 = split(getUser(u[7]), "_") | |
65 | 65 | let sr1 = ((z / 100) * pr1) | |
66 | 66 | if ((r1[7] == "0")) | |
67 | 67 | 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 | 68 | else { | |
69 | 69 | let r2 = split(getUser(r1[7]), "_") | |
70 | 70 | let sr2 = ((z / 100) * pr2) | |
71 | 71 | if ((r2[7] == "0")) | |
72 | 72 | 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 | 73 | else { | |
74 | 74 | let r3 = split(getUser(r2[7]), "_") | |
75 | 75 | let sr3 = ((z / 100) * pr3) | |
76 | 76 | [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 | 77 | } | |
78 | 78 | } | |
79 | 79 | } | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||
86 | 86 | @Callable(i) | |
87 | 87 | func withdraw (w) = { | |
88 | 88 | let y = getWithdraw(w) | |
89 | 89 | let a = toBase58String(i.caller.bytes) | |
90 | 90 | let u = split(getUser(a), "_") | |
91 | 91 | let s = split(getStatistic(), "_") | |
92 | 92 | let h = lastBlock.height | |
93 | 93 | let j = parseIntValue(u[4]) | |
94 | 94 | let x = parseIntValue(u[2]) | |
95 | 95 | let d = parseIntValue(u[3]) | |
96 | 96 | let b = parseIntValue(u[11]) | |
97 | 97 | let g = (j + f) | |
98 | 98 | let m = if ((h >= g)) | |
99 | 99 | then (x + b) | |
100 | 100 | else ((d * ((f - g) - h)) + b) | |
101 | 101 | if ((0 > y)) | |
102 | 102 | then throw("Can't withdraw negative amount") | |
103 | 103 | else if ((b >= y)) | |
104 | 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, unit)] | |
105 | 105 | else if ((0 > (m - y))) | |
106 | 106 | 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 | 107 | else { | |
108 | 108 | let n = ((x + b) - y) | |
109 | 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, unit)] | |
110 | 110 | } | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Verifier(tx) | |
115 | 115 | func verify () = match tx { | |
116 | 116 | case d: SetScriptTransaction => | |
117 | 117 | sigVerify(tx.bodyBytes, tx.proofs[0], o) | |
118 | 118 | case _ => | |
119 | 119 | true | |
120 | 120 | } | |
121 | 121 |
github/deemru/w8io/169f3d6 48.56 ms ◑