tx · 33oX4pDqNvnUHogJgdXfLE7WpKs2fpScZKwYGehjEbBw 3N5oi7xosBdSwhbbWh3y2h9Jhx63owgkBFA: -0.01400000 Waves 2021.04.06 15:40 [1470595] smart account 3N5oi7xosBdSwhbbWh3y2h9Jhx63owgkBFA > SELF 0.00000000 Waves
{ "type": 13, "id": "33oX4pDqNvnUHogJgdXfLE7WpKs2fpScZKwYGehjEbBw", "fee": 1400000, "feeAssetId": null, "timestamp": 1617712820017, "version": 2, "chainId": 84, "sender": "3N5oi7xosBdSwhbbWh3y2h9Jhx63owgkBFA", "senderPublicKey": "65cF9tPJrvN5N9ztRhFizUUozJ55EBouFSEn2DkYb1on", "proofs": [ "2ohnZUWtvBgKBg4YS9Hefpm9Q3fERpdEJrgrVJd3ezsmeT72v7dBDaVt2o8M959xp5Gj62339D46xdUy1jDKa7bm" ], "script": "base64:AAIEAAAAAAAAABQIAhIAEgASABIAEgMKAQESAwoBAQAAABcAAAAAEnVzZG5EeXpBQmFsYW5jZUtleQIAAAAYdXNkbl9keXpfYV9hc3NldF9iYWxhbmNlAAAAABJ1c2RuRHl6QkJhbGFuY2VLZXkCAAAAGHVzZG5fZHl6X2JfYXNzZXRfYmFsYW5jZQAAAAARZXRoRHl6QUJhbGFuY2VLZXkCAAAAF2V0aF9keXpfYV9hc3NldF9iYWxhbmNlAAAAABFldGhEeXpCQmFsYW5jZUtleQIAAAAXZXRoX2R5el9iX2Fzc2V0X2JhbGFuY2UAAAAAFnVzZG5EeXpQYWlySXNBY3RpdmVLZXkCAAAAEnVzZG5fZHl6X2lzX2FjdGl2ZQAAAAAVZXRoRHl6UGFpcklzQWN0aXZlS2V5AgAAABFldGhfZHl6X2lzX2FjdGl2ZQAAAAAGZmVlS2V5AgAAAANmZWUAAAAADnRvdGFsRmVlRXRoS2V5AgAAAA10b3RhbF9mZWVfZXRoAAAAAA50b3RhbEZlZVVzZEtleQIAAAANdG90YWxfZmVlX3VzZAAAAAASdG90YWxGZWVEeXpyYXB0S2V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ZUtleQkBAAAAEmdldEZlZUtleUJ5QXNzZXRJZAAAAAEFAAAAB2Fzc2V0SWQEAAAACHRvdGFsRmVlCQAAZAAAAAIJAQAAABBnZXRUb3RhbEZlZUJ5S2V5AAAAAQUAAAALdG90YWxGZWVLZXkFAAAACWZlZUFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARZXRoRHl6QUJhbGFuY2VLZXkFAAAAC25ld0JhbGFuY2VBCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABFldGhEeXpCQmFsYW5jZUtleQUAAAALbmV3QmFsYW5jZUIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAC3RvdGFsRmVlS2V5BQAAAAh0b3RhbEZlZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAApmZWVBZGRyZXNzBQAAAAlmZWVBbW91bnQFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAdyQW1vdW50BQAAAAhyQXNzZXRJZAUAAAADbmlsAAAAAD4d0JA=", "height": 1470595, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7upvmZsvksgDETGG8PXGR91bYcnscDgBaoJtDRitHo9G Next: BuotYgB9bJRHNKsb78Y2L1Lc179LjsgqjzLmYaWk7do Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | ||
30 | 30 | let n = base58'G1rPVdqQWNC3883hjY4FkMdB8nMon7MRVruAgqdPNRr6' | |
31 | 31 | ||
32 | - | let o = base58' | |
32 | + | let o = base58'95zUn9yg5ZTomGs4RU7sboXYBgJ4KmJe4cyBxe5iXRGh' | |
33 | 33 | ||
34 | 34 | let p = Address(base58'3Mwosu69eyDx1sKv6wwJXNwVufpj7Pcmrz9') | |
35 | 35 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "usdn_dyz_a_asset_balance" | |
5 | 5 | ||
6 | 6 | let b = "usdn_dyz_b_asset_balance" | |
7 | 7 | ||
8 | 8 | let c = "eth_dyz_a_asset_balance" | |
9 | 9 | ||
10 | 10 | let d = "eth_dyz_b_asset_balance" | |
11 | 11 | ||
12 | 12 | let e = "usdn_dyz_is_active" | |
13 | 13 | ||
14 | 14 | let f = "eth_dyz_is_active" | |
15 | 15 | ||
16 | 16 | let g = "fee" | |
17 | 17 | ||
18 | 18 | let h = "total_fee_eth" | |
19 | 19 | ||
20 | 20 | let i = "total_fee_usd" | |
21 | 21 | ||
22 | 22 | let j = "total_fee_dyzrapt" | |
23 | 23 | ||
24 | 24 | let k = 1000 | |
25 | 25 | ||
26 | 26 | let l = base58'2TLkgUERqF1y21ShjiFVVTVYtP1BL8wvc6BGLZvt4fND' | |
27 | 27 | ||
28 | 28 | let m = base58'795LiREqoqp73w5cMC8Azmk6YsWfgmMVTbFyfPGeSZxM' | |
29 | 29 | ||
30 | 30 | let n = base58'G1rPVdqQWNC3883hjY4FkMdB8nMon7MRVruAgqdPNRr6' | |
31 | 31 | ||
32 | - | let o = base58' | |
32 | + | let o = base58'95zUn9yg5ZTomGs4RU7sboXYBgJ4KmJe4cyBxe5iXRGh' | |
33 | 33 | ||
34 | 34 | let p = Address(base58'3Mwosu69eyDx1sKv6wwJXNwVufpj7Pcmrz9') | |
35 | 35 | ||
36 | 36 | func q (r) = { | |
37 | 37 | let s = valueOrErrorMessage(getInteger(this, r), "unable to read key") | |
38 | 38 | s | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func t (r) = { | |
43 | 43 | let s = valueOrElse(getInteger(this, r), 0) | |
44 | 44 | s | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func u (r) = t(r) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func v (w) = { | |
52 | 52 | let x = q(g) | |
53 | 53 | let y = fraction(w, x, 10000) | |
54 | 54 | y | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func z (A) = if ((A == n)) | |
59 | 59 | then i | |
60 | 60 | else if ((A == m)) | |
61 | 61 | then h | |
62 | 62 | else if ((A == l)) | |
63 | 63 | then j | |
64 | 64 | else throw("Incorrect asset attached") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func B (A,w) = { | |
68 | 68 | let y = v(w) | |
69 | 69 | let C = (w - y) | |
70 | 70 | let D = getIntegerValue(this, a) | |
71 | 71 | let E = getIntegerValue(this, b) | |
72 | 72 | if ((A == n)) | |
73 | 73 | then { | |
74 | 74 | let F = fraction(E, C, (C + D)) | |
75 | 75 | let G = l | |
76 | 76 | let H = (C + D) | |
77 | 77 | let I = (E - F) | |
78 | 78 | $Tuple5(y, F, G, H, I) | |
79 | 79 | } | |
80 | 80 | else if ((A == l)) | |
81 | 81 | then { | |
82 | 82 | let F = fraction(D, C, (C + E)) | |
83 | 83 | let G = n | |
84 | 84 | let H = (D - F) | |
85 | 85 | let I = (E + C) | |
86 | 86 | $Tuple5(y, F, G, H, I) | |
87 | 87 | } | |
88 | 88 | else throw("Incorrect asset attached") | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func J (A,w) = { | |
93 | 93 | let y = v(w) | |
94 | 94 | let C = (w - y) | |
95 | 95 | let D = getIntegerValue(this, c) | |
96 | 96 | let E = getIntegerValue(this, d) | |
97 | 97 | if ((A == m)) | |
98 | 98 | then { | |
99 | 99 | let F = fraction(E, C, (C + D)) | |
100 | 100 | let G = l | |
101 | 101 | let H = (C + D) | |
102 | 102 | let I = (E - F) | |
103 | 103 | $Tuple5(y, F, G, H, I) | |
104 | 104 | } | |
105 | 105 | else if ((A == l)) | |
106 | 106 | then { | |
107 | 107 | let F = fraction(D, C, (C + E)) | |
108 | 108 | let G = m | |
109 | 109 | let H = (D - F) | |
110 | 110 | let I = (E + C) | |
111 | 111 | $Tuple5(y, F, G, H, I) | |
112 | 112 | } | |
113 | 113 | else throw("Incorrect asset attached") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(K) | |
118 | 118 | func initUsdnDyzPair () = if (isDefined(getBoolean(this, e))) | |
119 | 119 | then throw("Pair is already active") | |
120 | 120 | else if ((K.callerPublicKey != o)) | |
121 | 121 | then throw("Only admin can activate pair") | |
122 | 122 | else { | |
123 | 123 | let L = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
124 | 124 | let M = L._1 | |
125 | 125 | let N = L._2 | |
126 | 126 | let O = $Tuple2(K.payments[1].amount, K.payments[1].assetId) | |
127 | 127 | let P = O._1 | |
128 | 128 | let Q = O._2 | |
129 | 129 | if ((N != n)) | |
130 | 130 | then throw("A asset is not a usdn") | |
131 | 131 | else if ((Q != l)) | |
132 | 132 | then throw("B asset is not a dyzrupt") | |
133 | 133 | else [BooleanEntry(e, true), IntegerEntry(a, M), IntegerEntry(b, P), IntegerEntry(g, 300)] | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(K) | |
139 | 139 | func initEthDyzPair () = if (isDefined(getBoolean(this, f))) | |
140 | 140 | then throw("Pair is already active") | |
141 | 141 | else if ((K.callerPublicKey != o)) | |
142 | 142 | then throw("Only admin can activate pair") | |
143 | 143 | else { | |
144 | 144 | let R = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
145 | 145 | let M = R._1 | |
146 | 146 | let N = R._2 | |
147 | 147 | let S = $Tuple2(K.payments[1].amount, K.payments[1].assetId) | |
148 | 148 | let P = S._1 | |
149 | 149 | let Q = S._2 | |
150 | 150 | if ((N != m)) | |
151 | 151 | then throw("A asset is not a eth") | |
152 | 152 | else if ((Q != l)) | |
153 | 153 | then throw("B asset is not a dyzrupt") | |
154 | 154 | else [BooleanEntry(f, true), IntegerEntry(c, M), IntegerEntry(d, P), IntegerEntry(g, 300)] | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(K) | |
160 | 160 | func addLiquidToUsdnDyz () = if (!(isDefined(getBoolean(this, e)))) | |
161 | 161 | then throw("Pair is not active") | |
162 | 162 | else if ((K.callerPublicKey != o)) | |
163 | 163 | then throw("Only admin can add liquid") | |
164 | 164 | else { | |
165 | 165 | let T = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
166 | 166 | let M = T._1 | |
167 | 167 | let N = T._2 | |
168 | 168 | let U = $Tuple2(K.payments[1].amount, K.payments[1].assetId) | |
169 | 169 | let P = U._1 | |
170 | 170 | let Q = U._2 | |
171 | 171 | if ((N != n)) | |
172 | 172 | then throw("A asset is not a usdn") | |
173 | 173 | else if ((Q != l)) | |
174 | 174 | then throw("B asset is not a dyzrupt") | |
175 | 175 | else { | |
176 | 176 | let D = t(a) | |
177 | 177 | let E = t(b) | |
178 | 178 | let V = fraction(fraction(D, 100000000, M), 1000, fraction(E, 100000000, P)) | |
179 | 179 | throw(("Incorrect assets amount: amounts must have the contract ratio " + toString(V))) | |
180 | 180 | } | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(K) | |
186 | 186 | func addLiquidToEthDyz () = if (!(isDefined(getBoolean(this, f)))) | |
187 | 187 | then throw("Pair is not active") | |
188 | 188 | else if ((K.callerPublicKey != o)) | |
189 | 189 | then throw("Only admin can add liquid") | |
190 | 190 | else { | |
191 | 191 | let W = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
192 | 192 | let M = W._1 | |
193 | 193 | let N = W._2 | |
194 | 194 | let X = $Tuple2(K.payments[1].amount, K.payments[1].assetId) | |
195 | 195 | let P = X._1 | |
196 | 196 | let Q = X._2 | |
197 | 197 | if ((N != m)) | |
198 | 198 | then throw("A asset is not a eth") | |
199 | 199 | else if ((Q != l)) | |
200 | 200 | then throw("B asset is not a dyzrupt") | |
201 | 201 | else { | |
202 | 202 | let D = t(c) | |
203 | 203 | let E = t(d) | |
204 | 204 | let V = fraction(fraction(D, 100000000, M), 1000, fraction(E, 100000000, P)) | |
205 | 205 | if ((V > k)) | |
206 | 206 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
207 | 207 | else [IntegerEntry(c, (D + M)), IntegerEntry(d, (E + P))] | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(K) | |
214 | 214 | func exchangeUsdnDyz (Y) = if (!(isDefined(getBoolean(this, e)))) | |
215 | 215 | then throw("Pair is not active") | |
216 | 216 | else { | |
217 | 217 | let Z = value(K.payments[0]) | |
218 | 218 | let A = Z.assetId | |
219 | 219 | let w = Z.amount | |
220 | 220 | if (if ((A != n)) | |
221 | 221 | then (A != l) | |
222 | 222 | else false) | |
223 | 223 | then throw("Only usdn and dyzrupt are supporting") | |
224 | 224 | else { | |
225 | 225 | let aa = B(A, w) | |
226 | 226 | let y = aa._1 | |
227 | 227 | let F = aa._2 | |
228 | 228 | let G = aa._3 | |
229 | 229 | let H = aa._4 | |
230 | 230 | let I = aa._5 | |
231 | 231 | if ((Y > F)) | |
232 | 232 | then throw(((("Calculated amount to receive is less than specified minimum " + toString(F)) + " ") + toString(Y))) | |
233 | 233 | else { | |
234 | 234 | let ab = z(A) | |
235 | 235 | let ac = (u(ab) + y) | |
236 | 236 | [IntegerEntry(a, H), IntegerEntry(b, I), IntegerEntry(ab, ac), ScriptTransfer(p, y, A), ScriptTransfer(K.caller, F, G)] | |
237 | 237 | } | |
238 | 238 | } | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(K) | |
244 | 244 | func exchangeEthDyz (Y) = if (!(isDefined(getBoolean(this, f)))) | |
245 | 245 | then throw("Pair is not active") | |
246 | 246 | else { | |
247 | 247 | let Z = value(K.payments[0]) | |
248 | 248 | let A = Z.assetId | |
249 | 249 | let w = Z.amount | |
250 | 250 | if (if ((A != m)) | |
251 | 251 | then (A != l) | |
252 | 252 | else false) | |
253 | 253 | then throw("Only eth and dyzrupt are supporting") | |
254 | 254 | else { | |
255 | 255 | let ad = J(A, w) | |
256 | 256 | let y = ad._1 | |
257 | 257 | let F = ad._2 | |
258 | 258 | let G = ad._3 | |
259 | 259 | let H = ad._4 | |
260 | 260 | let I = ad._5 | |
261 | 261 | if ((Y > F)) | |
262 | 262 | then throw(((("Calculated amount to receive is less than specified minimum " + toString(F)) + " ") + toString(Y))) | |
263 | 263 | else { | |
264 | 264 | let ab = z(A) | |
265 | 265 | let ac = (u(ab) + y) | |
266 | 266 | [IntegerEntry(c, H), IntegerEntry(d, I), IntegerEntry(ab, ac), ScriptTransfer(p, y, A), ScriptTransfer(K.caller, F, G)] | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 |
github/deemru/w8io/169f3d6 60.12 ms ◑