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