tx · BZwiStCihZewvFouQphtgBc3YiSLpdxLKCp5ozyNwNyo 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS: -0.02000000 Waves 2022.02.24 18:58 [1937945] smart account 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS > SELF 0.00000000 Waves
{ "type": 13, "id": "BZwiStCihZewvFouQphtgBc3YiSLpdxLKCp5ozyNwNyo", "fee": 2000000, "feeAssetId": null, "timestamp": 1645718288903, "version": 1, "sender": "3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS", "senderPublicKey": "rqCnkHfz5ix6HNKiVvYE3URUtLs6f2nWzt4hpdGGQdm", "proofs": [ "3gH252JX2Y1RiCmXPwFz61ikkskQHaqSbN88SKGvmuVgb4kmUc6f4NBSj3NrPwrxmJrYC19MnuTbZP1duBJ7pne1" ], "script": "base64:AAIFAAAAAAAAACoIAhIFCgMICAgSABIDCgEIEgMKAQgSAwoBARIAEgYKBAEBAQESBAoCAQEAAAA4AAAAAAhQUklDRUxFVAAAAAAAAA9CQAAAAAAJTVVMVFNDQUxFAAAAAAAAAAAIAAAAAAtFVUxFUk5VTUJFUgAAAAAAEDPE1gAAAAAGc2NhbGU2AAAAAAAAD0JAAAAAAAxzY2FsZTZCaWdJbnQJAAE2AAAAAQAAAAAAAA9CQAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAQAAABJrZXlOZXV0cmlub0FkZHJlc3MAAAAAAgAAAB0lcyVzX19jb25maWdfX25ldXRyaW5vQWRkcmVzcwEAAAASa2V5TmV1dHJpbm9Bc3NldElkAAAAAAIAAAARbmV1dHJpbm9fYXNzZXRfaWQBAAAAHWtleUxpcXVpZGF0aW9uQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAUbGlxdWlkYXRpb25fY29udHJhY3QBAAAADmtleV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VpZ2h0BAAAAAFhCQEAAAAFYXNJbnQAAAABCQAD/AAAAAQFAAAADG1hdGhDb250cmFjdAIAAAAdZ2V0VW5zdGFrZUNvbWlzc2lvbkFtb3VudE1BVEgJAARMAAAAAgUAAAAGYW1vdW50CQAETAAAAAIFAAAAC3N0YXJ0SGVpZ2h0BQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAABYQUAAAABYQkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAIlZAkABEwAAAACCQABpAAAAAEFAAAAAWEFAAAAA25pbAUAAAADU0VQCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAADVPC2X", "chainId": 84, "height": 1937945, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J67VZ78HLA4xxnUmbaMcSW6x4Zn1wJBqU7VWuQan7v4J Next: 6XjTDnNjRjHMrdPPgL8zKoUFm48zLh83kanRekvawgxQ Diff:
Old | New | Differences | |
---|---|---|---|
184 | 184 | func neutrinoStatsREADONLY () = { | |
185 | 185 | let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil)) | |
186 | 186 | if ((av == av)) | |
187 | - | then if (true) | |
188 | - | then throw(toString(X(av[1]))) | |
189 | - | else { | |
190 | - | let aw = T(invoke(al, "calcContractNsbtPriceMATH()", nil, nil)) | |
191 | - | if ((aw == aw)) | |
192 | - | then { | |
193 | - | let ax = X(av[1]) | |
194 | - | let ay = X(av[2]) | |
195 | - | let az = X(av[3]) | |
196 | - | let aA = X(av[4]) | |
197 | - | let aB = X(av[5]) | |
198 | - | let aC = X(av[6]) | |
199 | - | let aD = X(av[7]) | |
200 | - | let aE = X(av[8]) | |
201 | - | let aF = X(av[9]) | |
202 | - | let aG = X(av[10]) | |
203 | - | let aH = X(av[11]) | |
204 | - | let aI = X(aw[1]) | |
205 | - | let aJ = X(aw[2]) | |
206 | - | let aK = getIntegerValue(ai, J()) | |
207 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(ay), toString(az), toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK)], i)) | |
208 | - | } | |
209 | - | else throw("Strict value is not equal to itself.") | |
210 | - | } | |
187 | + | then { | |
188 | + | let aw = T(invoke(al, "calcContractNsbtPriceMATH()", nil, nil)) | |
189 | + | if ((aw == aw)) | |
190 | + | then { | |
191 | + | let ax = X(av[1]) | |
192 | + | let ay = X(av[2]) | |
193 | + | let az = X(av[3]) | |
194 | + | let aA = X(av[4]) | |
195 | + | let aB = X(av[5]) | |
196 | + | let aC = X(av[6]) | |
197 | + | let aD = X(av[7]) | |
198 | + | let aE = X(av[8]) | |
199 | + | let aF = X(av[9]) | |
200 | + | let aG = X(av[10]) | |
201 | + | let aH = X(av[11]) | |
202 | + | let aI = X(aw[1]) | |
203 | + | let aJ = X(aw[2]) | |
204 | + | let aK = getIntegerValue(ai, J()) | |
205 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(ay), toString(az), toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK)], i)) | |
206 | + | } | |
207 | + | else throw("Strict value is not equal to itself.") | |
208 | + | } | |
211 | 209 | else throw("Strict value is not equal to itself.") | |
212 | 210 | } | |
213 | 211 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 271828182 | |
9 | 9 | ||
10 | 10 | let d = 1000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000) | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = toBigInt(100000000) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | func j () = "%s%s__config__neutrinoAddress" | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k () = "neutrino_asset_id" | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l () = "liquidation_contract" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m () = "rpd_contract" | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n () = "auction_contract" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func o () = "control_contract" | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = "bond_asset_id" | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = "balance_lock_" | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = (q() + "waves") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = (q() + "neutrino") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = "min_waves_swap_amount" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u () = "min_neutrino_swap_amount" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v () = "wavesOut_swap_feePart" | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w () = "neutrinoOut_swap_feePart" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func x () = "%s__nsbtLockContract" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func y () = "%s__mathContract" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func z () = "%s__quickSwapLimitDuration" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func A (B) = makeString(["%s%s", "userLastQuickSwapHeight", B], i) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func C (B) = makeString(["%s%s", "quickSwapUserSpentInPeriod", B], i) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func D () = "balance_waves_lock_interval" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func E () = "balance_neutrino_lock_interval" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func F () = "price" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func G (B) = makeString(["%s%s%s", "paramByUser", B, "amount"], i) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func H (B) = makeString(["%s%s%s", "paramByUser", B, "start"], i) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func I () = "%s__minLockAmount" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func J () = "min_waves_nsbt_buy" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func K (L,M) = valueOrErrorMessage(getString(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], "")) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func N (L,M) = valueOrErrorMessage(getInteger(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], "")) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func O (L,M) = valueOrErrorMessage(getBoolean(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], "")) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func P (Q,R) = fraction(fraction(Q, a, R), f, d) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func S (Q,R) = fraction(fraction(Q, R, a), d, f) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func T (U) = { | |
116 | 116 | let V = U | |
117 | 117 | if ($isInstanceOf(V, "List[Any]")) | |
118 | 118 | then { | |
119 | 119 | let W = V | |
120 | 120 | W | |
121 | 121 | } | |
122 | 122 | else throw("fail to cast into List[Any]") | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func X (U) = { | |
127 | 127 | let V = U | |
128 | 128 | if ($isInstanceOf(V, "Int")) | |
129 | 129 | then { | |
130 | 130 | let Y = V | |
131 | 131 | Y | |
132 | 132 | } | |
133 | 133 | else throw("fail to cast into Int") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func Z (U) = { | |
138 | 138 | let V = U | |
139 | 139 | if ($isInstanceOf(V, "String")) | |
140 | 140 | then { | |
141 | 141 | let aa = V | |
142 | 142 | aa | |
143 | 143 | } | |
144 | 144 | else throw("fail to cast into String") | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ab (ac,ad) = fraction(toBigInt(ac), h, toBigInt(ad)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ae (U,af) = toInt(fraction(U, toBigInt(af), h)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | let ag = addressFromStringValue(K(this, j())) | |
155 | 155 | ||
156 | 156 | let ah = addressFromStringValue(K(ag, o())) | |
157 | 157 | ||
158 | 158 | let ai = addressFromStringValue(K(ag, n())) | |
159 | 159 | ||
160 | 160 | let aj = K(ag, l()) | |
161 | 161 | ||
162 | 162 | let ak = K(ag, m()) | |
163 | 163 | ||
164 | 164 | let al = addressFromStringValue(K(this, y())) | |
165 | 165 | ||
166 | 166 | let am = addressFromStringValue(K(this, x())) | |
167 | 167 | ||
168 | 168 | let an = K(ag, k()) | |
169 | 169 | ||
170 | 170 | let ao = fromBase58String(an) | |
171 | 171 | ||
172 | 172 | let ap = getStringValue(ag, p()) | |
173 | 173 | ||
174 | 174 | let aq = fromBase58String(ap) | |
175 | 175 | ||
176 | 176 | @Callable(ar) | |
177 | 177 | func constructor (as,at,au) = if ((ar.caller != this)) | |
178 | 178 | then throw("not authorized") | |
179 | 179 | else [StringEntry(j(), as), StringEntry(x(), at), StringEntry(y(), au)] | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(ar) | |
184 | 184 | func neutrinoStatsREADONLY () = { | |
185 | 185 | let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil)) | |
186 | 186 | if ((av == av)) | |
187 | - | then if (true) | |
188 | - | then throw(toString(X(av[1]))) | |
189 | - | else { | |
190 | - | let aw = T(invoke(al, "calcContractNsbtPriceMATH()", nil, nil)) | |
191 | - | if ((aw == aw)) | |
192 | - | then { | |
193 | - | let ax = X(av[1]) | |
194 | - | let ay = X(av[2]) | |
195 | - | let az = X(av[3]) | |
196 | - | let aA = X(av[4]) | |
197 | - | let aB = X(av[5]) | |
198 | - | let aC = X(av[6]) | |
199 | - | let aD = X(av[7]) | |
200 | - | let aE = X(av[8]) | |
201 | - | let aF = X(av[9]) | |
202 | - | let aG = X(av[10]) | |
203 | - | let aH = X(av[11]) | |
204 | - | let aI = X(aw[1]) | |
205 | - | let aJ = X(aw[2]) | |
206 | - | let aK = getIntegerValue(ai, J()) | |
207 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(ay), toString(az), toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK)], i)) | |
208 | - | } | |
209 | - | else throw("Strict value is not equal to itself.") | |
210 | - | } | |
187 | + | then { | |
188 | + | let aw = T(invoke(al, "calcContractNsbtPriceMATH()", nil, nil)) | |
189 | + | if ((aw == aw)) | |
190 | + | then { | |
191 | + | let ax = X(av[1]) | |
192 | + | let ay = X(av[2]) | |
193 | + | let az = X(av[3]) | |
194 | + | let aA = X(av[4]) | |
195 | + | let aB = X(av[5]) | |
196 | + | let aC = X(av[6]) | |
197 | + | let aD = X(av[7]) | |
198 | + | let aE = X(av[8]) | |
199 | + | let aF = X(av[9]) | |
200 | + | let aG = X(av[10]) | |
201 | + | let aH = X(av[11]) | |
202 | + | let aI = X(aw[1]) | |
203 | + | let aJ = X(aw[2]) | |
204 | + | let aK = getIntegerValue(ai, J()) | |
205 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(ay), toString(az), toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK)], i)) | |
206 | + | } | |
207 | + | else throw("Strict value is not equal to itself.") | |
208 | + | } | |
211 | 209 | else throw("Strict value is not equal to itself.") | |
212 | 210 | } | |
213 | 211 | ||
214 | 212 | ||
215 | 213 | ||
216 | 214 | @Callable(ar) | |
217 | 215 | func swapInfoREADONLY (aL) = { | |
218 | 216 | let ax = getIntegerValue(ah, F()) | |
219 | 217 | let aM = getIntegerValue(ag, t()) | |
220 | 218 | let aN = getIntegerValue(ag, u()) | |
221 | 219 | let aO = getIntegerValue(ag, v()) | |
222 | 220 | let aP = getIntegerValue(ag, w()) | |
223 | 221 | let aQ = getIntegerValue(ag, E()) | |
224 | 222 | let aR = getIntegerValue(ag, D()) | |
225 | 223 | let aS = if ((aL == "")) | |
226 | 224 | then $Tuple4(0, 0, 0, 0) | |
227 | 225 | else { | |
228 | 226 | let aT = valueOrElse(getInteger(am, G(aL)), 0) | |
229 | 227 | if ((aT == aT)) | |
230 | 228 | then { | |
231 | 229 | let aU = X(invoke(al, "calcSwapLimitMATH", [aT], nil)) | |
232 | 230 | if ((aU == aU)) | |
233 | 231 | then { | |
234 | 232 | let aV = getIntegerValue(ag, z()) | |
235 | 233 | let aW = valueOrElse(getInteger(ag, A(aL)), 0) | |
236 | 234 | let aX = ((height - aW) > aV) | |
237 | 235 | let aY = if (aX) | |
238 | 236 | then 0 | |
239 | 237 | else valueOrElse(getInteger(ag, C(aL)), 0) | |
240 | 238 | let aZ = if (aX) | |
241 | 239 | then 0 | |
242 | 240 | else (aV - (height - aW)) | |
243 | 241 | let ba = P(aU, ax) | |
244 | 242 | $Tuple4(aY, aZ, aU, ba) | |
245 | 243 | } | |
246 | 244 | else throw("Strict value is not equal to itself.") | |
247 | 245 | } | |
248 | 246 | else throw("Strict value is not equal to itself.") | |
249 | 247 | } | |
250 | 248 | let aY = aS._1 | |
251 | 249 | let bb = aS._2 | |
252 | 250 | let bc = aS._3 | |
253 | 251 | let bd = aS._4 | |
254 | 252 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(bb), toString(bd), toString(bc), toString(aY)], i)) | |
255 | 253 | } | |
256 | 254 | ||
257 | 255 | ||
258 | 256 | ||
259 | 257 | @Callable(ar) | |
260 | 258 | func gnsbtInfoREADONLY (aL) = { | |
261 | 259 | let be = 10000 | |
262 | 260 | let bf = 10000 | |
263 | 261 | let bg = 10000 | |
264 | 262 | let bh = 10000 | |
265 | 263 | let bi = 10000 | |
266 | 264 | let bj = 10000 | |
267 | 265 | let bk = 10000 | |
268 | 266 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk)], i)) | |
269 | 267 | } | |
270 | 268 | ||
271 | 269 | ||
272 | 270 | ||
273 | 271 | @Callable(ar) | |
274 | 272 | func buyNsbtREADONLY (bl) = { | |
275 | 273 | let bm = valueOrElse(getInteger(ai, J()), 10) | |
276 | 274 | if (((bm * f) > bl)) | |
277 | 275 | then throw((("min " + toString(bm)) + " waves expected")) | |
278 | 276 | else { | |
279 | 277 | let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil)) | |
280 | 278 | if ((av == av)) | |
281 | 279 | then { | |
282 | 280 | let ax = X(av[1]) | |
283 | 281 | let bn = X(av[4]) | |
284 | 282 | let aC = X(av[6]) | |
285 | 283 | let aG = X(av[10]) | |
286 | 284 | let bo = value(assetInfo(aq)).quantity | |
287 | 285 | let bp = T(invoke(al, "curveFunctionMATH", [bn, aC, ax, bo, aG, bl], nil)) | |
288 | 286 | if ((bp == bp)) | |
289 | 287 | then { | |
290 | 288 | let bq = X(bp[1]) | |
291 | 289 | if ((0 >= bq)) | |
292 | 290 | then throw("nsbtAmount <= 0") | |
293 | 291 | else if ((bl > (bq * 9223372))) | |
294 | 292 | then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bl)) + "/") + toString(bq))) | |
295 | 293 | else $Tuple2(nil, makeString(["%d", toString(bq)], i)) | |
296 | 294 | } | |
297 | 295 | else throw("Strict value is not equal to itself.") | |
298 | 296 | } | |
299 | 297 | else throw("Strict value is not equal to itself.") | |
300 | 298 | } | |
301 | 299 | } | |
302 | 300 | ||
303 | 301 | ||
304 | 302 | ||
305 | 303 | @Callable(ar) | |
306 | 304 | func minStakedAmountREADONLY () = $Tuple2(nil, makeString(["%d", toString(N(am, I()))], i)) | |
307 | 305 | ||
308 | 306 | ||
309 | 307 | ||
310 | 308 | @Callable(ar) | |
311 | 309 | func mergedStakeREADONLY (br,bs,bt,bu) = { | |
312 | 310 | let bv = X(invoke(al, "mergeStakesMATH", [br, bs, bt, bu], nil)) | |
313 | 311 | if ((bv == bv)) | |
314 | 312 | then $Tuple2(nil, makeString(["%d%d", toString((br + bt)), toString(bv)], i)) | |
315 | 313 | else throw("Strict value is not equal to itself.") | |
316 | 314 | } | |
317 | 315 | ||
318 | 316 | ||
319 | 317 | ||
320 | 318 | @Callable(ar) | |
321 | 319 | func unstakeComissionAmountREADONLY (Q,bw) = { | |
322 | 320 | let bx = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bw], nil)) | |
323 | 321 | if ((bx == bx)) | |
324 | 322 | then $Tuple2(nil, makeString(["%d", toString(bx)], i)) | |
325 | 323 | else throw("Strict value is not equal to itself.") | |
326 | 324 | } | |
327 | 325 | ||
328 | 326 |
github/deemru/w8io/026f985 38.55 ms ◑