tx · 8TxLWrWRvX18P347dc4dKx3hi3pCtj1KP9ciiwtqSppK

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.01100000 Waves

2023.03.24 20:34 [2504405] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "8TxLWrWRvX18P347dc4dKx3hi3pCtj1KP9ciiwtqSppK", "fee": 1100000, "feeAssetId": null, "timestamp": 1679679272028, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4TQDEoHCz4hmzByV6nDPsnND23eCrUq6DsKwax4r2xrnuWnfdiUS9qqwtBPfTQsVaJS9xHCxFsVm4fpLLKEGxtUT" ], "script": "base64:BgIeCAISBwoFCAEIAQESAwoBCBIDCgEIEgcKBQgIAQEBJgALU0ZfUE9TX1RZUEUCAlNGAAtXWF9QT1NfVFlQRQICV1gABlNDQUxFOACAwtcvAApGRUVfU0NBTEU2AMCEPQAUa1NGUG9vbEFBc3NldEJhbGFuY2UCD0FfYXNzZXRfYmFsYW5jZQAUa1NGUG9vbEJBc3NldEJhbGFuY2UCD0JfYXNzZXRfYmFsYW5jZQAPa1NGUG9vbEFBc3NldElkAgpBX2Fzc2V0X2lkAA9rU0ZQb29sQkFzc2V0SWQCCkJfYXNzZXRfaWQADmtTRlBvb2xTaGFyZUlkAg5zaGFyZV9hc3NldF9pZAAOa1NGUG9vbFZlcnNpb24CB3ZlcnNpb24AEGtTRkZhcm1pbmdTdGFrZWQCFF9zaGFyZV90b2tlbnNfbG9ja2VkAA1rVXNlclBvc2l0aW9uAg5fdXNlcl9wb3NpdGlvbgARa1VzZXJQb3NpdGlvblR5cGUCE191c2VyX3Bvc2l0aW9uX3R5cGUAEGtVc2VyUG9zaXRpb25OdW0CFV91c2VyX3Bvc2l0aW9uX251b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JZAUKa1JlcXVlc3RJZAUGcGFyYW1zBQNuaWwFDG5ld1JlcXVlc3RJZAFpAQtpbml0TmV3UG9vbAUEdHlwZQhwb29sQWRkcgtpbkZlZU5vTG9hbglpbkZlZUxvYW4GY2FwRmVlAwMJAQIhPQIFBHR5cGUFC1NGX1BPU19UWVBFCQECIT0CBQR0eXBlBQtXWF9QT1NfVFlQRQcJAAIBAgpXcm9uZyB0eXBlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBRVrQXhseUluRmVlV2l0aG91dExvYW4FC2luRmVlTm9Mb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBRJrQXhseUluRmVlV2l0aExvYW4FC2luRmVlTm9Mb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBQtrQXhseUNhcEZlZQUGY2FwRmVlCQDMCAIJAQtTdHJpbmdFbnRyeQIFBWtQb29sBQR0eXBlBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5W9xiMQ==", "height": 2504405, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ary5AQ2rFWpkDw3FAZPVhYBtFtkhA2wfkovPMfvzi8Yz Next: 3TtxvoLvKwh4DMLmb5TWXLMXZVNATxU8Fvx32hJHeLhd Diff:
OldNewDifferences
4747
4848 let w = "swopfi_farming_addr"
4949
50-let x = "lendServiceAddr"
50+let x = "lend_service_addr"
5151
5252 let y = Address(fromBase58String(valueOrErrorMessage(getString(this, v), "No axly moneyBox address")))
5353
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "SF"
55
66 let b = "WX"
77
88 let c = 100000000
99
1010 let d = 1000000
1111
1212 let e = "A_asset_balance"
1313
1414 let f = "B_asset_balance"
1515
1616 let g = "A_asset_id"
1717
1818 let h = "B_asset_id"
1919
2020 let i = "share_asset_id"
2121
2222 let j = "version"
2323
2424 let k = "_share_tokens_locked"
2525
2626 let l = "_user_position"
2727
2828 let m = "_user_position_type"
2929
3030 let n = "_user_position_number"
3131
3232 let o = "_total_position"
3333
3434 let p = "_axly_fee_without_loan"
3535
3636 let q = "_axly_fee_with_loan"
3737
3838 let r = "_axly_fee_cap"
3939
4040 let s = "_request_id"
4141
4242 let t = "requests_iter"
4343
4444 let u = "pool_"
4545
4646 let v = "axly_money_box"
4747
4848 let w = "swopfi_farming_addr"
4949
50-let x = "lendServiceAddr"
50+let x = "lend_service_addr"
5151
5252 let y = Address(fromBase58String(valueOrErrorMessage(getString(this, v), "No axly moneyBox address")))
5353
5454 func z (A) = if ((A.caller == this))
5555 then unit
5656 else throw("Only contract itself can call this function")
5757
5858
5959 func B (C) = {
6060 let D = C
6161 if ($isInstanceOf(D, "ByteVector"))
6262 then {
6363 let E = D
6464 assetBalance(this, E)
6565 }
6666 else if ($isInstanceOf(D, "Unit"))
6767 then {
6868 let F = D
6969 wavesBalance(this).available
7070 }
7171 else throw("Match error")
7272 }
7373
7474
7575 func G (H) = $Tuple5(valueOrErrorMessage(getString(H, g), "Can't get pool A asset id"), valueOrErrorMessage(getString(H, h), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(H, e), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(H, f), "Can't get pool B asset balance"), valueOrErrorMessage(getString(H, i), "Can't get share asset id"))
7676
7777
7878 func I (H) = $Tuple5(valueOrErrorMessage(getString(H, g), "Can't get pool A asset id"), valueOrErrorMessage(getString(H, h), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(H, e), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(H, f), "Can't get pool B asset balance"), valueOrErrorMessage(getString(H, i), "Can't get share asset id"))
7979
8080
8181 func J (K) = valueOrElse(getInteger(this, (K + o)), 0)
8282
8383
8484 func L (K,M) = (valueOrElse(getInteger(this, (((K + "_") + M) + n)), 0) + 1)
8585
8686
8787 func N (K,O) = if (O)
8888 then getIntegerValue(this, (K + q))
8989 else getIntegerValue(this, (K + p))
9090
9191
9292 func P () = Address(fromBase58String(valueOrErrorMessage(getString(this, w), "Can't get swopfi farming addr")))
9393
9494
9595 func Q () = Address(fromBase58String(valueOrErrorMessage(getString(this, x), "Can't get lend service addr")))
9696
9797
9898 func R (C) = {
9999 let D = C
100100 if ($isInstanceOf(D, "ByteVector"))
101101 then {
102102 let E = D
103103 toBase58String(E)
104104 }
105105 else if ($isInstanceOf(D, "Unit"))
106106 then {
107107 let F = D
108108 "WAVES"
109109 }
110110 else throw("Match error")
111111 }
112112
113113
114114 func S (C) = if ((C == "WAVES"))
115115 then unit
116116 else fromBase58String(C)
117117
118118
119119 func T (M,K,O,U,V,W,X,Y,Z,aa,ab,ac) = {
120120 let ad = B(fromBase58String(aa))
121121 let H = Address(fromBase58String(K))
122122 let ae = fraction(c, U, Y)
123123 let af = fraction(c, W, Z)
124124 let ag = if ((af > ae))
125125 then {
126126 let ah = fraction(Z, ae, c, CEILING)
127127 $Tuple4(U, ah, (W - ah), X)
128128 }
129129 else {
130130 let ah = fraction(Y, af, c, CEILING)
131131 $Tuple4(ah, W, (U - ah), V)
132132 }
133133 let ai = ag._1
134134 let aj = ag._2
135135 let ak = ag._3
136136 let al = ag._4
137137 let am = if (if ((ai > 0))
138138 then (aj > 0)
139139 else false)
140140 then {
141141 let an = [AttachedPayment(S(V), ai), AttachedPayment(S(X), aj)]
142142 invoke(H, "replenishWithTwoTokensV2", [false, 0], an)
143143 }
144144 else 0
145145 if ((am == am))
146146 then {
147147 let ao = if ((ak > 0))
148148 then {
149149 let an = [AttachedPayment(S(al), ak)]
150150 let ap = [ab, ac, false, 0]
151151 invoke(H, "replenishWithOneTokenV2", ap, an)
152152 }
153153 else 0
154154 if ((ao == ao))
155155 then {
156156 let aq = B(fromBase58String(aa))
157157 let ar = (aq - ad)
158158 let as = fraction(ar, (d - N(K, O)), d)
159159 let at = (ar - as)
160160 if ((0 >= at))
161161 then throw("amount of staked sharetokens must be > 0")
162162 else {
163163 let au = invoke(P(), "lockShareTokens", [K, 0], [AttachedPayment(fromBase58String(aa), at)])
164164 if ((au == au))
165165 then {
166166 let av = J(K)
167167 let aw = L(K, M)
168168 [IntegerEntry((K + o), (av + at)), IntegerEntry((((((K + "_") + M) + "_") + toString(aw)) + l), at), StringEntry((((((K + "_") + M) + "_") + toString(aw)) + m), a), IntegerEntry((((K + "_") + M) + n), aw), ScriptTransfer(y, as, fromBase58String(aa))]
169169 }
170170 else throw("Strict value is not equal to itself.")
171171 }
172172 }
173173 else throw("Strict value is not equal to itself.")
174174 }
175175 else throw("Strict value is not equal to itself.")
176176 }
177177
178178
179179 func ax (M,K,O,U,V,W,X,Y,Z,aa,ab,ac) = {
180180 let ad = B(fromBase58String(aa))
181181 let H = Address(fromBase58String(K))
182182 let ae = fraction(c, U, Y)
183183 let af = fraction(c, W, Z)
184184 let ay = if ((af > ae))
185185 then {
186186 let ah = fraction(Z, ae, c, CEILING)
187187 $Tuple4(U, ah, (W - ah), X)
188188 }
189189 else {
190190 let ah = fraction(Y, af, c, CEILING)
191191 $Tuple4(ah, W, (U - ah), V)
192192 }
193193 let ai = ay._1
194194 let aj = ay._2
195195 let ak = ay._3
196196 let al = ay._4
197197 let am = if (if ((ai > 0))
198198 then (aj > 0)
199199 else false)
200200 then {
201201 let an = [AttachedPayment(S(V), ai), AttachedPayment(S(X), aj)]
202202 invoke(H, "replenishWithTwoTokensV2", [false, 0], an)
203203 }
204204 else 0
205205 if ((am == am))
206206 then {
207207 let ao = if ((ak > 0))
208208 then {
209209 let an = [AttachedPayment(S(al), ak)]
210210 let ap = [ab, ac, false, 0]
211211 invoke(H, "replenishWithOneTokenV2", ap, an)
212212 }
213213 else 0
214214 if ((ao == ao))
215215 then {
216216 let aq = B(fromBase58String(aa))
217217 let ar = (aq - ad)
218218 let as = fraction(ar, (d - N(K, O)), d)
219219 let at = (ar - as)
220220 if ((0 >= at))
221221 then throw("amount of staked sharetokens must be > 0")
222222 else {
223223 let au = invoke(P(), "lockShareTokens", [K, 0], [AttachedPayment(fromBase58String(aa), at)])
224224 if ((au == au))
225225 then {
226226 let av = J(K)
227227 let aw = L(K, M)
228228 [IntegerEntry((K + o), (av + at)), IntegerEntry((((((K + "_") + M) + "_") + toString(aw)) + l), at), StringEntry((((((K + "_") + M) + "_") + toString(aw)) + m), a), IntegerEntry((((K + "_") + M) + n), aw), ScriptTransfer(y, as, fromBase58String(aa))]
229229 }
230230 else throw("Strict value is not equal to itself.")
231231 }
232232 }
233233 else throw("Strict value is not equal to itself.")
234234 }
235235 else throw("Strict value is not equal to itself.")
236236 }
237237
238238
239239 @Callable(A)
240240 func replanish (K,az,aA,ab,ac) = {
241241 let aB = valueOrErrorMessage(getString(this, (u + K)), "Pool is not inited")
242242 let aC = if ((aB == a))
243243 then G(Address(fromBase58String(K)))
244244 else if ((aB == b))
245245 then I(Address(fromBase58String(K)))
246246 else throw("Wrong pool type")
247247 let aD = aC._1
248248 let aE = aC._2
249249 let Y = aC._3
250250 let Z = aC._4
251251 let aa = aC._5
252252 let aF = if ((size(A.payments) == 2))
253253 then if ((R(A.payments[0].assetId) != aD))
254254 then throw("Wrong payment asset A")
255255 else if ((R(A.payments[1].assetId) != aE))
256256 then throw("Wrong payment asset B")
257257 else $Tuple4(A.payments[0].amount, aD, A.payments[1].amount, aE)
258258 else if ((size(A.payments) == 1))
259259 then if ((R(A.payments[0].assetId) == aD))
260260 then $Tuple4(A.payments[0].amount, aD, 0, aE)
261261 else if ((R(A.payments[0].assetId) == aE))
262262 then $Tuple4(0, aD, A.payments[0].amount, aE)
263263 else throw("Wrong payment")
264264 else throw("One or two payments expected")
265265 let U = aF._1
266266 let V = aF._2
267267 let W = aF._3
268268 let X = aF._4
269269 if ((az > 0))
270270 then {
271271 let aG = makeString([aB, toString(A.caller), K, toString(U), V, toString(W), X, toString(Y), toString(Z), aa, toString(ab), toString(ac)], ",")
272272 let aH = {
273273 let aI = invoke(this, "createNewRequest", [aG], nil)
274274 if ($isInstanceOf(aI, "Int"))
275275 then aI
276276 else unit
277277 }
278278 if ((aH == aH))
279279 then {
280280 let aJ = [toString(A.caller), aa, aA, az, toString(this), "replanishFromLand", toString(valueOrErrorMessage(aH, "Can't create new request"))]
281281 let aK = reentrantInvoke(Q(), "flashPosition", aJ, nil)
282282 nil
283283 }
284284 else throw("Strict value is not equal to itself.")
285285 }
286286 else if ((aB == a))
287287 then T(toString(A.caller), K, false, U, V, W, X, Y, Z, aa, ab, ac)
288288 else throw("Cant wx")
289289 }
290290
291291
292292
293293 @Callable(A)
294294 func replanishFromLand (aL) = {
295295 let aG = split(valueOrErrorMessage(getString(this, (aL + s)), ("No request with id " + aL)), ",")
296296 if ((aG[0] == a))
297297 then T(aG[1], aG[2], true, parseIntValue(aG[3]), aG[4], parseIntValue(aG[5]), aG[6], parseIntValue(aG[7]), parseIntValue(aG[8]), aG[9], parseIntValue(aG[10]), parseIntValue(aG[11]))
298298 else throw("Cant wx")
299299 }
300300
301301
302302
303303 @Callable(A)
304304 func createNewRequest (aM) = valueOrElse(z(A), {
305305 let aH = (valueOrElse(getInteger(this, t), 0) + 1)
306306 $Tuple2([StringEntry((toString(aH) + s), aM)], aH)
307307 })
308308
309309
310310
311311 @Callable(A)
312312 func initNewPool (aB,H,aN,aO,aP) = if (if ((aB != a))
313313 then (aB != b)
314314 else false)
315315 then throw("Wrong type")
316316 else [IntegerEntry((H + p), aN), IntegerEntry((H + q), aN), IntegerEntry((H + r), aP), StringEntry(u, aB)]
317317
318318
319319 @Verifier(aQ)
320320 func aR () = sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey)
321321

github/deemru/w8io/169f3d6 
52.95 ms