tx · BTEDgXJwX7CHQ5TwmDfYpwDtsf3P3D8JTxKsTGqJGSaj 3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N: -0.01000000 Waves 2022.04.26 22:54 [2025895] smart account 3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N > SELF 0.00000000 Waves
{ "type": 13, "id": "BTEDgXJwX7CHQ5TwmDfYpwDtsf3P3D8JTxKsTGqJGSaj", "fee": 1000000, "feeAssetId": null, "timestamp": 1651002899316, "version": 2, "chainId": 84, "sender": "3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N", "senderPublicKey": "CpN2UR96CYA49vvxNChb3NFpAE9TK2nyuCptRU4VkHzS", "proofs": [ "5PzTxY1BnANn7MHdGJXTcCC765WAVZAKaxJM5RvMPy726mB315Me95iPYekvjsVLp28cLgt6RPKUcz6gBi8DZuyj" ], "script": "base64:AAIFAAAAAAAAAB8IAhIECgIBARIDCgEIEgcKBQEBAQEIEgMKAQESABIAAAAAGgAAAAADdmVyAgAAAAMxLjAAAAAABHllYXIAAAAAAAAIBSAAAAAACXNlcGFyYXRvcgIAAAACX18AAAAACldBVkVTSURTVFICAAAABVdBVkVTAAAAAAdXQVZFU0lECQACWQAAAAEFAAAACldBVkVTSURTVFIAAAAADG1heEludmVzdEtleQIAAAANJXNfX21heEludmVzdAAAAAAOdG90YWxJbnZlc3RLZXkCAAAADyVzX190b3RhbEludmVzdAAAAAAOaW52ZXN0QXNzZXRLZXkCAAAAESVzX19pbnZlc3RBc3NldElkAAAAAAphcHlGcm9tS2V5AgAAAAslc19fYXB5RnJvbQAAAAAIYXB5VG9LZXkCAAAACSVzX19hcHlUbwAAAAAUaW52ZXN0SW50ZXJ2YWxNaW5LZXkCAAAADyVzX19pbnRlcnZhbE1pbgAAAAAObWF4SW50ZXJ2YWxLZXkCAAAADiVfX21heEludGVydmFsAQAAABBnZXRVc2VySW52ZXN0S2V5AAAAAQAAAAR1c2VyCQAEuQAAAAIJAARMAA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AAAAAAAQJAAGRAAAAAgUAAAAEZGF0YQAAAAAAAAAABQkAAZEAAAACBQAAAARkYXRhAAAAAAAAAAAGBAAAAAdjbGFpbWVkCQAAZAAAAAIJAAGRAAAAAgUAAAAEZGF0YQAAAAAAAAAABAUAAAAHdG9DbGFpbQQAAAALY2xhaW1IZWlnaHQFAAAABmhlaWdodAMJAAAAAAAAAgUAAAAHdG9DbGFpbQAAAAAAAAAAAAkAAAIAAAABAgAAABBOb3RoaW5nIHRvIGNsYWltCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAHdG9DbGFpbQkAAlkAAAABBQAAAAtpbnZlc3RBc3NldAkABEwAAAACCQEAAAALc2V0VXNlckRhdGEAAAAICQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAZEAAAACBQAAAARkYXRhAAAAAAAAAAAACQABkQAAAAIFAAAABGRhdGEAAAAAAAAAAAEFAAAAC2NsYWltSGVpZ2h0CQABkQAAAAIFAAAABGRhdGEAAAAAAAAAAAMAAAAAAAAAAAAFAAAAB2NsYWltZWQJAAGRAAAAAgUAAAAEZGF0YQAAAAAAAAAABgUAAAADbmlsAAAAAWkBAAAADGRlbGV0ZUFtb3VudAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADnRvdGFsSW52ZXN0S2V5AAAAAAAAAAAABQAAAANuaWwAAAAAvYtscg==", "height": 2025895, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74X15JuSnq2Hen5M92d5Na4VxfBZ6njDA8UA3T4kjsnR Next: HvPLFokiuzRezM6P8pAtW4Pcpg26sHHWQfuHzkGaZgmX Diff:
Old | New | Differences | |
---|---|---|---|
81 | 81 | else { | |
82 | 82 | let O = valueOrElse(parseInt(N[1]), 0) | |
83 | 83 | let P = valueOrElse(parseInt(N[2]), 0) | |
84 | - | let Q = valueOrElse(parseInt(N[ | |
84 | + | let Q = valueOrElse(parseInt(N[6]), 0) | |
85 | 85 | let R = valueOrElse(parseInt(N[4]), 0) | |
86 | 86 | let S = valueOrElse(parseInt(N[5]), 0) | |
87 | - | let T = valueOrElse(parseInt(N[ | |
87 | + | let T = valueOrElse(parseInt(N[2]), 0) | |
88 | 88 | let U = valueOrElse(parseInt(N[7]), 0) | |
89 | 89 | [O, P, T, R, S, Q, U] | |
90 | 90 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0" | |
5 | 5 | ||
6 | 6 | let b = 525600 | |
7 | 7 | ||
8 | 8 | let c = "__" | |
9 | 9 | ||
10 | 10 | let d = "WAVES" | |
11 | 11 | ||
12 | 12 | let e = fromBase58String(d) | |
13 | 13 | ||
14 | 14 | let f = "%s__maxInvest" | |
15 | 15 | ||
16 | 16 | let g = "%s__totalInvest" | |
17 | 17 | ||
18 | 18 | let h = "%s__investAssetId" | |
19 | 19 | ||
20 | 20 | let i = "%s__apyFrom" | |
21 | 21 | ||
22 | 22 | let j = "%s__apyTo" | |
23 | 23 | ||
24 | 24 | let k = "%s__intervalMin" | |
25 | 25 | ||
26 | 26 | let l = "%__maxInterval" | |
27 | 27 | ||
28 | 28 | func m (n) = makeString(["%s%s$d", "clrcInvest", n], c) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o (p,q) = if ((valueOrElse(p, 0) != 0)) | |
32 | 32 | then p | |
33 | 33 | else q | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func r (s,t) = if ((s > t)) | |
37 | 37 | then t | |
38 | 38 | else s | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func u (s,t) = if ((t > s)) | |
42 | 42 | then t | |
43 | 43 | else s | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v (w) = valueOrElse(getInteger(this, w), 0) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func x (w,q) = valueOrElse(getInteger(this, w), q) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func y (w) = valueOrErrorMessage(getInteger(this, w), (("Mandatory this." + w) + " is not defined")) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z (w,q) = valueOrElse(getString(this, w), q) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func A (w) = valueOrErrorMessage(getString(this, w), (("Mandatory this." + w) + " is not defined")) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (C) = if ((C == d)) | |
62 | 62 | then unit | |
63 | 63 | else fromBase58String(C) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func D (E,F) = { | |
67 | 67 | let G = v(j) | |
68 | 68 | let H = v(i) | |
69 | 69 | let I = ((G - H) * 1000000) | |
70 | 70 | let J = (F - 1) | |
71 | 71 | let K = ((I * (E - 1)) / J) | |
72 | 72 | let L = (K + (H * 1000000)) | |
73 | 73 | L | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func M (n) = { | |
78 | 78 | let N = split(z(m(n), ""), c) | |
79 | 79 | if ((7 > size(N))) | |
80 | 80 | then [0, 0, 0, 0, 0, 0, 0] | |
81 | 81 | else { | |
82 | 82 | let O = valueOrElse(parseInt(N[1]), 0) | |
83 | 83 | let P = valueOrElse(parseInt(N[2]), 0) | |
84 | - | let Q = valueOrElse(parseInt(N[ | |
84 | + | let Q = valueOrElse(parseInt(N[6]), 0) | |
85 | 85 | let R = valueOrElse(parseInt(N[4]), 0) | |
86 | 86 | let S = valueOrElse(parseInt(N[5]), 0) | |
87 | - | let T = valueOrElse(parseInt(N[ | |
87 | + | let T = valueOrElse(parseInt(N[2]), 0) | |
88 | 88 | let U = valueOrElse(parseInt(N[7]), 0) | |
89 | 89 | [O, P, T, R, S, Q, U] | |
90 | 90 | } | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func V (n,O,P,T,R,S,Q,U) = { | |
95 | 95 | let w = m(n) | |
96 | 96 | let N = makeString(["%d%d%d%d%d%d", toString(O), toString(P), toString(T), toString(R), toString(S), toString(Q), toString(U)], c) | |
97 | 97 | StringEntry(w, N) | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func W (O,P,T,R,S,Q,U) = { | |
102 | 102 | let X = u(T, O) | |
103 | 103 | let Y = r(P, height) | |
104 | 104 | let Z = (Y - X) | |
105 | 105 | let aa = fraction(U, Z, b) | |
106 | 106 | let ab = fraction(aa, R, 100000000) | |
107 | 107 | (ab + S) | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(ac) | |
112 | 112 | func getApyReaOnly (E,F) = { | |
113 | 113 | let ad = D(E, F) | |
114 | 114 | $Tuple2(nil, ad) | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | ||
119 | 119 | @Callable(ac) | |
120 | 120 | func claimReadonly (n) = { | |
121 | 121 | let N = M(n) | |
122 | 122 | let S = W(N[0], N[1], N[2], N[3], N[4], N[5], N[6]) | |
123 | 123 | $Tuple2(nil, S) | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(ac) | |
129 | 129 | func setParams (H,G,ae,af,ag) = [StringEntry(h, ag), IntegerEntry(j, G), IntegerEntry(i, H), IntegerEntry(l, ae), IntegerEntry(f, af)] | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | ||
133 | 133 | @Callable(ac) | |
134 | 134 | func deposit (E) = { | |
135 | 135 | let ah = x(k, 43200) | |
136 | 136 | let af = v(f) | |
137 | 137 | let ai = v(g) | |
138 | 138 | let ag = A(h) | |
139 | 139 | let aj = ac.caller | |
140 | 140 | let ak = toString(aj) | |
141 | 141 | let F = v(l) | |
142 | 142 | let al = height | |
143 | 143 | let am = (al + (ah * E)) | |
144 | 144 | let an = (("Invalid asset. " + ag) + " is expected") | |
145 | 145 | if (if ((1 > E)) | |
146 | 146 | then true | |
147 | 147 | else (E > F)) | |
148 | 148 | then throw("Wrong interval") | |
149 | 149 | else if ((size(ac.payments) != 1)) | |
150 | 150 | then throw("Invalid payments size") | |
151 | 151 | else { | |
152 | 152 | let ao = ac.payments[0] | |
153 | 153 | let R = ao.amount | |
154 | 154 | let ap = valueOrErrorMessage(ao.assetId, an) | |
155 | 155 | if ((toBase58String(ap) != ag)) | |
156 | 156 | then throw(an) | |
157 | 157 | else if (((R + ai) > af)) | |
158 | 158 | then throw("The max invest limit has been reached") | |
159 | 159 | else { | |
160 | 160 | let ad = D(E, F) | |
161 | 161 | let aq = M(ak) | |
162 | 162 | let ar = W(aq[0], aq[1], aq[2], aq[3], aq[4], aq[5], aq[6]) | |
163 | 163 | let as = (R + aq[3]) | |
164 | 164 | let Q = aq[4] | |
165 | 165 | let S = aq[5] | |
166 | 166 | [V(ak, al, am, al, as, ar, Q, ad), IntegerEntry(g, (R + ai))] | |
167 | 167 | } | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Callable(ac) | |
174 | 174 | func claim () = { | |
175 | 175 | let ag = A(h) | |
176 | 176 | let N = M(toString(ac.caller)) | |
177 | 177 | if ((7 > size(N))) | |
178 | 178 | then throw("User has't invest") | |
179 | 179 | else { | |
180 | 180 | let S = W(N[0], N[1], N[2], N[3], N[4], N[5], N[6]) | |
181 | 181 | let Q = (N[4] + S) | |
182 | 182 | let T = height | |
183 | 183 | if ((S == 0)) | |
184 | 184 | then throw("Nothing to claim") | |
185 | 185 | else [ScriptTransfer(ac.caller, S, fromBase58String(ag)), V(toString(ac.caller), N[0], N[1], T, N[3], 0, Q, N[6])] | |
186 | 186 | } | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(ac) | |
192 | 192 | func deleteAmount () = [IntegerEntry(g, 0)] | |
193 | 193 | ||
194 | 194 |
github/deemru/w8io/026f985 37.96 ms ◑