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:AAIFAAAAAAAAADsIAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICRIFCgMBCAESAwoBCAAAACEAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAA1fU3Rha2luZ1N0b3JlAAAAABFtaW5pbXVtTG9ja0Ftb3VudAIAAAAOX01pbkxvY2tBbW91bnQAAAAAEW1heGltdW1Mb2NrQW1vdW50AgAAAA5fTWF4TG9ja0Ftb3VudAAAAAAJYXNzZXRMaXN0BQAAAANuaWwAAAAAEXVubG9ja0VsaWdpYmlsaXR5AgAAABxfRWxpZ2libGVfdG9fdW5sb2NrX2F0X2Jsb2NrAAAAAAxsb2NrZWRBbW91bnQCAAAADl9BbW91bnRfbG9ja2VkAAAAAAtsb2NrZWRBc3NldAIAAAANX0Fzc2V0X2xvY2tlZAAAAAAEdXNlcgIAAAAFX1VzZXIAAAAACkFQWV9BbW91bnQCAAAAC19BUFlfYW1vdW50AAAAAA1sb2NraW5nUGVyaW9kAgAAAAxfR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gkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGdXNlcklkBQAAAA11TG9ja2VkQW1vdW50CQABmwAAAAEFAAAABnVBc3NldAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAtJA5nQ==", "height": 2078616, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2AU4Rwgs4sej2TLbX8aZm1BxKEYCH1UYZYbqYj8qY834 Next: D1gwHYRHnoNMTF1P8UQ6x9MQHDjz4SBb5TGqJkwvWrAb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = this
55
66 let b = "_StakingStore"
77
88 let c = "_MinLockAmount"
99
1010 let d = "_MaxLockAmount"
1111
1212 let e = nil
1313
1414 let f = "_Eligible_to_unlock_at_block"
1515
1616 let g = "_Amount_locked"
1717
1818 let h = "_Asset_locked"
1919
2020 let i = "_User"
2121
2222 let j = "_APY_amount"
2323
2424 let k = "_Days_locked"
2525
2626 let l = "admin_"
2727
2828 let m = 1440
2929
3030 let n = 10000000000000000
3131
3232 let o = 1000
3333
3434 let p = 30
3535
3636 let q = 60
3737
3838 let r = 90
3939
4040 func s (t) = getInteger(this, t)
4141
4242
4343 func u (t) = getString(this, t)
4444
4545
4646 func v (t) = value(getInteger(this, t))
4747
4848
4949 func w (t) = value(getString(this, t))
5050
5151
5252 func x (y,z) = if (y)
5353 then throw(z)
5454 else true
5555
5656
5757 func A (B,z) = {
5858 let C = B
5959 if ($isInstanceOf(C, "Int"))
6060 then {
6161 let B = C
6262 B
6363 }
6464 else throw(z)
6565 }
6666
6767
6868 func D (B,z) = {
6969 let C = B
7070 if ($isInstanceOf(C, "String"))
7171 then {
7272 let B = C
7373 B
7474 }
7575 else throw(z)
7676 }
7777
7878
7979 func E (t,F) = if ((0 > F))
8080 then throw(((("writing negative value " + toString(F)) + " for key ") + t))
8181 else IntegerEntry(t, F)
8282
8383
8484 func G (t,F) = if ((" " == F))
8585 then throw(("writing an empty string " + F))
8686 else StringEntry(t, F)
8787
8888
8989 func H (I) = if (if (if ((I != p))
9090 then true
9191 else (I != q))
9292 then true
9393 else (I != r))
9494 then throw("invalid Lock Period")
9595 else (((I + 1) * m) + height)
9696
9797
9898 func J (K) = if ((0 >= K))
9999 then 0
100100 else {
101101 let L = pow(10, 0, 3, 0, 0, CEILING)
102102 let M = fraction(K, L, m)
103103 M
104104 }
105105
106106
107107 func N (t,F) = if (!(isDefined(u(t))))
108108 then G(t, F)
109109 else throw(("already initialized: " + t))
110110
111111
112112 func O (t,F) = if (!(isDefined(u(t))))
113113 then E(t, F)
114114 else throw(("already initialized: " + t))
115115
116116
117117 func P (Q) = {
118118 let R = toString(Q.caller)
119119 let S = (l + toString(Q.caller))
120120 if (if ((R != valueOrElse(u(l), "not an admin")))
121121 then true
122122 else (R != valueOrElse(u(S), "not an admin")))
123123 then throw("unauthorized")
124124 else true
125125 }
126126
127127
128128 func T (t,U) = {
129129 let C = U
130130 if ($isInstanceOf(C, "String"))
131131 then {
132132 let U = C
133133 N(t, U)
134134 }
135135 else if ($isInstanceOf(C, "Int"))
136136 then {
137137 let U = C
138138 O(t, U)
139139 }
140140 else throw("unsupported config type")
141141 }
142142
143143
144144 @Callable(Q)
145145 func addAsset (V,W,X,Y,Z) = {
146146 let aa = P(Q)
147147 if ((aa == aa))
148148 then {
149149 let ab = (V + b)
150150 let ac = (V + c)
151151 let ad = (V + d)
152152 [N(V, W), N(ab, X), O(ac, Y), O(ad, Z)]
153153 }
154154 else throw("Strict value is not equal to itself.")
155155 }
156156
157157
158158
159159 @Callable(Q)
160160 func getAssetIdByTicker (V) = {
161161 let aa = P(Q)
162162 if ((aa == aa))
163163 then {
164164 let ae = D(u(V), "asset not found")
165165 $Tuple2(nil, ae)
166166 }
167167 else throw("Strict value is not equal to itself.")
168168 }
169169
170170
171171
172172 @Callable(Q)
173173 func init (R) = [N(l, toString(addressFromStringValue(R)))]
174174
175175
176176
177177 @Callable(Q)
178178 func addAdmin (R) = {
179179 let aa = P(Q)
180180 if ((aa == aa))
181181 then {
182182 let af = (l + R)
183183 [N(af, R)]
184184 }
185185 else throw("Strict value is not equal to itself.")
186186 }
187187
188188
189189
190190 @Callable(Q)
191191 func changeMainAdmin (ag) = {
192192 let ah = P(Q)
193193 if ((ah == ah))
194194 then {
195195 let ai = DeleteEntry(l)
196196 if ((ai == ai))
197197 then [N(l, ag)]
198198 else throw("Strict value is not equal to itself.")
199199 }
200200 else throw("Strict value is not equal to itself.")
201201 }
202202
203203
204204
205205 @Callable(Q)
206206 func updateOtherAdminAddress (ag) = {
207207 let ah = P(Q)
208208 if ((ah == ah))
209209 then {
210210 let aj = toString(Q.caller)
211211 let ak = (l + aj)
212212 let al = D(u(ak), "no previous address found")
213213 if ((al == al))
214214 then {
215215 let am = DeleteEntry(ak)
216216 if ((am == am))
217217 then [N(ak, ag)]
218218 else throw("Strict value is not equal to itself.")
219219 }
220220 else throw("Strict value is not equal to itself.")
221221 }
222222 else throw("Strict value is not equal to itself.")
223223 }
224224
225225
226226
227227 @Callable(Q)
228228 func removeOtherAdmin (ag) = {
229229 let ah = P(Q)
230230 if ((ah == ah))
231231 then {
232232 let an = (l + ag)
233233 let ao = DeleteEntry(an)
234234 if ((ao == ao))
235235 then nil
236236 else throw("Strict value is not equal to itself.")
237237 }
238238 else throw("Strict value is not equal to itself.")
239239 }
240240
241241
242242
243243 @Callable(Q)
244244 func updateConfigValue (t,U) = {
245245 let ah = P(Q)
246246 if ((ah == ah))
247247 then {
248248 let ai = DeleteEntry(t)
249249 if ((ai == ai))
250250 then [T(t, U)]
251251 else throw("Strict value is not equal to itself.")
252252 }
253253 else throw("Strict value is not equal to itself.")
254254 }
255255
256256
257257
258258 @Callable(Q)
259259 func Lock (ap,V,aq) = {
260260 let ar = x((1 != size(Q.payments)), "Attach amount you want to lock")
261261 if ((ar == ar))
262262 then {
263263 let as = toBase58String(value(Q.payments[0].assetId))
264264 let at = x((u(V) != as), "Asset not supported")
265265 if ((at == at))
266266 then {
267267 let au = ap
268268 let av = toString(Q.caller)
269269 let aw = Q.payments[0].amount
270270 let ax = A(s((V + c)), "internal error: minimum stacking amount not specified")
271271 let ay = A(s((V + d)), "internal error: maximum staking amount not specified")
272272 let az = x(if ((ax > aw))
273273 then true
274274 else (aw > ay), "staking amount is out of range")
275275 if ((az == az))
276276 then {
277277 let aA = (av + i)
278278 let aB = (av + h)
279279 let aC = (av + k)
280280 let aD = (av + g)
281281 let aE = (av + j)
282282 let aF = (av + f)
283283 [G(aA, av), G(aB, as), E(aC, au), E(aD, Q.payments[0].amount), E(aF, H(ap)), E(aE, aq)]
284284 }
285285 else throw("Strict value is not equal to itself.")
286286 }
287287 else throw("Strict value is not equal to itself.")
288288 }
289289 else throw("Strict value is not equal to itself.")
290290 }
291291
292292
293293
294294 @Callable(Q)
295295 func Claim (V) = {
296296 let av = toString(Q.caller)
297297 let aB = D(u((av + h)), ("there are no locked tokens for " + av))
298298 let aD = A(s((av + g)), "internal error: could not retrieve locked amount")
299299 let aG = addressFromStringValue(D(u((V + b)), "internal error: staking store not found for asset"))
300300 let aH = A(s((av + j)), "internal error: failed to get APY")
301301 let aI = A(s((av + f)), "internal error: could not determine claim eligibility")
302302 let K = if ((0 >= (aI - height)))
303303 then 0
304304 else (aI - height)
305305 let aJ = J(K)
306306 let ar = x((aI > height), (toString(aJ) + " days left to claim"))
307307 if ((ar == ar))
308308 then {
309309 let aK = invoke(aG, "transferInterest", [av, aH, toBytes(aB)], nil)
310310 if ((aK == aK))
311311 then [ScriptTransfer(addressFromStringValue(av), aD, toBytes(aB))]
312312 else throw("Strict value is not equal to itself.")
313313 }
314314 else throw("Strict value is not equal to itself.")
315315 }
316316
317317

github/deemru/w8io/026f985 
35.84 ms