tx · CvYbWqgLQ9FqJyFAk6qVaywZnTpKcQwj9YfPt6vpmfpk

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.01000000 Waves

2023.03.24 21:45 [2504473] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "CvYbWqgLQ9FqJyFAk6qVaywZnTpKcQwj9YfPt6vpmfpk", "fee": 1000000, "feeAssetId": null, "timestamp": 1679683552128, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "2RE5eYLuoabBYnRAzvLgPoqeeKTtLYBxEq4YsrfcSHzjnyedbH4EWoYsuynmoePiEKjZJJFWU9mNAE9icwanFSuS" ], "script": "base64:BgIeCAISBwoFCAEIAQESAwoBCBIDCgEIEgcKBQgIAQEBJgALU0ZfUE9TX1RZUEUCAlNGAAtXWF9QT1NfVFlQRQICV1gABlNDQUxFOACAwtcvAApGRUVfU0NBTEU2AMCEPQAUa1NGUG9vbEFBc3NldEJhbGFuY2UCD0FfYXNzZXRfYmFsYW5jZQAUa1NGUG9vbEJBc3NldEJhbGFuY2UCD0JfYXNzZXRfYmFsYW5jZQAPa1NGUG9vbEFBc3NldElkAgpBX2Fzc2V0X2lkAA9rU0ZQb29sQkFzc2V0SWQCCkJfYXNzZXRfaWQADmtTRlBvb2xTaGFyZUlkAg5zaGFyZV9hc3NldF9pZAAOa1NGUG9vbFZlcnNpb24CB3ZlcnNpb24AEGtTRkZhcm1pbmdTdGFrZWQCFF9zaGFyZV90b2tlbnNfbG9ja2VkAA1rVXNlclBvc2l0aW9uAg5fdXNlcl9wb3NpdGlvbgARa1VzZXJQb3NpdGlvblR5cGUCE191c2VyX3Bvc2l0aW9uX3R5cGUAEGtVc2VyUG9zaXRpb25OdW0CFV91c2VyX3Bvc2l0aW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vYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFEmtBeGx5SW5GZWVXaXRoTG9hbgUJaW5GZWVMb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBQtrQXhseUNhcEZlZQUGY2FwRmVlCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUFa1Bvb2wFCHBvb2xBZGRyBQR0eXBlBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5vZWm6A==", "height": 2504473, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CbzQekGhsyRoKdFAMECTgJGFvbxHnbosbr9rhtrv9bPt Next: 46drfk4cqfd98yHBmxgEe9oJDMQ4by34r7Nw4bgQoGFp Diff:
OldNewDifferences
229229 let X = aF._4
230230 if ((az > 0))
231231 then {
232- let aG = makeString([aB, toString(A.caller), K, toString(U), V, toString(W), X, toString(Y), toString(Z), aa, toString(ab), toString(ac)], ",")
232+ let aG = makeString([aB, toString(A.caller), K, toString(U), V, toString(W), X, toString(Y), toString(Z), aa, toString(ab), toString(ac), aA, toString(az)], ",")
233233 let aH = {
234234 let aI = invoke(this, "createNewRequest", [aG], nil)
235235 if ($isInstanceOf(aI, "Int"))
254254 @Callable(A)
255255 func replanishFromLand (aL) = {
256256 let aG = split(valueOrErrorMessage(getString(this, (aL + s)), ("No request with id " + aL)), ",")
257- if ((aG[0] == a))
258- 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]))
259- else throw("Cant wx")
257+ if ((size(A.payments) != 1))
258+ then throw("Wrong payment size")
259+ else if (if ((R(A.payments[0].assetId) != aG[12]))
260+ then true
261+ else (A.payments[0].amount != parseIntValue(aG[13])))
262+ then throw("Wrong payment")
263+ else {
264+ let U = if ((aG[4] == R(A.payments[0].assetId)))
265+ then (parseIntValue(aG[3]) + A.payments[0].amount)
266+ else parseIntValue(aG[3])
267+ let W = if ((aG[6] == R(A.payments[0].assetId)))
268+ then (parseIntValue(aG[5]) + A.payments[0].amount)
269+ else parseIntValue(aG[3])
270+ if ((aG[0] == a))
271+ then (T(aG[1], aG[2], true, U, aG[4], W, aG[6], parseIntValue(aG[7]), parseIntValue(aG[8]), aG[9], parseIntValue(aG[10]), parseIntValue(aG[11])) :+ DeleteEntry((aL + s)))
272+ else throw("Cant wx")
273+ }
260274 }
261275
262276
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
5050 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 if ((ad == ad))
122122 then {
123123 let H = Address(fromBase58String(K))
124124 let ae = fraction(c, U, Y)
125125 let af = fraction(c, W, Z)
126126 let ag = if ((af > ae))
127127 then {
128128 let ah = fraction(Z, ae, c, CEILING)
129129 $Tuple4(U, ah, (W - ah), X)
130130 }
131131 else {
132132 let ah = fraction(Y, af, c, CEILING)
133133 $Tuple4(ah, W, (U - ah), V)
134134 }
135135 let ai = ag._1
136136 let aj = ag._2
137137 let ak = ag._3
138138 let al = ag._4
139139 let am = getStringValue(H, "version")
140140 let an = if (if ((ai > 0))
141141 then (aj > 0)
142142 else false)
143143 then {
144144 let ao = [AttachedPayment(S(V), ai), AttachedPayment(S(X), aj)]
145145 if ((am == "1.0.0"))
146146 then invoke(H, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], ao)
147147 else if ((am == "2.0.0"))
148148 then invoke(H, "replenishWithTwoTokensV2", [false, 0], ao)
149149 else throw("Wrong pool type")
150150 }
151151 else 0
152152 if ((an == an))
153153 then {
154154 let ap = if ((ak > 0))
155155 then {
156156 let ao = [AttachedPayment(S(al), ak)]
157157 if ((am == "1.0.0"))
158158 then {
159159 let aq = ["0", "false", "0"]
160160 invoke(H, "callFunction", ["replenishWithOneToken", aq], ao)
161161 }
162162 else if ((am == "2.0.0"))
163163 then {
164164 let aq = [ab, ac, false, 0]
165165 invoke(H, "replenishWithOneTokenV2", [false, 0], ao)
166166 }
167167 else throw("Wrong pool type")
168168 }
169169 else 0
170170 if ((ap == ap))
171171 then {
172172 let ar = B(fromBase58String(aa))
173173 let as = (ar - ad)
174174 let at = fraction(as, N(K, O), d)
175175 let au = (as - at)
176176 if ((0 >= au))
177177 then throw("amount of staked sharetokens must be > 0")
178178 else {
179179 let av = invoke(P(), "lockShareTokens", [K, 0], [AttachedPayment(fromBase58String(aa), au)])
180180 if ((av == av))
181181 then {
182182 let aw = J(K)
183183 let ax = L(K, M)
184184 [IntegerEntry((K + o), (aw + au)), IntegerEntry((((((K + "_") + M) + "_") + toString(ax)) + l), au), StringEntry((((((K + "_") + M) + "_") + toString(ax)) + m), a), IntegerEntry((((K + "_") + M) + n), ax), ScriptTransfer(y, at, fromBase58String(aa))]
185185 }
186186 else throw("Strict value is not equal to itself.")
187187 }
188188 }
189189 else throw("Strict value is not equal to itself.")
190190 }
191191 else throw("Strict value is not equal to itself.")
192192 }
193193 else throw("Strict value is not equal to itself.")
194194 }
195195
196196
197197 func ay (M,K,O,U,V,W,X,Y,Z,aa,ab,ac) = nil
198198
199199
200200 @Callable(A)
201201 func replanish (K,az,aA,ab,ac) = {
202202 let aB = valueOrErrorMessage(getString(this, (u + K)), "Pool is not inited")
203203 let aC = if ((aB == a))
204204 then G(Address(fromBase58String(K)))
205205 else if ((aB == b))
206206 then I(Address(fromBase58String(K)))
207207 else throw("Wrong pool type")
208208 let aD = aC._1
209209 let aE = aC._2
210210 let Y = aC._3
211211 let Z = aC._4
212212 let aa = aC._5
213213 let aF = if ((size(A.payments) == 2))
214214 then if ((R(A.payments[0].assetId) != aD))
215215 then throw("Wrong payment asset A")
216216 else if ((R(A.payments[1].assetId) != aE))
217217 then throw("Wrong payment asset B")
218218 else $Tuple4(A.payments[0].amount, aD, A.payments[1].amount, aE)
219219 else if ((size(A.payments) == 1))
220220 then if ((R(A.payments[0].assetId) == aD))
221221 then $Tuple4(A.payments[0].amount, aD, 0, aE)
222222 else if ((R(A.payments[0].assetId) == aE))
223223 then $Tuple4(0, aD, A.payments[0].amount, aE)
224224 else throw("Wrong payment")
225225 else throw("One or two payments expected")
226226 let U = aF._1
227227 let V = aF._2
228228 let W = aF._3
229229 let X = aF._4
230230 if ((az > 0))
231231 then {
232- let aG = makeString([aB, toString(A.caller), K, toString(U), V, toString(W), X, toString(Y), toString(Z), aa, toString(ab), toString(ac)], ",")
232+ let aG = makeString([aB, toString(A.caller), K, toString(U), V, toString(W), X, toString(Y), toString(Z), aa, toString(ab), toString(ac), aA, toString(az)], ",")
233233 let aH = {
234234 let aI = invoke(this, "createNewRequest", [aG], nil)
235235 if ($isInstanceOf(aI, "Int"))
236236 then aI
237237 else unit
238238 }
239239 if ((aH == aH))
240240 then {
241241 let aJ = [toString(A.caller), aa, aA, az, toString(this), "replanishFromLand", toString(valueOrErrorMessage(aH, "Can't create new request"))]
242242 let aK = reentrantInvoke(Q(), "flashPosition", aJ, nil)
243243 nil
244244 }
245245 else throw("Strict value is not equal to itself.")
246246 }
247247 else if ((aB == a))
248248 then T(toString(A.caller), K, false, U, V, W, X, Y, Z, aa, ab, ac)
249249 else throw("Cant wx")
250250 }
251251
252252
253253
254254 @Callable(A)
255255 func replanishFromLand (aL) = {
256256 let aG = split(valueOrErrorMessage(getString(this, (aL + s)), ("No request with id " + aL)), ",")
257- if ((aG[0] == a))
258- 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]))
259- else throw("Cant wx")
257+ if ((size(A.payments) != 1))
258+ then throw("Wrong payment size")
259+ else if (if ((R(A.payments[0].assetId) != aG[12]))
260+ then true
261+ else (A.payments[0].amount != parseIntValue(aG[13])))
262+ then throw("Wrong payment")
263+ else {
264+ let U = if ((aG[4] == R(A.payments[0].assetId)))
265+ then (parseIntValue(aG[3]) + A.payments[0].amount)
266+ else parseIntValue(aG[3])
267+ let W = if ((aG[6] == R(A.payments[0].assetId)))
268+ then (parseIntValue(aG[5]) + A.payments[0].amount)
269+ else parseIntValue(aG[3])
270+ if ((aG[0] == a))
271+ then (T(aG[1], aG[2], true, U, aG[4], W, aG[6], parseIntValue(aG[7]), parseIntValue(aG[8]), aG[9], parseIntValue(aG[10]), parseIntValue(aG[11])) :+ DeleteEntry((aL + s)))
272+ else throw("Cant wx")
273+ }
260274 }
261275
262276
263277
264278 @Callable(A)
265279 func createNewRequest (aM) = valueOrElse(z(A), {
266280 let aH = (valueOrElse(getInteger(this, t), 0) + 1)
267281 $Tuple2([StringEntry((toString(aH) + s), aM)], aH)
268282 })
269283
270284
271285
272286 @Callable(A)
273287 func initNewPool (aB,H,aN,aO,aP) = if (if ((aB != a))
274288 then (aB != b)
275289 else false)
276290 then throw("Wrong type")
277291 else [IntegerEntry((H + p), aN), IntegerEntry((H + q), aO), IntegerEntry((H + r), aP), StringEntry((u + H), aB)]
278292
279293
280294 @Verifier(aQ)
281295 func aR () = sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey)
282296

github/deemru/w8io/169f3d6 
39.64 ms