tx · DaSYcJ7g5MPjD9ybkU7yKS1spybEVrbSBbQhPGi7B2v9 3MqjiXZpkpN31j7XFmLueeZuFpfZ7fDwe9S: -0.01000000 Waves 2022.06.02 13:52 [2078616] smart account 3MqjiXZpkpN31j7XFmLueeZuFpfZ7fDwe9S > SELF 0.00000000 Waves
{ "type": 13, "id": "DaSYcJ7g5MPjD9ybkU7yKS1spybEVrbSBbQhPGi7B2v9", "fee": 1000000, "feeAssetId": null, "timestamp": 1654167181336, "version": 2, "chainId": 84, "sender": "3MqjiXZpkpN31j7XFmLueeZuFpfZ7fDwe9S", "senderPublicKey": "7YknsAXP81Vy1sJAhHtumQ4SqcsQHPEmiqnXeY58Bw3y", "proofs": [ "4JmykegfZcGGbd8LkGCf4iYVL6EoQYZ7vkBUuRaJ3NP9UyMs4jKHAB6UGNNdZwEV7GsZG4EnMXjAUqhajN8GRoD6" ], "script": "base64:AAIFAAAAAAAAADsIAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICRIFCgMBCAESAwoBCAAAACEAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAA1fU3Rha2luZ1N0b3JlAAAAABFtaW5pbXVtTG9ja0Ftb3VudAIAAAAOX01pbkxvY2tBbW91bnQAAAAAEW1heGltdW1Mb2NrQW1vdW50AgAAAA5fTWF4TG9ja0Ftb3VudAAAAAAJYXNzZXRMaXN0BQAAAANuaWwAAAAAEXVubG9ja0VsaWdpYmlsaXR5AgAAABxfRWxpZ2libGVfdG9fdW5sb2NrX2F0X2Jsb2NrAAAAAAxsb2NrZWRBbW91bnQCAAAADl9BbW91bnRfbG9ja2VkAAAAAAtsb2NrZWRBc3NldAIAAAANX0Fzc2V0X2xvY2tlZAAAAAAEdXNlcgIAAAAFX1VzZXIAAAAACkFQWV9BbW91bnQCAAAAC19BUFlfYW1vdW50AAAAAA1sb2NraW5nUGVyaW9kAgAAAAxfRG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kBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGdXNlcklkBQAAAA11TG9ja2VkQW1vdW50CQABmwAAAAEFAAAABnVBc3NldAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAtJA5nQ==", "height": 2078616, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2AU4Rwgs4sej2TLbX8aZm1BxKEYCH1UYZYbqYj8qY834 Next: D1gwHYRHnoNMTF1P8UQ6x9MQHDjz4SBb5TGqJkwvWrAb Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = this | |
5 | 5 | ||
6 | 6 | let b = "_StakingStore" | |
7 | 7 | ||
8 | 8 | let c = "_MinLockAmount" | |
9 | 9 | ||
10 | 10 | let d = "_MaxLockAmount" | |
11 | 11 | ||
12 | 12 | let e = nil | |
13 | 13 | ||
14 | 14 | let f = "_Eligible_to_unlock_at_block" | |
15 | 15 | ||
16 | 16 | let g = "_Amount_locked" | |
17 | 17 | ||
18 | 18 | let h = "_Asset_locked" | |
19 | 19 | ||
20 | 20 | let i = "_User" | |
21 | 21 | ||
22 | 22 | let j = "_APY_amount" | |
23 | 23 | ||
24 | 24 | let k = "_Days_locked" | |
25 | 25 | ||
26 | 26 | let l = "admin_" | |
27 | 27 | ||
28 | 28 | let m = 1440 | |
29 | 29 | ||
30 | 30 | let n = 10000000000000000 | |
31 | 31 | ||
32 | 32 | let o = 1000 | |
33 | 33 | ||
34 | 34 | let p = 30 | |
35 | 35 | ||
36 | 36 | let q = 60 | |
37 | 37 | ||
38 | 38 | let r = 90 | |
39 | 39 | ||
40 | 40 | func s (t) = getInteger(this, t) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func u (t) = getString(this, t) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v (t) = value(getInteger(this, t)) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (t) = value(getString(this, t)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func x (y,z) = if (y) | |
53 | 53 | then throw(z) | |
54 | 54 | else true | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func A (B,z) = { | |
58 | 58 | let C = B | |
59 | 59 | if ($isInstanceOf(C, "Int")) | |
60 | 60 | then { | |
61 | 61 | let B = C | |
62 | 62 | B | |
63 | 63 | } | |
64 | 64 | else throw(z) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func D (B,z) = { | |
69 | 69 | let C = B | |
70 | 70 | if ($isInstanceOf(C, "String")) | |
71 | 71 | then { | |
72 | 72 | let B = C | |
73 | 73 | B | |
74 | 74 | } | |
75 | 75 | else throw(z) | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E (t,F) = if ((0 > F)) | |
80 | 80 | then throw(((("writing negative value " + toString(F)) + " for key ") + t)) | |
81 | 81 | else IntegerEntry(t, F) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func G (t,F) = if ((" " == F)) | |
85 | 85 | then throw(("writing an empty string " + F)) | |
86 | 86 | else StringEntry(t, F) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H (I) = if (if (if ((I != p)) | |
90 | 90 | then true | |
91 | 91 | else (I != q)) | |
92 | 92 | then true | |
93 | 93 | else (I != r)) | |
94 | 94 | then throw("invalid Lock Period") | |
95 | 95 | else (((I + 1) * m) + height) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func J (K) = if ((0 >= K)) | |
99 | 99 | then 0 | |
100 | 100 | else { | |
101 | 101 | let L = pow(10, 0, 3, 0, 0, CEILING) | |
102 | 102 | let M = fraction(K, L, m) | |
103 | 103 | M | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func N (t,F) = if (!(isDefined(u(t)))) | |
108 | 108 | then G(t, F) | |
109 | 109 | else throw(("already initialized: " + t)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func O (t,F) = if (!(isDefined(u(t)))) | |
113 | 113 | then E(t, F) | |
114 | 114 | else throw(("already initialized: " + t)) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func P (Q) = { | |
118 | 118 | let R = toString(Q.caller) | |
119 | 119 | let S = (l + toString(Q.caller)) | |
120 | 120 | if (if ((R != valueOrElse(u(l), "not an admin"))) | |
121 | 121 | then true | |
122 | 122 | else (R != valueOrElse(u(S), "not an admin"))) | |
123 | 123 | then throw("unauthorized") | |
124 | 124 | else true | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func T (t,U) = { | |
129 | 129 | let C = U | |
130 | 130 | if ($isInstanceOf(C, "String")) | |
131 | 131 | then { | |
132 | 132 | let U = C | |
133 | 133 | N(t, U) | |
134 | 134 | } | |
135 | 135 | else if ($isInstanceOf(C, "Int")) | |
136 | 136 | then { | |
137 | 137 | let U = C | |
138 | 138 | O(t, U) | |
139 | 139 | } | |
140 | 140 | else throw("unsupported config type") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(Q) | |
145 | 145 | func addAsset (V,W,X,Y,Z) = { | |
146 | 146 | let aa = P(Q) | |
147 | 147 | if ((aa == aa)) | |
148 | 148 | then { | |
149 | 149 | let ab = (V + b) | |
150 | 150 | let ac = (V + c) | |
151 | 151 | let ad = (V + d) | |
152 | 152 | [N(V, W), N(ab, X), O(ac, Y), O(ad, Z)] | |
153 | 153 | } | |
154 | 154 | else throw("Strict value is not equal to itself.") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(Q) | |
160 | 160 | func getAssetIdByTicker (V) = { | |
161 | 161 | let aa = P(Q) | |
162 | 162 | if ((aa == aa)) | |
163 | 163 | then { | |
164 | 164 | let ae = D(u(V), "asset not found") | |
165 | 165 | $Tuple2(nil, ae) | |
166 | 166 | } | |
167 | 167 | else throw("Strict value is not equal to itself.") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(Q) | |
173 | 173 | func init (R) = [N(l, toString(addressFromStringValue(R)))] | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(Q) | |
178 | 178 | func addAdmin (R) = { | |
179 | 179 | let aa = P(Q) | |
180 | 180 | if ((aa == aa)) | |
181 | 181 | then { | |
182 | 182 | let af = (l + R) | |
183 | 183 | [N(af, R)] | |
184 | 184 | } | |
185 | 185 | else throw("Strict value is not equal to itself.") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(Q) | |
191 | 191 | func changeMainAdmin (ag) = { | |
192 | 192 | let ah = P(Q) | |
193 | 193 | if ((ah == ah)) | |
194 | 194 | then { | |
195 | 195 | let ai = DeleteEntry(l) | |
196 | 196 | if ((ai == ai)) | |
197 | 197 | then [N(l, ag)] | |
198 | 198 | else throw("Strict value is not equal to itself.") | |
199 | 199 | } | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(Q) | |
206 | 206 | func updateOtherAdminAddress (ag) = { | |
207 | 207 | let ah = P(Q) | |
208 | 208 | if ((ah == ah)) | |
209 | 209 | then { | |
210 | 210 | let aj = toString(Q.caller) | |
211 | 211 | let ak = (l + aj) | |
212 | 212 | let al = D(u(ak), "no previous address found") | |
213 | 213 | if ((al == al)) | |
214 | 214 | then { | |
215 | 215 | let am = DeleteEntry(ak) | |
216 | 216 | if ((am == am)) | |
217 | 217 | then [N(ak, ag)] | |
218 | 218 | else throw("Strict value is not equal to itself.") | |
219 | 219 | } | |
220 | 220 | else throw("Strict value is not equal to itself.") | |
221 | 221 | } | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(Q) | |
228 | 228 | func removeOtherAdmin (ag) = { | |
229 | 229 | let ah = P(Q) | |
230 | 230 | if ((ah == ah)) | |
231 | 231 | then { | |
232 | 232 | let an = (l + ag) | |
233 | 233 | let ao = DeleteEntry(an) | |
234 | 234 | if ((ao == ao)) | |
235 | 235 | then nil | |
236 | 236 | else throw("Strict value is not equal to itself.") | |
237 | 237 | } | |
238 | 238 | else throw("Strict value is not equal to itself.") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(Q) | |
244 | 244 | func updateConfigValue (t,U) = { | |
245 | 245 | let ah = P(Q) | |
246 | 246 | if ((ah == ah)) | |
247 | 247 | then { | |
248 | 248 | let ai = DeleteEntry(t) | |
249 | 249 | if ((ai == ai)) | |
250 | 250 | then [T(t, U)] | |
251 | 251 | else throw("Strict value is not equal to itself.") | |
252 | 252 | } | |
253 | 253 | else throw("Strict value is not equal to itself.") | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(Q) | |
259 | 259 | func Lock (ap,V,aq) = { | |
260 | 260 | let ar = x((1 != size(Q.payments)), "Attach amount you want to lock") | |
261 | 261 | if ((ar == ar)) | |
262 | 262 | then { | |
263 | 263 | let as = toBase58String(value(Q.payments[0].assetId)) | |
264 | 264 | let at = x((u(V) != as), "Asset not supported") | |
265 | 265 | if ((at == at)) | |
266 | 266 | then { | |
267 | 267 | let au = ap | |
268 | 268 | let av = toString(Q.caller) | |
269 | 269 | let aw = Q.payments[0].amount | |
270 | 270 | let ax = A(s((V + c)), "internal error: minimum stacking amount not specified") | |
271 | 271 | let ay = A(s((V + d)), "internal error: maximum staking amount not specified") | |
272 | 272 | let az = x(if ((ax > aw)) | |
273 | 273 | then true | |
274 | 274 | else (aw > ay), "staking amount is out of range") | |
275 | 275 | if ((az == az)) | |
276 | 276 | then { | |
277 | 277 | let aA = (av + i) | |
278 | 278 | let aB = (av + h) | |
279 | 279 | let aC = (av + k) | |
280 | 280 | let aD = (av + g) | |
281 | 281 | let aE = (av + j) | |
282 | 282 | let aF = (av + f) | |
283 | 283 | [G(aA, av), G(aB, as), E(aC, au), E(aD, Q.payments[0].amount), E(aF, H(ap)), E(aE, aq)] | |
284 | 284 | } | |
285 | 285 | else throw("Strict value is not equal to itself.") | |
286 | 286 | } | |
287 | 287 | else throw("Strict value is not equal to itself.") | |
288 | 288 | } | |
289 | 289 | else throw("Strict value is not equal to itself.") | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(Q) | |
295 | 295 | func Claim (V) = { | |
296 | 296 | let av = toString(Q.caller) | |
297 | 297 | let aB = D(u((av + h)), ("there are no locked tokens for " + av)) | |
298 | 298 | let aD = A(s((av + g)), "internal error: could not retrieve locked amount") | |
299 | 299 | let aG = addressFromStringValue(D(u((V + b)), "internal error: staking store not found for asset")) | |
300 | 300 | let aH = A(s((av + j)), "internal error: failed to get APY") | |
301 | 301 | let aI = A(s((av + f)), "internal error: could not determine claim eligibility") | |
302 | 302 | let K = if ((0 >= (aI - height))) | |
303 | 303 | then 0 | |
304 | 304 | else (aI - height) | |
305 | 305 | let aJ = J(K) | |
306 | 306 | let ar = x((aI > height), (toString(aJ) + " days left to claim")) | |
307 | 307 | if ((ar == ar)) | |
308 | 308 | then { | |
309 | 309 | let aK = invoke(aG, "transferInterest", [av, aH, toBytes(aB)], nil) | |
310 | 310 | if ((aK == aK)) | |
311 | 311 | then [ScriptTransfer(addressFromStringValue(av), aD, toBytes(aB))] | |
312 | 312 | else throw("Strict value is not equal to itself.") | |
313 | 313 | } | |
314 | 314 | else throw("Strict value is not equal to itself.") | |
315 | 315 | } | |
316 | 316 | ||
317 | 317 |
github/deemru/w8io/026f985 35.84 ms ◑