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:BgIyCAISAwoBARIDCgEBEgMKAQESAwoBARIDCgEBEgQKAggIEgASABIECgIBARIDCgEIEgAdAA9kZWNpbWFsUGFydFVTRE4AwIQ9AA9kZWNpbWFsUGFydFVTRFQAwIQ9ARBrZXlXaXRoZHJhd0RlbGF5AAIRJXNfX3dpdGhkcmF3RGVsYXkBDXdpdGhkcmF3RGVsYXkACQEFdmFsdWUBCQCfCAEJARBrZXlXaXRoZHJhd0RlbGF5AAEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZHQAAhslc19fbWluaW1hbEFtb3VudFRvU3dhcFVzZHQBGmtleU1pbmltYWxBbW91bnRUb1N3YXBVc2RuAAIbJXNfX21pbmltYWxBbW91bnRUb1N3YXBVc2RuAQdtaW5Vc2R0AAkBBXZhbHVlAQkAnwgBCQEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZHQAAQdtaW5Vc2RuAAkBBXZhbHVlAQkAnwgBCQEaa2V5TWluaW1hbEFtb3VudFRvU3dhcFVzZG4AARNrZXlNYW5hZ2VyUHVibGljS2V5AAIUJXNfX21hbmFnZXJQdWJsaWNLZXk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WJsaWNLZXnjqRI8", "chainId": 84, "height": 2150700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AKQ6cD67p5XycYGToaPcc77SuK4B8L6dX6Efz9CGJooP Next: BgAWhTVAB8txyCkXQynBZC4vz46AgD4QrHb5Pw4yU2kt Diff:
Old | New | Differences | |
---|---|---|---|
88 | 88 | func B () = throw("To swap USDN to USDT you need attach payment in USDN") | |
89 | 89 | ||
90 | 90 | ||
91 | - | func C () = throw((("you can swap at least " + toString(( | |
91 | + | func C () = throw((("you can swap at least " + toString((g() / b))) + " tokens")) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func D (E) = if ((0 > E)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | func c () = "%s__withdrawDelay" | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func d () = value(getInteger(c())) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func e () = "%s__minimalAmountToSwapUsdt" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f () = "%s__minimalAmountToSwapUsdn" | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func g () = value(getInteger(e())) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func h () = value(getInteger(f())) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func i () = "%s__managerPublicKey" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func j () = "%s__pendingManagerPublicKey" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func k () = "%s__usdtAssetId" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func l () = "%s__usdnAssetId" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func m () = "%s__depositFee" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func n () = "%s__withdrawFee" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func o () = fromBase58String(value(getString(k()))) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func p () = fromBase58String(value(getString(l()))) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q () = { | |
51 | 51 | let r = getString(i()) | |
52 | 52 | if ($isInstanceOf(r, "String")) | |
53 | 53 | then { | |
54 | 54 | let s = r | |
55 | 55 | fromBase58String(s) | |
56 | 56 | } | |
57 | 57 | else if ($isInstanceOf(r, "Unit")) | |
58 | 58 | then unit | |
59 | 59 | else throw("Match error") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func t () = { | |
64 | 64 | let r = getString(j()) | |
65 | 65 | if ($isInstanceOf(r, "String")) | |
66 | 66 | then { | |
67 | 67 | let s = r | |
68 | 68 | fromBase58String(s) | |
69 | 69 | } | |
70 | 70 | else if ($isInstanceOf(r, "Unit")) | |
71 | 71 | then unit | |
72 | 72 | else throw("Match error") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func u (v,w,x) = makeString([v, "WITHDRAW", toString(w), "HEIGHT", toString(x)], "_") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func y (v) = makeString([v, "balance"], "_") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func z (v) = makeString([v, "balance_with_fee"], "_") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func A () = throw("To swap USDT to USDN you need attach payment in USDT") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func B () = throw("To swap USDN to USDT you need attach payment in USDN") | |
89 | 89 | ||
90 | 90 | ||
91 | - | func C () = throw((("you can swap at least " + toString(( | |
91 | + | func C () = throw((("you can swap at least " + toString((g() / b))) + " tokens")) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func D (E) = if ((0 > E)) | |
95 | 95 | then (E * -1) | |
96 | 96 | else E | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func F (G,H) = min([G, H]) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func I (J,K,L) = if ((size(J) > K)) | |
103 | 103 | then J[K] | |
104 | 104 | else L | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func M (v,G) = { | |
108 | 108 | let N = y(v) | |
109 | 109 | let O = z(v) | |
110 | 110 | let P = valueOrElse(getInteger(this, N), 0) | |
111 | 111 | let Q = valueOrElse(getInteger(this, O), 0) | |
112 | 112 | let R = (P + Q) | |
113 | 113 | if (if ((G > R)) | |
114 | 114 | then true | |
115 | 115 | else (h() > G)) | |
116 | 116 | then throw("Swap amount fail, amount is to small or to big.") | |
117 | 117 | else { | |
118 | 118 | let S = F(G, P) | |
119 | 119 | let T = (G - S) | |
120 | 120 | let U = ((T / 100) * value(getInteger(n()))) | |
121 | 121 | [S, T, U] | |
122 | 122 | } | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func V (W) = { | |
127 | 127 | let X = throw("Permission denied") | |
128 | 128 | let r = q() | |
129 | 129 | if ($isInstanceOf(r, "ByteVector")) | |
130 | 130 | then { | |
131 | 131 | let Y = r | |
132 | 132 | if ((W.callerPublicKey == Y)) | |
133 | 133 | then true | |
134 | 134 | else X | |
135 | 135 | } | |
136 | 136 | else if ($isInstanceOf(r, "Unit")) | |
137 | 137 | then if ((W.caller == this)) | |
138 | 138 | then true | |
139 | 139 | else X | |
140 | 140 | else throw("Match error") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(W) | |
145 | 145 | func setWithdrawDelay (Z) = { | |
146 | 146 | let aa = V(W) | |
147 | 147 | if ((aa == aa)) | |
148 | 148 | then [IntegerEntry(c(), Z)] | |
149 | 149 | else throw("Strict value is not equal to itself.") | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(W) | |
155 | 155 | func setMinimalAmountToSwapUsdt (ab) = { | |
156 | 156 | let aa = V(W) | |
157 | 157 | if ((aa == aa)) | |
158 | 158 | then [IntegerEntry(e(), ab)] | |
159 | 159 | else throw("Strict value is not equal to itself.") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Callable(W) | |
165 | 165 | func setMinimalAmountToSwapUsdn (ab) = { | |
166 | 166 | let aa = V(W) | |
167 | 167 | if ((aa == aa)) | |
168 | 168 | then [IntegerEntry(f(), ab)] | |
169 | 169 | else throw("Strict value is not equal to itself.") | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(W) | |
175 | 175 | func setWithdrawFee (ac) = { | |
176 | 176 | let aa = V(W) | |
177 | 177 | if ((aa == aa)) | |
178 | 178 | then [IntegerEntry(n(), ac)] | |
179 | 179 | else throw("Strict value is not equal to itself.") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | ||
184 | 184 | @Callable(W) | |
185 | 185 | func setDepositFee (ac) = { | |
186 | 186 | let aa = V(W) | |
187 | 187 | if ((aa == aa)) | |
188 | 188 | then [IntegerEntry(m(), ac)] | |
189 | 189 | else throw("Strict value is not equal to itself.") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(W) | |
195 | 195 | func constructor (ad,ae) = { | |
196 | 196 | let aa = V(W) | |
197 | 197 | if ((aa == aa)) | |
198 | 198 | then [StringEntry(k(), ad), StringEntry(l(), ae)] | |
199 | 199 | else throw("Strict value is not equal to itself.") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(af) | |
205 | 205 | func swapUSDTtoUSDN () = { | |
206 | 206 | let N = z(toString(af.caller)) | |
207 | 207 | let ag = value(af.payments[0]) | |
208 | 208 | if ((ag.assetId != o())) | |
209 | 209 | then A() | |
210 | 210 | else { | |
211 | 211 | let G = ag.amount | |
212 | 212 | let U = ((G / 100) * value(getInteger(m()))) | |
213 | 213 | let ah = valueOrElse(getInteger(this, N), 0) | |
214 | 214 | if ((g() > G)) | |
215 | 215 | then C() | |
216 | 216 | else [IntegerEntry(N, (ah + G)), ScriptTransfer(af.caller, (G - U), p())] | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(af) | |
223 | 223 | func initializationUSDNtoUSDTswap () = { | |
224 | 224 | let ag = value(af.payments[0]) | |
225 | 225 | let v = toString(af.caller) | |
226 | 226 | if ((ag.assetId != p())) | |
227 | 227 | then B() | |
228 | 228 | else { | |
229 | 229 | let G = ag.amount | |
230 | 230 | let N = y(v) | |
231 | 231 | let O = z(v) | |
232 | 232 | let P = valueOrElse(getInteger(this, N), 0) | |
233 | 233 | let Q = valueOrElse(getInteger(this, O), 0) | |
234 | 234 | let R = (P + Q) | |
235 | 235 | let ai = M(toString(af.caller), G) | |
236 | 236 | let S = valueOrErrorMessage(ai[0], "Wrong 'currentWithdrawals' method!") | |
237 | 237 | let T = valueOrErrorMessage(ai[1], "Wrong 'currentWithdrawals' method!") | |
238 | 238 | let U = valueOrErrorMessage(ai[2], "Wrong 'currentWithdrawals' method!") | |
239 | 239 | let aj = ((T + S) - U) | |
240 | 240 | let ak = (height + d()) | |
241 | 241 | if (isDefined(getString(this, u(toString(af.caller), G, ak)))) | |
242 | 242 | then throw("You have already started withdrawal process, wait next block.") | |
243 | 243 | else [IntegerEntry(N, (P - S)), IntegerEntry(O, (Q - T)), StringEntry(u(toString(af.caller), G, ak), makeString(["not_withdrawn", toString((G - U))], "_"))] | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(af) | |
250 | 250 | func swapUSDNtoUSDT (G,al) = { | |
251 | 251 | let am = u(toString(af.caller), G, al) | |
252 | 252 | let an = valueOrErrorMessage(getString(this, am), ((("This key doesn't exists " + am) + " at address ") + toString(this))) | |
253 | 253 | let ao = I(split(an, "_"), 2, toString(G)) | |
254 | 254 | if (if ((height >= al)) | |
255 | 255 | then contains(an, "not_withdrawn") | |
256 | 256 | else false) | |
257 | 257 | then [DeleteEntry(am), ScriptTransfer(af.caller, valueOrErrorMessage(parseInt(ao), "Wrong withdraw data!"), o())] | |
258 | 258 | else throw((("Withdrawal is possible after " + toString(al)) + " height or you have already withdrawn USDT.")) | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(W) | |
264 | 264 | func setManager (ap) = { | |
265 | 265 | let aa = V(W) | |
266 | 266 | if ((aa == aa)) | |
267 | 267 | then { | |
268 | 268 | let aq = fromBase58String(ap) | |
269 | 269 | if ((aq == aq)) | |
270 | 270 | then [StringEntry(j(), ap)] | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | else throw("Strict value is not equal to itself.") | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(W) | |
279 | 279 | func confirmManager () = { | |
280 | 280 | let ar = t() | |
281 | 281 | let as = if (isDefined(ar)) | |
282 | 282 | then true | |
283 | 283 | else throw("No pending manager") | |
284 | 284 | if ((as == as)) | |
285 | 285 | then { | |
286 | 286 | let at = if ((W.callerPublicKey == value(ar))) | |
287 | 287 | then true | |
288 | 288 | else throw("You are not pending manager") | |
289 | 289 | if ((at == at)) | |
290 | 290 | then [StringEntry(i(), toBase58String(value(ar))), DeleteEntry(j())] | |
291 | 291 | else throw("Strict value is not equal to itself.") | |
292 | 292 | } | |
293 | 293 | else throw("Strict value is not equal to itself.") | |
294 | 294 | } | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Verifier(au) | |
298 | 298 | func av () = { | |
299 | 299 | let aw = { | |
300 | 300 | let r = q() | |
301 | 301 | if ($isInstanceOf(r, "ByteVector")) | |
302 | 302 | then { | |
303 | 303 | let Y = r | |
304 | 304 | Y | |
305 | 305 | } | |
306 | 306 | else if ($isInstanceOf(r, "Unit")) | |
307 | 307 | then au.senderPublicKey | |
308 | 308 | else throw("Match error") | |
309 | 309 | } | |
310 | 310 | sigVerify(au.bodyBytes, au.proofs[0], aw) | |
311 | 311 | } | |
312 | 312 |
github/deemru/w8io/169f3d6 40.60 ms ◑