tx · 4WfcWHydpHTkamJRcjFYqCuNnNnFwibADpjg9YRuzRc7

3Mzj8MyE3E3G55SLVE6Dgd6ew2uERLxiE4U:  -0.01300000 Waves

2022.07.22 10:50 [2150700] smart account 3Mzj8MyE3E3G55SLVE6Dgd6ew2uERLxiE4U > SELF 0.00000000 Waves

{ "type": 13, "id": "4WfcWHydpHTkamJRcjFYqCuNnNnFwibADpjg9YRuzRc7", "fee": 1300000, "feeAssetId": null, "timestamp": 1658476250268, "version": 1, "sender": "3Mzj8MyE3E3G55SLVE6Dgd6ew2uERLxiE4U", "senderPublicKey": "8E1ZoUTJyyA7ybXtP2NxUZKdAwvR1ruiQUxZD2bYJJMF", "proofs": [ "3Dem7JzF3PohyEx4HRo8u2DwmDnC8grwHCGL2iDWLARXdpiVawrfnB7wybcqdEp7wjnbMtSCzThMH9Cft4gnEggz" ], "script": "base64:BgIyCAISAwoBARIDCgEBEgMKAQESAwoBARIDCgEBEgQKAggIEgASABIECgIBARIDCgEIEgAdAA9kZWNpbWFsUGFydFVTRE4AwIQ9AA9kZWNpbWFsUGFydFVTRFQAwIQ9ARBrZXlXaXRoZHJhd0RlbGF5AAIRJXNfX3dpdGhkcmF3RGVsYXkBDXdpdGhkcmF3RGVsYXkACQEFdmFsdWUBCQCfCAEJARBrZXlXaXRoZHJhd0RlbGF5AAEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZHQAAhslc19fbWluaW1hbEFtb3VudFRvU3dhcFVzZHQBGmtleU1pbmltYWxBbW91bnRUb1N3YXBVc2RuAAIbJXNfX21pbmltYWxBbW91bnRUb1N3YXBVc2RuAQdtaW5Vc2R0AAkBBXZhbHVlAQkAnwgBCQEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZHQAAQdtaW5Vc2RuAAkBBXZhbHVlAQkAnwgBCQEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZG4AARNrZXlNYW5hZ2VyUHVibGljS2V5AAIUJXNfX21hbmFnZXJQdWJsaWNLZX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dWJsaWNLZXnjqRI8", "chainId": 84, "height": 2150700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AKQ6cD67p5XycYGToaPcc77SuK4B8L6dX6Efz9CGJooP Next: BgAWhTVAB8txyCkXQynBZC4vz46AgD4QrHb5Pw4yU2kt Diff:
OldNewDifferences
8888 func B () = throw("To swap USDN to USDT you need attach payment in USDN")
8989
9090
91-func C () = throw((("you can swap at least " + toString((value(getInteger(e())) / b))) + " tokens"))
91+func C () = throw((("you can swap at least " + toString((g() / b))) + " tokens"))
9292
9393
9494 func D (E) = if ((0 > E))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000000
55
66 let b = 1000000
77
88 func c () = "%s__withdrawDelay"
99
1010
1111 func d () = value(getInteger(c()))
1212
1313
1414 func e () = "%s__minimalAmountToSwapUsdt"
1515
1616
1717 func f () = "%s__minimalAmountToSwapUsdn"
1818
1919
2020 func g () = value(getInteger(e()))
2121
2222
2323 func h () = value(getInteger(f()))
2424
2525
2626 func i () = "%s__managerPublicKey"
2727
2828
2929 func j () = "%s__pendingManagerPublicKey"
3030
3131
3232 func k () = "%s__usdtAssetId"
3333
3434
3535 func l () = "%s__usdnAssetId"
3636
3737
3838 func m () = "%s__depositFee"
3939
4040
4141 func n () = "%s__withdrawFee"
4242
4343
4444 func o () = fromBase58String(value(getString(k())))
4545
4646
4747 func p () = fromBase58String(value(getString(l())))
4848
4949
5050 func q () = {
5151 let r = getString(i())
5252 if ($isInstanceOf(r, "String"))
5353 then {
5454 let s = r
5555 fromBase58String(s)
5656 }
5757 else if ($isInstanceOf(r, "Unit"))
5858 then unit
5959 else throw("Match error")
6060 }
6161
6262
6363 func t () = {
6464 let r = getString(j())
6565 if ($isInstanceOf(r, "String"))
6666 then {
6767 let s = r
6868 fromBase58String(s)
6969 }
7070 else if ($isInstanceOf(r, "Unit"))
7171 then unit
7272 else throw("Match error")
7373 }
7474
7575
7676 func u (v,w,x) = makeString([v, "WITHDRAW", toString(w), "HEIGHT", toString(x)], "_")
7777
7878
7979 func y (v) = makeString([v, "balance"], "_")
8080
8181
8282 func z (v) = makeString([v, "balance_with_fee"], "_")
8383
8484
8585 func A () = throw("To swap USDT to USDN you need attach payment in USDT")
8686
8787
8888 func B () = throw("To swap USDN to USDT you need attach payment in USDN")
8989
9090
91-func C () = throw((("you can swap at least " + toString((value(getInteger(e())) / b))) + " tokens"))
91+func C () = throw((("you can swap at least " + toString((g() / b))) + " tokens"))
9292
9393
9494 func D (E) = if ((0 > E))
9595 then (E * -1)
9696 else E
9797
9898
9999 func F (G,H) = min([G, H])
100100
101101
102102 func I (J,K,L) = if ((size(J) > K))
103103 then J[K]
104104 else L
105105
106106
107107 func M (v,G) = {
108108 let N = y(v)
109109 let O = z(v)
110110 let P = valueOrElse(getInteger(this, N), 0)
111111 let Q = valueOrElse(getInteger(this, O), 0)
112112 let R = (P + Q)
113113 if (if ((G > R))
114114 then true
115115 else (h() > G))
116116 then throw("Swap amount fail, amount is to small or to big.")
117117 else {
118118 let S = F(G, P)
119119 let T = (G - S)
120120 let U = ((T / 100) * value(getInteger(n())))
121121 [S, T, U]
122122 }
123123 }
124124
125125
126126 func V (W) = {
127127 let X = throw("Permission denied")
128128 let r = q()
129129 if ($isInstanceOf(r, "ByteVector"))
130130 then {
131131 let Y = r
132132 if ((W.callerPublicKey == Y))
133133 then true
134134 else X
135135 }
136136 else if ($isInstanceOf(r, "Unit"))
137137 then if ((W.caller == this))
138138 then true
139139 else X
140140 else throw("Match error")
141141 }
142142
143143
144144 @Callable(W)
145145 func setWithdrawDelay (Z) = {
146146 let aa = V(W)
147147 if ((aa == aa))
148148 then [IntegerEntry(c(), Z)]
149149 else throw("Strict value is not equal to itself.")
150150 }
151151
152152
153153
154154 @Callable(W)
155155 func setMinimalAmountToSwapUsdt (ab) = {
156156 let aa = V(W)
157157 if ((aa == aa))
158158 then [IntegerEntry(e(), ab)]
159159 else throw("Strict value is not equal to itself.")
160160 }
161161
162162
163163
164164 @Callable(W)
165165 func setMinimalAmountToSwapUsdn (ab) = {
166166 let aa = V(W)
167167 if ((aa == aa))
168168 then [IntegerEntry(f(), ab)]
169169 else throw("Strict value is not equal to itself.")
170170 }
171171
172172
173173
174174 @Callable(W)
175175 func setWithdrawFee (ac) = {
176176 let aa = V(W)
177177 if ((aa == aa))
178178 then [IntegerEntry(n(), ac)]
179179 else throw("Strict value is not equal to itself.")
180180 }
181181
182182
183183
184184 @Callable(W)
185185 func setDepositFee (ac) = {
186186 let aa = V(W)
187187 if ((aa == aa))
188188 then [IntegerEntry(m(), ac)]
189189 else throw("Strict value is not equal to itself.")
190190 }
191191
192192
193193
194194 @Callable(W)
195195 func constructor (ad,ae) = {
196196 let aa = V(W)
197197 if ((aa == aa))
198198 then [StringEntry(k(), ad), StringEntry(l(), ae)]
199199 else throw("Strict value is not equal to itself.")
200200 }
201201
202202
203203
204204 @Callable(af)
205205 func swapUSDTtoUSDN () = {
206206 let N = z(toString(af.caller))
207207 let ag = value(af.payments[0])
208208 if ((ag.assetId != o()))
209209 then A()
210210 else {
211211 let G = ag.amount
212212 let U = ((G / 100) * value(getInteger(m())))
213213 let ah = valueOrElse(getInteger(this, N), 0)
214214 if ((g() > G))
215215 then C()
216216 else [IntegerEntry(N, (ah + G)), ScriptTransfer(af.caller, (G - U), p())]
217217 }
218218 }
219219
220220
221221
222222 @Callable(af)
223223 func initializationUSDNtoUSDTswap () = {
224224 let ag = value(af.payments[0])
225225 let v = toString(af.caller)
226226 if ((ag.assetId != p()))
227227 then B()
228228 else {
229229 let G = ag.amount
230230 let N = y(v)
231231 let O = z(v)
232232 let P = valueOrElse(getInteger(this, N), 0)
233233 let Q = valueOrElse(getInteger(this, O), 0)
234234 let R = (P + Q)
235235 let ai = M(toString(af.caller), G)
236236 let S = valueOrErrorMessage(ai[0], "Wrong 'currentWithdrawals' method!")
237237 let T = valueOrErrorMessage(ai[1], "Wrong 'currentWithdrawals' method!")
238238 let U = valueOrErrorMessage(ai[2], "Wrong 'currentWithdrawals' method!")
239239 let aj = ((T + S) - U)
240240 let ak = (height + d())
241241 if (isDefined(getString(this, u(toString(af.caller), G, ak))))
242242 then throw("You have already started withdrawal process, wait next block.")
243243 else [IntegerEntry(N, (P - S)), IntegerEntry(O, (Q - T)), StringEntry(u(toString(af.caller), G, ak), makeString(["not_withdrawn", toString((G - U))], "_"))]
244244 }
245245 }
246246
247247
248248
249249 @Callable(af)
250250 func swapUSDNtoUSDT (G,al) = {
251251 let am = u(toString(af.caller), G, al)
252252 let an = valueOrErrorMessage(getString(this, am), ((("This key doesn't exists " + am) + " at address ") + toString(this)))
253253 let ao = I(split(an, "_"), 2, toString(G))
254254 if (if ((height >= al))
255255 then contains(an, "not_withdrawn")
256256 else false)
257257 then [DeleteEntry(am), ScriptTransfer(af.caller, valueOrErrorMessage(parseInt(ao), "Wrong withdraw data!"), o())]
258258 else throw((("Withdrawal is possible after " + toString(al)) + " height or you have already withdrawn USDT."))
259259 }
260260
261261
262262
263263 @Callable(W)
264264 func setManager (ap) = {
265265 let aa = V(W)
266266 if ((aa == aa))
267267 then {
268268 let aq = fromBase58String(ap)
269269 if ((aq == aq))
270270 then [StringEntry(j(), ap)]
271271 else throw("Strict value is not equal to itself.")
272272 }
273273 else throw("Strict value is not equal to itself.")
274274 }
275275
276276
277277
278278 @Callable(W)
279279 func confirmManager () = {
280280 let ar = t()
281281 let as = if (isDefined(ar))
282282 then true
283283 else throw("No pending manager")
284284 if ((as == as))
285285 then {
286286 let at = if ((W.callerPublicKey == value(ar)))
287287 then true
288288 else throw("You are not pending manager")
289289 if ((at == at))
290290 then [StringEntry(i(), toBase58String(value(ar))), DeleteEntry(j())]
291291 else throw("Strict value is not equal to itself.")
292292 }
293293 else throw("Strict value is not equal to itself.")
294294 }
295295
296296
297297 @Verifier(au)
298298 func av () = {
299299 let aw = {
300300 let r = q()
301301 if ($isInstanceOf(r, "ByteVector"))
302302 then {
303303 let Y = r
304304 Y
305305 }
306306 else if ($isInstanceOf(r, "Unit"))
307307 then au.senderPublicKey
308308 else throw("Match error")
309309 }
310310 sigVerify(au.bodyBytes, au.proofs[0], aw)
311311 }
312312

github/deemru/w8io/169f3d6 
40.60 ms