tx · 8gFnpGLG8kyBB79WmacHiX6EWmBBh3aAFHFvVCrShpLB

3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9:  -0.01100000 Waves

2023.10.06 11:58 [2786553] smart account 3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9 > SELF 0.00000000 Waves

{ "type": 13, "id": "8gFnpGLG8kyBB79WmacHiX6EWmBBh3aAFHFvVCrShpLB", "fee": 1100000, "feeAssetId": null, "timestamp": 1696582730622, "version": 2, "chainId": 84, "sender": "3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9", "senderPublicKey": "4AVkL2DQJ8sngCNyArYueNuPS7cvygnakPJhU65LfPfu", "proofs": [ "5ugFQgM5BbC3JC35wag7V4qR2BZNjCQSQ1MiHnzkGrpph9Da4ZgfxF9NUtWfqijVsm1Z5zNRU2g5Kb4N2xEh9cLr", "3Bv6qh8hDxB4ytG8Xr2ujfE2gRf4KJg4aaYj6YxM4YgHPDX1wFf2BZNHB2imychYzkd13vgn9gbxwzzgiLDCF3Gx" ], "script": "base64:BgIOCAISAwoBGBIDCgEYEgAcAA5BWExZX01BSU5fQUREUgkBB0FkZHJlc3MBARoBVEdh0UpNzn/72+6l9L3Wwi2aSOpC0rlhmwAMQVhMWV9GQVJNSU5HCQEHQWRkcmVzcwEBGgFUiFrCGKZVQmFa0TmuSd5FGDc6uNWQtIjpAA5BWExZX1RPS0VOT01JQwkBEUBleHRyTmF0aXZlKDEwNjIpAQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFDEFYTFlfRkFSTUlORwIRdG9rZW5vbWljQ29udHJhY3QCGENhbid0IGdldCB0b2tlbm9taWMgYWRkcgANQVhMWV9URUFNX0JPWAkBB0FkZHJlc3MBARoBVOklXEf1z5bkgzXbUQsFjOvwGd12KKCp+gAMQVhMWV9TVEFLSU5HCQEHQWRkcmVzcwEBGgFUoahv7LNLfrTJXgHTjP0PfUhduUwxjCRLAAdTRl9QT09MAgJTRgAHV1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DAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCGFkbWluMVBLAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUIYWRtaW4yUEsAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQhhZG1pbjNQSwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAs7MAUc=", "height": 2786553, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EmgAvuhRknuiKRvjrYgSmCVBFbk8Uju4iHUtrqH1EKUL Next: ALZKUyddDKRobCPxTP4i9YR6x5H38DarJhEm6UNJnXrA Diff:
OldNewDifferences
209209 else if ((0 >= ar))
210210 then throw("No tokens to airdrop")
211211 else {
212- let ai = invoke(w, "callFunction", ["exchange", ["0"]], [AttachedPayment(unit, ar)])
212+ let ai = invoke(w, "callFunction", ["exchange", ["1"]], [AttachedPayment(unit, ar)])
213213 if ((ai == ai))
214214 then {
215215 let as = assetBalance(this, v)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS')
55
66 let b = Address(base58'3N2M4PztorHwrfENp7D6LhYGgGodjiD1fjn')
77
88 let c = addressFromStringValue(valueOrErrorMessage(getString(b, "tokenomicContract"), "Can't get tokenomic addr"))
99
1010 let d = Address(base58'3NBAqyU7HpCjXtX7ymiEGiUkrw7qe9bSdxm')
1111
1212 let e = Address(base58'3N4erM2YbPHzpzNT31KQbgHxQoRdiJdFFTY')
1313
1414 let f = "SF"
1515
1616 let g = "WX"
1717
1818 let h = 100000000
1919
2020 let i = 50
2121
2222 let j = "axlyPool"
2323
2424 let k = "axlyTokenId"
2525
2626 let l = "_poolShareId"
2727
2828 let m = "pool_"
2929
3030 let n = "group1_admin1_pub_key"
3131
3232 let o = "group1_admin2_pub_key"
3333
3434 let p = "group1_admin3_pub_key"
3535
3636 let q = "admin_call_pub_key"
3737
3838 let r = fromBase58String(valueOrErrorMessage(getString(a, n), "Can't get admin1PK"))
3939
4040 let s = fromBase58String(valueOrErrorMessage(getString(a, o), "Can't get admin2PK"))
4141
4242 let t = fromBase58String(valueOrErrorMessage(getString(a, p), "Can't get admin3PK"))
4343
4444 let u = fromBase58String(valueOrErrorMessage(getString(a, q), "Can't get operatorPK"))
4545
4646 let v = fromBase58String(valueOrErrorMessage(getString(c, k), "Can't get axly token id"))
4747
4848 let w = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(b, j), "Can't get axlyPool key")), "Can't get axly pool")
4949
5050 func x () = throw("Wrong pool type")
5151
5252
5353 func y (z) = if ((z.caller == this))
5454 then unit
5555 else throw("Only contract itself can call this function")
5656
5757
5858 func A (B,C) = (B :+ parseIntValue(C))
5959
6060
6161 func D (E) = {
6262 let F = addressFromStringValue(E[1])
6363 let G = {
6464 let H = split(E[2], "|")
6565 [AttachedPayment(fromBase58String(H[0]), parseIntValue(H[1]))]
6666 }
6767 let I = E[3]
6868 invoke(F, "callFunction", ["exchange", [I]], G)
6969 }
7070
7171
7272 func J (E) = {
7373 let F = addressFromStringValue(E[1])
7474 let G = {
7575 let H = split(E[2], "|")
7676 [AttachedPayment(fromBase58String(H[0]), parseIntValue(H[1]))]
7777 }
7878 let K = {
7979 let L = split(E[3], "|")
8080 let M = split(L[0], ",")
8181 let N = split(L[1], ",")
8282 let O = {
8383 let P = split(L[2], ",")
8484 let Q = size(P)
8585 let R = nil
8686 func S (T,U) = if ((U >= Q))
8787 then T
8888 else A(T, P[U])
8989
9090 func V (T,U) = if ((U >= Q))
9191 then T
9292 else throw("List size exceeds 3")
9393
9494 V(S(S(S(R, 0), 1), 2), 3)
9595 }
9696 let W = {
9797 let P = split(L[3], ",")
9898 let Q = size(P)
9999 let R = nil
100100 func X (T,U) = if ((U >= Q))
101101 then T
102102 else A(T, P[U])
103103
104104 func Y (T,U) = if ((U >= Q))
105105 then T
106106 else throw("List size exceeds 3")
107107
108108 Y(X(X(X(R, 0), 1), 2), 3)
109109 }
110110 let Z = split(L[4], ",")
111111 let I = parseIntValue(L[5])
112112 [M, N, O, W, Z, I]
113113 }
114114 invoke(F, "routingTrade", K, G)
115115 }
116116
117117
118118 @Callable(z)
119119 func exchangeLps (aa) = valueOrElse(y(z), {
120120 func ab (B,ac) = {
121121 let ad = fromBase58String(ac)
122122 let ae = assetBalance(this, ad)
123123 let af = valueOrErrorMessage(getString(a, (ac + l)), ("Can't get pool of lp:" + ac))
124124 let ag = valueOrErrorMessage(getString(a, (m + af)), "Pool is not inited")
125125 let ah = valueOrErrorMessage(addressFromString(af), "unknown addr")
126126 if ((ae > 0))
127127 then {
128128 let ai = if ((ag == f))
129129 then invoke(ah, "callFunction", ["withdraw", ["0"]], [AttachedPayment(ad, ae)])
130130 else if ((ag == g))
131131 then invoke(ah, "get", nil, [AttachedPayment(ad, ae)])
132132 else x()
133133 if ((ai == ai))
134134 then (B :+ true)
135135 else throw("Strict value is not equal to itself.")
136136 }
137137 else (B :+ false)
138138 }
139139
140140 let aj = {
141141 let P = aa
142142 let Q = size(P)
143143 let R = nil
144144 func S (T,U) = if ((U >= Q))
145145 then T
146146 else ab(T, P[U])
147147
148148 func V (T,U) = if ((U >= Q))
149149 then T
150150 else throw("List size exceeds 50")
151151
152152 V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
153153 }
154154 $Tuple2(nil, aj)
155155 })
156156
157157
158158
159159 @Callable(z)
160160 func exchangeTokens (ak) = valueOrElse(y(z), {
161161 func al (am,an) = {
162162 let E = split(an, "__")
163163 if ((E[0] == "directSwopfiCPMM"))
164164 then {
165165 let ai = D(E)
166166 if ((ai == ai))
167167 then (am :+ ai)
168168 else throw("Strict value is not equal to itself.")
169169 }
170170 else if ((E[0] == "routingSwopfi"))
171171 then {
172172 let ai = J(E)
173173 if ((ai == ai))
174174 then (am :+ ai)
175175 else throw("Strict value is not equal to itself.")
176176 }
177177 else throw("Unknown route type")
178178 }
179179
180180 let aj = {
181181 let P = ak
182182 let Q = size(P)
183183 let R = nil
184184 func S (T,U) = if ((U >= Q))
185185 then T
186186 else al(T, P[U])
187187
188188 func V (T,U) = if ((U >= Q))
189189 then T
190190 else throw("List size exceeds 30")
191191
192192 V(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
193193 }
194194 if ((aj == aj))
195195 then nil
196196 else throw("Strict value is not equal to itself.")
197197 })
198198
199199
200200
201201 @Callable(z)
202202 func airdropStaking () = valueOrElse(y(z), {
203203 let ao = wavesBalance(this).available
204204 let ap = (ao - h)
205205 let aq = fraction(ap, i, 100)
206206 let ar = (ap - aq)
207207 if ((0 >= ap))
208208 then throw("No tokens to airdrop")
209209 else if ((0 >= ar))
210210 then throw("No tokens to airdrop")
211211 else {
212- let ai = invoke(w, "callFunction", ["exchange", ["0"]], [AttachedPayment(unit, ar)])
212+ let ai = invoke(w, "callFunction", ["exchange", ["1"]], [AttachedPayment(unit, ar)])
213213 if ((ai == ai))
214214 then {
215215 let as = assetBalance(this, v)
216216 if ((as == as))
217217 then {
218218 let at = invoke(e, "airdrop", nil, [AttachedPayment(v, as)])
219219 if ((at == at))
220220 then [ScriptTransfer(d, aq, unit)]
221221 else throw("Strict value is not equal to itself.")
222222 }
223223 else throw("Strict value is not equal to itself.")
224224 }
225225 else throw("Strict value is not equal to itself.")
226226 }
227227 })
228228
229229
230230 @Verifier(au)
231231 func av () = {
232232 let aw = au
233233 if ($isInstanceOf(aw, "InvokeScriptTransaction"))
234234 then {
235235 let ai = aw
236236 let ax = if ((ai.fee == 900000))
237237 then (ai.feeAssetId == unit)
238238 else false
239239 let ay = (ai.function == "exchangeLps")
240240 let az = (ai.function == "exchangeTokens")
241241 let aA = (ai.function == "airdropStaking")
242242 let aB = if (sigVerify(au.bodyBytes, au.proofs[0], r))
243243 then 1
244244 else 0
245245 let aC = if (sigVerify(au.bodyBytes, au.proofs[0], s))
246246 then 1
247247 else 0
248248 let aD = if (sigVerify(au.bodyBytes, au.proofs[0], t))
249249 then 1
250250 else 0
251251 let aE = if (sigVerify(au.bodyBytes, au.proofs[0], u))
252252 then 1
253253 else 0
254254 let aF = ((((aB + aC) + aD) + aE) >= 1)
255255 if (if (ax)
256256 then if (if (ay)
257257 then true
258258 else az)
259259 then true
260260 else aA
261261 else false)
262262 then aF
263263 else false
264264 }
265265 else {
266266 let aB = if (sigVerify(au.bodyBytes, au.proofs[0], r))
267267 then 1
268268 else 0
269269 let aC = if (sigVerify(au.bodyBytes, au.proofs[1], s))
270270 then 1
271271 else 0
272272 let aD = if (sigVerify(au.bodyBytes, au.proofs[2], t))
273273 then 1
274274 else 0
275275 (((aB + aC) + aD) >= 2)
276276 }
277277 }
278278

github/deemru/w8io/169f3d6 
38.71 ms