tx · DZBPMfSX4Wo5g67P5CiYefi13qT3vmRRXrxeMdwVfwVC 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS: -0.02000000 Waves 2022.02.25 17:36 [1939283] smart account 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS > SELF 0.00000000 Waves
{ "type": 13, "id": "DZBPMfSX4Wo5g67P5CiYefi13qT3vmRRXrxeMdwVfwVC", "fee": 2000000, "feeAssetId": null, "timestamp": 1645799839995, "version": 1, "sender": "3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS", "senderPublicKey": "rqCnkHfz5ix6HNKiVvYE3URUtLs6f2nWzt4hpdGGQdm", "proofs": [ "5VRTgKaWRFBnHmuBGPxPGVkAUAujnL8obwkCWVsBozENPGDt9gRv9y7vu2JYbUh3qkawT2VsgfG5SPtZQ6YSbRcv" ], "script": "base64:AAIFAAAAAAAAACoIAhIFCgMICAgSABIDCgEIEgMKAQgSAwoBARIAEgYKBAEBAQESBAoCAQEAAAA4AAAAAAhQUklDRUxFVAAAAAAAAA9CQAAAAAAJTVVMVFNDQUxFAAAAAAAAAAAIAAAAAAtFVUxFUk5VTUJFUgAAAAAAEDPE1gAAAAAGc2NhbGU2AAAAAAAAD0JAAAAAAAxzY2FsZTZCaWdJbnQJAAE2AAAAAQAAAAAAAA9CQAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAQAAABJrZXlOZXV0cmlub0FkZHJlc3MAAAAAAgAAAB0lcyVzX19jb25maWdfX25ldXRyaW5vQWRkcmVzcwEAAAASa2V5TmV1dHJpbm9Bc3NldElkAAAAAAIAAAARbmV1dHJpbm9fYXNzZXRfaWQBAAAAHWtleUxpcXVpZGF0aW9uQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAUbGlxdWlkYXRpb25fY29udHJhY3QB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AAAAgIAAAAEJWQlZAkABEwAAAACCQABpAAAAAEJAABkAAAAAgUAAAAHYW1vdW50MQUAAAAHYW1vdW50MgkABEwAAAACCQABpAAAAAEFAAAAAWgFAAAAA25pbAUAAAADU0VQCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAB51bnN0YWtlQ29taXNzaW9uQW1vdW50UkVBRE9OTFkAAAACAAAABmFtb3VudAAAAAtzdGFydEhlaWdodAQAAAABYQkBAAAABWFzSW50AAAAAQkAA/wAAAAEBQAAAAxtYXRoQ29udHJhY3QCAAAAHWdldFVuc3Rha2VDb21pc3Npb25BbW91bnRNQVRICQAETAAAAAIFAAAABmFtb3VudAkABEwAAAACBQAAAAtzdGFydEhlaWdodAUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWEFAAAAAWEJAAUUAAAAAgUAAAADbmlsCQAEuQAAAAIJAARMAAAAAgIAAAACJWQJAARMAAAAAgkAAaQAAAABBQAAAAFhBQAAAANuaWwFAAAAA1NFUAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAkI/7uw==", "chainId": 84, "height": 1939283, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6nJwJ9yrHYtBgYUfeZDYnP3B99Y3FVi5AcZqjBoX4r6o Next: DUVAaKQRu5waJfFhG6NjsV2uEMgfgiMszeffoeET61f7 Diff:
Old | New | Differences | |
---|---|---|---|
226 | 226 | let aT = valueOrElse(getInteger(am, G(aL)), 0) | |
227 | 227 | if ((aT == aT)) | |
228 | 228 | then { | |
229 | - | let aU = | |
229 | + | let aU = T(invoke(al, "calcUserSwapLimitsMATH", [aT], nil)) | |
230 | 230 | if ((aU == aU)) | |
231 | 231 | then { | |
232 | - | let aV = getIntegerValue(ag, z()) | |
233 | - | let aW = valueOrElse(getInteger(ag, A(aL)), 0) | |
234 | - | let aX = ((height - aW) > aV) | |
235 | - | let aY = if (aX) | |
236 | - | then 0 | |
237 | - | else valueOrElse(getInteger(ag, C(aL)), 0) | |
238 | - | let aZ = if (aX) | |
239 | - | then 0 | |
240 | - | else (aV - (height - aW)) | |
241 | - | let ba = P(aU, ax) | |
242 | - | $Tuple4(aY, aZ, aU, ba) | |
232 | + | let aV = X(aU[0]) | |
233 | + | let aW = X(aU[1]) | |
234 | + | let aX = X(aU[2]) | |
235 | + | let aY = X(aU[3]) | |
236 | + | $Tuple4(aW, aX, aV, aY) | |
243 | 237 | } | |
244 | 238 | else throw("Strict value is not equal to itself.") | |
245 | 239 | } | |
246 | 240 | else throw("Strict value is not equal to itself.") | |
247 | 241 | } | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
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( | |
242 | + | let aW = aS._1 | |
243 | + | let aZ = aS._2 | |
244 | + | let ba = aS._3 | |
245 | + | let bb = aS._4 | |
246 | + | $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(aZ), toString(bb), toString(ba), toString(aW)], i)) | |
253 | 247 | } | |
254 | 248 | ||
255 | 249 | ||
256 | 250 | ||
257 | 251 | @Callable(ar) | |
258 | 252 | func gnsbtInfoREADONLY (aL) = { | |
253 | + | let bc = 10000 | |
254 | + | let bd = 10000 | |
259 | 255 | let be = 10000 | |
260 | 256 | let bf = 10000 | |
261 | 257 | let bg = 10000 | |
262 | 258 | let bh = 10000 | |
263 | 259 | let bi = 10000 | |
264 | - | let bj = 10000 | |
265 | - | let bk = 10000 | |
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)) | |
260 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi)], i)) | |
267 | 261 | } | |
268 | 262 | ||
269 | 263 | ||
270 | 264 | ||
271 | 265 | @Callable(ar) | |
272 | - | func buyNsbtREADONLY ( | |
273 | - | let | |
274 | - | if (( | |
275 | - | then throw((("min " + toString( | |
266 | + | func buyNsbtREADONLY (bj) = { | |
267 | + | let bk = 100000000 | |
268 | + | if ((bk > bj)) | |
269 | + | then throw((("min " + toString(bk)) + " waves expected")) | |
276 | 270 | else { | |
277 | 271 | let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil)) | |
278 | 272 | if ((av == av)) | |
279 | 273 | then { | |
280 | 274 | let ax = X(av[0]) | |
281 | - | let | |
275 | + | let bl = X(av[3]) | |
282 | 276 | let aC = X(av[5]) | |
283 | 277 | let aG = X(av[9]) | |
284 | - | let | |
285 | - | let | |
286 | - | if (( | |
278 | + | let bm = value(assetInfo(aq)).quantity | |
279 | + | let bn = T(invoke(al, "curveFunctionMATH", [bl, aC, ax, bm, aG, bj], nil)) | |
280 | + | if ((bn == bn)) | |
287 | 281 | then { | |
288 | - | let | |
289 | - | if ((0 >= | |
282 | + | let bo = X(bn[0]) | |
283 | + | if ((0 >= bo)) | |
290 | 284 | then throw("nsbtAmount <= 0") | |
291 | - | else if (( | |
292 | - | then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString( | |
293 | - | else $Tuple2(nil, makeString(["%d", toString( | |
285 | + | else if ((bj > (bo * 9223372))) | |
286 | + | then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bj)) + "/") + toString(bo))) | |
287 | + | else $Tuple2(nil, makeString(["%d", toString(bo)], i)) | |
294 | 288 | } | |
295 | 289 | else throw("Strict value is not equal to itself.") | |
296 | 290 | } | |
306 | 300 | ||
307 | 301 | ||
308 | 302 | @Callable(ar) | |
309 | - | func mergedStakeREADONLY (br,bs | |
310 | - | let | |
311 | - | if (( | |
312 | - | then $Tuple2(nil, makeString(["%d%d", toString(( | |
303 | + | func mergedStakeREADONLY (bp,bq,br,bs) = { | |
304 | + | let bt = X(invoke(al, "mergeStakesMATH", [bp, bq, br, bs], nil)) | |
305 | + | if ((bt == bt)) | |
306 | + | then $Tuple2(nil, makeString(["%d%d", toString((bp + br)), toString(bt)], i)) | |
313 | 307 | else throw("Strict value is not equal to itself.") | |
314 | 308 | } | |
315 | 309 | ||
316 | 310 | ||
317 | 311 | ||
318 | 312 | @Callable(ar) | |
319 | - | func unstakeComissionAmountREADONLY (Q, | |
320 | - | let | |
321 | - | if (( | |
322 | - | then $Tuple2(nil, makeString(["%d", toString( | |
313 | + | func unstakeComissionAmountREADONLY (Q,bu) = { | |
314 | + | let bv = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bu], nil)) | |
315 | + | if ((bv == bv)) | |
316 | + | then $Tuple2(nil, makeString(["%d", toString(bv)], i)) | |
323 | 317 | else throw("Strict value is not equal to itself.") | |
324 | 318 | } | |
325 | 319 |
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 | 187 | then { | |
188 | 188 | let aw = T(invoke(al, "calcContractNsbtPriceMATH", nil, nil)) | |
189 | 189 | if ((aw == aw)) | |
190 | 190 | then { | |
191 | 191 | let ax = X(av[0]) | |
192 | 192 | let ay = X(av[1]) | |
193 | 193 | let az = X(av[2]) | |
194 | 194 | let aA = X(av[3]) | |
195 | 195 | let aB = X(av[4]) | |
196 | 196 | let aC = X(av[5]) | |
197 | 197 | let aD = X(av[6]) | |
198 | 198 | let aE = X(av[7]) | |
199 | 199 | let aF = X(av[8]) | |
200 | 200 | let aG = X(av[9]) | |
201 | 201 | let aH = X(av[10]) | |
202 | 202 | let aI = X(aw[0]) | |
203 | 203 | let aJ = X(aw[1]) | |
204 | 204 | let aK = 100000000 | |
205 | 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 | 206 | } | |
207 | 207 | else throw("Strict value is not equal to itself.") | |
208 | 208 | } | |
209 | 209 | else throw("Strict value is not equal to itself.") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(ar) | |
215 | 215 | func swapInfoREADONLY (aL) = { | |
216 | 216 | let ax = getIntegerValue(ah, F()) | |
217 | 217 | let aM = getIntegerValue(ag, t()) | |
218 | 218 | let aN = getIntegerValue(ag, u()) | |
219 | 219 | let aO = getIntegerValue(ag, v()) | |
220 | 220 | let aP = getIntegerValue(ag, w()) | |
221 | 221 | let aQ = getIntegerValue(ag, E()) | |
222 | 222 | let aR = getIntegerValue(ag, D()) | |
223 | 223 | let aS = if ((aL == "")) | |
224 | 224 | then $Tuple4(0, 0, 0, 0) | |
225 | 225 | else { | |
226 | 226 | let aT = valueOrElse(getInteger(am, G(aL)), 0) | |
227 | 227 | if ((aT == aT)) | |
228 | 228 | then { | |
229 | - | let aU = | |
229 | + | let aU = T(invoke(al, "calcUserSwapLimitsMATH", [aT], nil)) | |
230 | 230 | if ((aU == aU)) | |
231 | 231 | then { | |
232 | - | let aV = getIntegerValue(ag, z()) | |
233 | - | let aW = valueOrElse(getInteger(ag, A(aL)), 0) | |
234 | - | let aX = ((height - aW) > aV) | |
235 | - | let aY = if (aX) | |
236 | - | then 0 | |
237 | - | else valueOrElse(getInteger(ag, C(aL)), 0) | |
238 | - | let aZ = if (aX) | |
239 | - | then 0 | |
240 | - | else (aV - (height - aW)) | |
241 | - | let ba = P(aU, ax) | |
242 | - | $Tuple4(aY, aZ, aU, ba) | |
232 | + | let aV = X(aU[0]) | |
233 | + | let aW = X(aU[1]) | |
234 | + | let aX = X(aU[2]) | |
235 | + | let aY = X(aU[3]) | |
236 | + | $Tuple4(aW, aX, aV, aY) | |
243 | 237 | } | |
244 | 238 | else throw("Strict value is not equal to itself.") | |
245 | 239 | } | |
246 | 240 | else throw("Strict value is not equal to itself.") | |
247 | 241 | } | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
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( | |
242 | + | let aW = aS._1 | |
243 | + | let aZ = aS._2 | |
244 | + | let ba = aS._3 | |
245 | + | let bb = aS._4 | |
246 | + | $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(aZ), toString(bb), toString(ba), toString(aW)], i)) | |
253 | 247 | } | |
254 | 248 | ||
255 | 249 | ||
256 | 250 | ||
257 | 251 | @Callable(ar) | |
258 | 252 | func gnsbtInfoREADONLY (aL) = { | |
253 | + | let bc = 10000 | |
254 | + | let bd = 10000 | |
259 | 255 | let be = 10000 | |
260 | 256 | let bf = 10000 | |
261 | 257 | let bg = 10000 | |
262 | 258 | let bh = 10000 | |
263 | 259 | let bi = 10000 | |
264 | - | let bj = 10000 | |
265 | - | let bk = 10000 | |
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)) | |
260 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi)], i)) | |
267 | 261 | } | |
268 | 262 | ||
269 | 263 | ||
270 | 264 | ||
271 | 265 | @Callable(ar) | |
272 | - | func buyNsbtREADONLY ( | |
273 | - | let | |
274 | - | if (( | |
275 | - | then throw((("min " + toString( | |
266 | + | func buyNsbtREADONLY (bj) = { | |
267 | + | let bk = 100000000 | |
268 | + | if ((bk > bj)) | |
269 | + | then throw((("min " + toString(bk)) + " waves expected")) | |
276 | 270 | else { | |
277 | 271 | let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil)) | |
278 | 272 | if ((av == av)) | |
279 | 273 | then { | |
280 | 274 | let ax = X(av[0]) | |
281 | - | let | |
275 | + | let bl = X(av[3]) | |
282 | 276 | let aC = X(av[5]) | |
283 | 277 | let aG = X(av[9]) | |
284 | - | let | |
285 | - | let | |
286 | - | if (( | |
278 | + | let bm = value(assetInfo(aq)).quantity | |
279 | + | let bn = T(invoke(al, "curveFunctionMATH", [bl, aC, ax, bm, aG, bj], nil)) | |
280 | + | if ((bn == bn)) | |
287 | 281 | then { | |
288 | - | let | |
289 | - | if ((0 >= | |
282 | + | let bo = X(bn[0]) | |
283 | + | if ((0 >= bo)) | |
290 | 284 | then throw("nsbtAmount <= 0") | |
291 | - | else if (( | |
292 | - | then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString( | |
293 | - | else $Tuple2(nil, makeString(["%d", toString( | |
285 | + | else if ((bj > (bo * 9223372))) | |
286 | + | then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bj)) + "/") + toString(bo))) | |
287 | + | else $Tuple2(nil, makeString(["%d", toString(bo)], i)) | |
294 | 288 | } | |
295 | 289 | else throw("Strict value is not equal to itself.") | |
296 | 290 | } | |
297 | 291 | else throw("Strict value is not equal to itself.") | |
298 | 292 | } | |
299 | 293 | } | |
300 | 294 | ||
301 | 295 | ||
302 | 296 | ||
303 | 297 | @Callable(ar) | |
304 | 298 | func minStakedAmountREADONLY () = $Tuple2(nil, makeString(["%d", toString(N(am, I()))], i)) | |
305 | 299 | ||
306 | 300 | ||
307 | 301 | ||
308 | 302 | @Callable(ar) | |
309 | - | func mergedStakeREADONLY (br,bs | |
310 | - | let | |
311 | - | if (( | |
312 | - | then $Tuple2(nil, makeString(["%d%d", toString(( | |
303 | + | func mergedStakeREADONLY (bp,bq,br,bs) = { | |
304 | + | let bt = X(invoke(al, "mergeStakesMATH", [bp, bq, br, bs], nil)) | |
305 | + | if ((bt == bt)) | |
306 | + | then $Tuple2(nil, makeString(["%d%d", toString((bp + br)), toString(bt)], i)) | |
313 | 307 | else throw("Strict value is not equal to itself.") | |
314 | 308 | } | |
315 | 309 | ||
316 | 310 | ||
317 | 311 | ||
318 | 312 | @Callable(ar) | |
319 | - | func unstakeComissionAmountREADONLY (Q, | |
320 | - | let | |
321 | - | if (( | |
322 | - | then $Tuple2(nil, makeString(["%d", toString( | |
313 | + | func unstakeComissionAmountREADONLY (Q,bu) = { | |
314 | + | let bv = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bu], nil)) | |
315 | + | if ((bv == bv)) | |
316 | + | then $Tuple2(nil, makeString(["%d", toString(bv)], i)) | |
323 | 317 | else throw("Strict value is not equal to itself.") | |
324 | 318 | } | |
325 | 319 | ||
326 | 320 |
github/deemru/w8io/026f985 51.92 ms ◑