tx · 83rrYT3m2RtbbcvcoNRpRfxW23gZamgXrWz5iLxXbiNk

3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu:  -0.01700000 Waves

2022.06.09 11:43 [2088606] smart account 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu > SELF 0.00000000 Waves

{ "type": 13, "id": "83rrYT3m2RtbbcvcoNRpRfxW23gZamgXrWz5iLxXbiNk", "fee": 1700000, "feeAssetId": null, "timestamp": 1654764183672, "version": 1, "sender": "3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu", "senderPublicKey": "668WwQVaWxezbvLEK3FccCSTbjst4zYAJDPrfLFRj9b9", "proofs": [ "QfXoijFSZNrF6f1HmroyftWcupTsPsG5eK288w6U1UCYcYixXLYikeMLUwb2ffQ8GUayLQsXtVLDkCEobeuLLed" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgASABIFCgMICAgSCQoHCAgICAEIARIAEgQKAggIEgMKAQgSAAAAABcAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAACGNvbnRyYWN0AgAAAA9scF9zdGFraW5nX3YyOiABAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAACQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAAQbWFuYWdlclB1YmxpY0tleQUAAAADbmlsBQAAAANTRVABAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAF3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUAEAAAAGa2V5VFZMAAAAAQAAAAdhc3NldElkCQAEuQAAAAIJAARMAAAAAgIAAAAEJXMlcwkABEwAAAACAgAAAAN0dmwJAARMAAAAAgUAAAAHYXNzZXRJZAUAAAADbmlsBQAAAANTRVABAAAADWtleVRWTEhpc3RvcnkAAAACAAAAB2Fzc2V0SWQAAAAGaGVpZ2h0CQAEuQAAAA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AAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXluEqvv", "chainId": 84, "height": 2088606, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3UKHsdkxXxJbHrvg2UYRqUCd8wu4443LsRP1Fh1mUDjK Next: Er2dBrBRRNEbQv8FtrU9wtyXaeZjJtnJKbeRcHXZRFpJ Diff:
OldNewDifferences
187187 then true
188188 else A("no corresponding withdrawal request")]
189189 if ((M == M))
190- then {
191- let T = valueOrElse(getInteger(k(g)), 0)
192-[ScriptTransfer(addressFromStringValue(s), V, fromBase58String(g)), DeleteEntry(r(g, s, W)), IntegerEntry(k(g), (T - V))]
193- }
190+ then [ScriptTransfer(addressFromStringValue(s), V, fromBase58String(g)), DeleteEntry(r(g, s, W))]
194191 else throw("Strict value is not equal to itself.")
195192 }
196193
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = ""
77
88 let c = "lp_staking_v2: "
99
1010 func d () = makeString(["%s", "managerPublicKey"], a)
1111
1212
1313 func e () = makeString(["%s", "pendingManagerPublicKey"], a)
1414
1515
1616 func f (g) = makeString(["%s%s", "tvl", g], a)
1717
1818
1919 func h (g,i) = makeString(["%s%s%d", "tvlHistory", g, toString(i)], a)
2020
2121
2222 func j (g,i) = makeString(["%s%s%d", "topUpHistory", g, toString(i)], a)
2323
2424
2525 func k (g) = makeString(["%s%s", "pendingWithdrawals", g], a)
2626
2727
2828 func l (g) = makeString(["%s%s", "delayInBlocks", g], a)
2929
3030
3131 func m (g) = makeString(["%s%s", "created", g], a)
3232
3333
3434 func n (g) = makeString(["%s%s", "assetIdToLPId", g], a)
3535
3636
3737 func o (p) = makeString(["%s%s", "lpIdToAssetId", p], a)
3838
3939
4040 func q (g) = makeString(["%s%s", "proxyAddress", g], a)
4141
4242
4343 func r (g,s,t) = makeString(["%s%s%s%s", "userWithdrawalAmount", g, s, t], a)
4444
4545
4646 func u (g) = makeString(["%s%s", "otherChainAssetDecimals", g], a)
4747
4848
4949 func v () = makeString(["%s", "assetsStoreContract"], a)
5050
5151
5252 func w () = {
5353 let x = getString(d())
5454 if ($isInstanceOf(x, "String"))
5555 then {
5656 let y = x
5757 fromBase58String(y)
5858 }
5959 else if ($isInstanceOf(x, "Unit"))
6060 then unit
6161 else throw("Match error")
6262 }
6363
6464
6565 func z () = {
6666 let x = getString(e())
6767 if ($isInstanceOf(x, "String"))
6868 then {
6969 let y = x
7070 fromBase58String(y)
7171 }
7272 else if ($isInstanceOf(x, "Unit"))
7373 then unit
7474 else throw("Match error")
7575 }
7676
7777
7878 func A (B) = throw((c + B))
7979
8080
8181 func C (D) = {
8282 let E = A("permission denied")
8383 let x = w()
8484 if ($isInstanceOf(x, "ByteVector"))
8585 then {
8686 let F = x
8787 if ((D.callerPublicKey == F))
8888 then true
8989 else E
9090 }
9191 else if ($isInstanceOf(x, "Unit"))
9292 then if ((D.caller == this))
9393 then true
9494 else E
9595 else throw("Match error")
9696 }
9797
9898
9999 func G () = addressFromStringValue(value(getString(v())))
100100
101101
102102 func H (D,g) = {
103103 let I = (toString(D.caller) == valueOrElse(getString(q(g)), b))
104104 if (I)
105105 then true
106106 else {
107107 let J = C(D)
108108 if ((J == J))
109109 then true
110110 else throw("Strict value is not equal to itself.")
111111 }
112112 }
113113
114114
115115 @Callable(D)
116116 func constructor (G) = {
117117 let J = C(D)
118118 if ((J == J))
119119 then [StringEntry(v(), G)]
120120 else throw("Strict value is not equal to itself.")
121121 }
122122
123123
124124
125125 @Callable(D)
126126 func put () = {
127127 let K = value(D.payments[0])
128128 let L = value(K.assetId)
129129 let g = toBase58String(L)
130130 let M = [if ((size(D.payments) == 1))
131131 then true
132132 else A("only one payment must be attached"), if (valueOrElse(getBoolean(m(g)), false))
133133 then true
134134 else A("attached payment asset must be registered in the contract"), if ((K.amount > 0))
135135 then true
136136 else A("positive amount required")]
137137 if ((M == M))
138138 then {
139139 let N = valueOrElse(getInteger(f(g)), 0)
140140 let p = value(getString(n(g)))
141141 let O = value(assetInfo(fromBase58String(g)))
142142 let P = if ((N > 0))
143143 then ((K.amount * O.quantity) / N)
144144 else K.amount
145145 [Reissue(O.id, P, true), ScriptTransfer(D.caller, P, O.id)]
146146 }
147147 else throw("Strict value is not equal to itself.")
148148 }
149149
150150
151151
152152 @Callable(D)
153153 func submitGetRequest () = {
154154 let K = value(D.payments[0])
155155 let Q = value(K.assetId)
156156 let p = toBase58String(Q)
157157 let s = toString(D.caller)
158158 let R = value(getString(o(p)))
159159 let S = K.amount
160160 let M = [if ((size(D.payments) == 1))
161161 then true
162162 else A("only one payment must be attached"), if (valueOrElse(getBoolean(m(R)), false))
163163 then true
164164 else A("attached payment asset must be registered in the contract"), if ((S > 0))
165165 then true
166166 else A("positive amount to withdrawal required")]
167167 if ((M == M))
168168 then {
169169 let T = valueOrElse(getInteger(k(R)), 0)
170170 let N = valueOrElse(getInteger(f(R)), 0)
171171 let O = value(assetInfo(Q))
172172 let U = O.decimals
173173 let V = ((S * N) / O.quantity)
174174 [Burn(Q, S), IntegerEntry(k(R), (T + V)), IntegerEntry(r(R, s, toBase58String(D.transactionId)), V)]
175175 }
176176 else throw("Strict value is not equal to itself.")
177177 }
178178
179179
180180
181181 @Callable(D)
182182 func executeGetRequest (g,s,W) = {
183183 let V = valueOrElse(getInteger(r(g, s, W)), 0)
184184 let M = [if (valueOrElse(getBoolean(m(g)), false))
185185 then true
186186 else A("asset must be registered in the contract"), if ((V > 0))
187187 then true
188188 else A("no corresponding withdrawal request")]
189189 if ((M == M))
190- then {
191- let T = valueOrElse(getInteger(k(g)), 0)
192-[ScriptTransfer(addressFromStringValue(s), V, fromBase58String(g)), DeleteEntry(r(g, s, W)), IntegerEntry(k(g), (T - V))]
193- }
190+ then [ScriptTransfer(addressFromStringValue(s), V, fromBase58String(g)), DeleteEntry(r(g, s, W))]
194191 else throw("Strict value is not equal to itself.")
195192 }
196193
197194
198195
199196 @Callable(D)
200197 func registerAsset (g,X,Y,Z,aa,ab,ac) = {
201198 let M = [C(D), if ((aa >= 0))
202199 then true
203200 else A("invalid delayInBlocks"), if ((addressFromString(ab) != unit))
204201 then true
205202 else A("invalid proxyAddress"), if ((valueOrElse(getBoolean(m(g)), false) == false))
206203 then true
207204 else A("asset already registered")]
208205 if ((M == M))
209206 then {
210207 let U = value(assetInfo(fromBase58String(g))).decimals
211208 let ad = Issue(X, Y, 1, U, true)
212209 let Q = calculateAssetId(ad)
213210 let p = toBase58String(Q)
214211 let ae = invoke(G(), "createOrUpdate", [p, Z, false], nil)
215212 if ((ae == ae))
216213 then {
217214 let af = invoke(G(), "addLabel", [p, "DEFI"], nil)
218215 if ((af == af))
219216 then [BooleanEntry(m(g), true), IntegerEntry(f(g), 0), IntegerEntry(h(g, height), 0), IntegerEntry(l(g), aa), StringEntry(o(p), g), StringEntry(n(g), p), StringEntry(q(g), ab), IntegerEntry(u(g), ac), ad, Burn(Q, 1)]
220217 else throw("Strict value is not equal to itself.")
221218 }
222219 else throw("Strict value is not equal to itself.")
223220 }
224221 else throw("Strict value is not equal to itself.")
225222 }
226223
227224
228225
229226 @Callable(D)
230227 func topUpBalance () = {
231228 let K = valueOrErrorMessage(D.payments[0], (c + "payment must be attached"))
232229 let g = toBase58String(value(K.assetId))
233230 let ag = K.amount
234231 let T = valueOrElse(getInteger(k(g)), 0)
235232 let M = [H(D, g), if ((size(D.payments) == 1))
236233 then true
237234 else A("only one payment must be attached"), if (valueOrElse(getBoolean(m(g)), false))
238235 then true
239236 else A("attached payment asset must be registered in the contract"), if ((T != 0))
240237 then true
241238 else A("zero pendingWithdrawals, nothing to top up"), if ((T >= ag))
242239 then true
243240 else A("amount to top up must be less or equal than pendingWithdrawals"), if ((getInteger(j(g, height)) == unit))
244241 then true
245242 else A("already have topUp in current block, wait for next block")]
246243 if ((M == M))
247244 then [IntegerEntry(k(g), (T - ag)), IntegerEntry(j(g, height), ag)]
248245 else throw("Strict value is not equal to itself.")
249246 }
250247
251248
252249
253250 @Callable(D)
254251 func setTVL (g,ah) = {
255252 let M = [H(D, g), if (valueOrElse(getBoolean(m(g)), false))
256253 then true
257254 else A("asset must be registered in the contract"), if ((getInteger(h(g, height)) == unit))
258255 then true
259256 else A("already have setTVL in current block, wait for next block")]
260257 if ((M == M))
261258 then {
262259 let ai = parseBigIntValue(ah)
263260 let aj = parseBigIntValue("10")
264261 let ak = value(assetInfo(fromBase58String(g))).decimals
265262 let ac = value(getInteger(u(g)))
266263 let al = if ((ac > ak))
267264 then {
268265 let am = parseBigIntValue(toString((ac - ak)))
269266 (ai / pow(aj, 0, am, 0, 0, DOWN))
270267 }
271268 else if ((ak > ac))
272269 then {
273270 let am = parseBigIntValue(toString((ak - ac)))
274271 (ai * pow(aj, 0, am, 0, 0, DOWN))
275272 }
276273 else ai
277274 let an = toInt(al)
278275 [IntegerEntry(f(g), an), IntegerEntry(h(g, height), an)]
279276 }
280277 else throw("Strict value is not equal to itself.")
281278 }
282279
283280
284281
285282 @Callable(D)
286283 func setManager (ao) = {
287284 let J = C(D)
288285 if ((J == J))
289286 then {
290287 let ap = fromBase58String(ao)
291288 if ((ap == ap))
292289 then [StringEntry(e(), ao)]
293290 else throw("Strict value is not equal to itself.")
294291 }
295292 else throw("Strict value is not equal to itself.")
296293 }
297294
298295
299296
300297 @Callable(D)
301298 func confirmManager () = {
302299 let aq = z()
303300 let ar = if (isDefined(aq))
304301 then true
305302 else A("no pending manager")
306303 if ((ar == ar))
307304 then {
308305 let as = if ((D.callerPublicKey == value(aq)))
309306 then true
310307 else A("you are not pending manager")
311308 if ((as == as))
312309 then [StringEntry(d(), toBase58String(value(aq))), DeleteEntry(e())]
313310 else throw("Strict value is not equal to itself.")
314311 }
315312 else throw("Strict value is not equal to itself.")
316313 }
317314
318315
319316 @Verifier(at)
320317 func au () = {
321318 let av = {
322319 let x = w()
323320 if ($isInstanceOf(x, "ByteVector"))
324321 then {
325322 let F = x
326323 F
327324 }
328325 else if ($isInstanceOf(x, "Unit"))
329326 then at.senderPublicKey
330327 else throw("Match error")
331328 }
332329 sigVerify(at.bodyBytes, at.proofs[0], av)
333330 }
334331

github/deemru/w8io/026f985 
38.14 ms