tx · 9XFbBUXPLZcJpYhU53UhmPggLGwL8hE2bbSzb8GpV2nk 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.04000000 Waves 2022.08.23 14:58 [2197101] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "9XFbBUXPLZcJpYhU53UhmPggLGwL8hE2bbSzb8GpV2nk", "fee": 4000000, "feeAssetId": null, "timestamp": 1661256047355, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "5T2HWPRYwoxcTXPJA8BqkuCZg1qjtxBREDZJbkC74U4U5H8B73avHShz1PFPnnTseRREruQ5bKjF5vgNEPVcC8p4", "pHrME2iqAFsDQD87WXAfoqSQjCxkRiaM8WHCsjoxjWU5k4oAdD4WGJGPvdse98jE2MFQcGwUcCRrFRLV2TCKz9y", "3Tg3xCL429YdmbdSzWqXgkDiMVHaubBSRLJ5ZA7wH3JmBBHbNEzsd7uxMA9sLeFA3cXJBBMSvVAvUCJg6WzEZWQA" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABXAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAdN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Alib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAPcPwq3", "chainId": 84, "height": 2197101, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DrecysSgZVcyzTwuipRov3KjjtBhzUMG37Qdbj38XRvk Next: HryhGkGQ4wsumQgUB5mtqa3SKHorT4xmBEML2My3VyzK Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | func J () = "%s%s__config__swapBParam" | |
77 | 77 | ||
78 | 78 | ||
79 | - | func K () = " | |
79 | + | func K () = "%s%s__config__usdnSwapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func L () = " | |
82 | + | func L () = "%s%s__config__usdnSwapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func M () = " | |
85 | + | func M () = "neutrino_asset_id" | |
86 | 86 | ||
87 | 87 | ||
88 | - | func N () = " | |
88 | + | func N () = "bond_asset_id" | |
89 | 89 | ||
90 | 90 | ||
91 | - | func O () = | |
91 | + | func O () = "surf_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func P () = | |
94 | + | func P () = "balance_lock_" | |
95 | 95 | ||
96 | 96 | ||
97 | - | func Q () = " | |
97 | + | func Q () = (P() + "waves") | |
98 | 98 | ||
99 | 99 | ||
100 | - | func R ( | |
100 | + | func R () = (P() + "neutrino") | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func S () = "swaps_timeframe" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func | |
106 | + | func T (U) = makeString(["%s%s", "userLastQuickSwapHeight", U], d) | |
107 | 107 | ||
108 | 108 | ||
109 | - | func V ( | |
109 | + | func V (U) = makeString(["%s%s", "quickSwapUserSpentInPeriod", U], d) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func | |
112 | + | func W () = "price" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func X (Y,Z) = valueOrErrorMessage(getString(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
116 | 116 | ||
117 | 117 | ||
118 | - | func aa ( | |
118 | + | func aa (Y,Z) = valueOrErrorMessage(getInteger(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func ab ( | |
121 | + | func ab (Y,Z) = valueOrElse(getInteger(Y, Z), 0) | |
122 | 122 | ||
123 | 123 | ||
124 | - | func | |
124 | + | func ac (Y,Z) = valueOrErrorMessage(getBoolean(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
125 | 125 | ||
126 | 126 | ||
127 | - | func | |
127 | + | func ad (ae,af) = fraction(ae, j, af) | |
128 | 128 | ||
129 | 129 | ||
130 | - | func | |
130 | + | func ag (ae,af) = fraction(ae, af, j) | |
131 | 131 | ||
132 | 132 | ||
133 | - | func al (aj) = { | |
134 | - | let am = aj | |
135 | - | if ($isInstanceOf(am, "List[Any]")) | |
133 | + | func ah (ai,aj) = fraction(toBigInt(ai), m, toBigInt(aj)) | |
134 | + | ||
135 | + | ||
136 | + | func ak (al,am) = toInt(fraction(al, toBigInt(am), m)) | |
137 | + | ||
138 | + | ||
139 | + | func an (al) = { | |
140 | + | let ao = al | |
141 | + | if ($isInstanceOf(ao, "List[Any]")) | |
136 | 142 | then { | |
137 | - | let | |
138 | - | | |
143 | + | let ap = ao | |
144 | + | ap | |
139 | 145 | } | |
140 | 146 | else throw("fail to cast into List[Any]") | |
141 | 147 | } | |
142 | 148 | ||
143 | 149 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
150 | + | func aq (al) = { | |
151 | + | let ao = al | |
152 | + | if ($isInstanceOf(ao, "Int")) | |
147 | 153 | then { | |
148 | - | let | |
149 | - | | |
154 | + | let ar = ao | |
155 | + | ar | |
150 | 156 | } | |
151 | 157 | else throw("fail to cast into Int") | |
152 | 158 | } | |
153 | 159 | ||
154 | 160 | ||
155 | - | func | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
161 | + | func as (al) = { | |
162 | + | let ao = al | |
163 | + | if ($isInstanceOf(ao, "String")) | |
158 | 164 | then { | |
159 | - | let | |
160 | - | | |
165 | + | let at = ao | |
166 | + | at | |
161 | 167 | } | |
162 | 168 | else throw("fail to cast into String") | |
163 | 169 | } | |
164 | 170 | ||
165 | 171 | ||
166 | - | let | |
172 | + | let au = 1 | |
167 | 173 | ||
168 | - | let | |
174 | + | let av = 2 | |
169 | 175 | ||
170 | - | let | |
176 | + | let aw = 3 | |
171 | 177 | ||
172 | - | let | |
178 | + | let ax = 4 | |
173 | 179 | ||
174 | - | let | |
180 | + | let ay = 5 | |
175 | 181 | ||
176 | - | let | |
182 | + | let az = 6 | |
177 | 183 | ||
178 | - | let | |
184 | + | let aA = 7 | |
179 | 185 | ||
180 | - | let | |
186 | + | let aB = 8 | |
181 | 187 | ||
182 | - | let | |
188 | + | let aC = 9 | |
183 | 189 | ||
184 | - | func | |
190 | + | func aD () = "%s%s__config__controlAddress" | |
185 | 191 | ||
186 | 192 | ||
187 | - | func | |
193 | + | func aE () = "%s__controlConfig" | |
188 | 194 | ||
189 | 195 | ||
190 | - | func | |
196 | + | func aF (aG) = split(X(aG, aE()), d) | |
191 | 197 | ||
192 | 198 | ||
193 | - | func | |
199 | + | func aH (aI,aJ) = valueOrErrorMessage(addressFromString(aI[aJ]), ("Control cfg doesn't contain address at index " + toString(aJ))) | |
194 | 200 | ||
195 | 201 | ||
196 | - | let | |
202 | + | let aK = addressFromStringValue(valueOrElse(getString(this, aD()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
197 | 203 | ||
198 | - | let | |
204 | + | let aI = aF(aK) | |
199 | 205 | ||
200 | - | let | |
206 | + | let aL = aH(aI, au) | |
201 | 207 | ||
202 | - | let | |
208 | + | let aM = aH(aI, av) | |
203 | 209 | ||
204 | - | let | |
210 | + | let aN = aH(aI, ay) | |
205 | 211 | ||
206 | - | let | |
212 | + | let aO = fromBase58String(X(aL, M())) | |
207 | 213 | ||
208 | - | let | |
214 | + | let aP = fromBase58String(getStringValue(aL, N())) | |
209 | 215 | ||
210 | - | let | |
216 | + | let aQ = fromBase58String(getStringValue(aM, O())) | |
211 | 217 | ||
212 | - | @Callable(aP) | |
213 | - | func constructor (aQ,aR,aS) = if ((aP.caller != this)) | |
218 | + | let aR = getIntegerValue(aK, W()) | |
219 | + | ||
220 | + | let aS = valueOrElse(getInteger(aL, R()), 0) | |
221 | + | ||
222 | + | let aT = valueOrElse(getInteger(aL, Q()), 0) | |
223 | + | ||
224 | + | let aU = (wavesBalance(aL).regular - aT) | |
225 | + | ||
226 | + | let aV = ag(aU, aR) | |
227 | + | ||
228 | + | let aW = (((aS + value(assetInfo(aO)).quantity) - assetBalance(aL, aO)) - assetBalance(aN, aO)) | |
229 | + | ||
230 | + | let aX = if ((aW == 0)) | |
231 | + | then 0 | |
232 | + | else fraction(aV, h, aW) | |
233 | + | ||
234 | + | @Callable(aY) | |
235 | + | func constructor (aZ,ba,bb) = if ((aY.caller != this)) | |
214 | 236 | then throw("not authorized") | |
215 | - | else [StringEntry(H(), | |
237 | + | else [StringEntry(H(), aZ), IntegerEntry(I(), bb)] | |
216 | 238 | ||
217 | 239 | ||
218 | 240 | ||
219 | - | @Callable( | |
220 | - | func calcSwapLimitREADONLY ( | |
221 | - | let | |
241 | + | @Callable(aY) | |
242 | + | func calcSwapLimitREADONLY (bc) = { | |
243 | + | let bd = if ((0 >= bc)) | |
222 | 244 | then 0 | |
223 | 245 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | toInt(fraction( | |
246 | + | let be = toBigInt(aa(this, I())) | |
247 | + | let bf = toBigInt(aa(this, J())) | |
248 | + | let bg = pow(toBigInt(bc), 6, bf, 16, 8, CEILING) | |
249 | + | toInt(fraction(be, bg, l)) | |
228 | 250 | } | |
229 | - | $Tuple2(nil, aU) | |
251 | + | let bh = ad(bd, aR) | |
252 | + | let bi = if ((0 >= bc)) | |
253 | + | then 0 | |
254 | + | else { | |
255 | + | let be = toBigInt(aa(this, K())) | |
256 | + | let bf = toBigInt(aa(this, L())) | |
257 | + | let bj = toBigInt(aX) | |
258 | + | let bg = pow(toBigInt(bc), 6, bf, 16, 8, CEILING) | |
259 | + | toInt(fraction(fraction(be, bg, l), bj, i)) | |
260 | + | } | |
261 | + | $Tuple2(nil, [bd, bh, bi]) | |
230 | 262 | } | |
231 | 263 | ||
232 | 264 | ||
233 | 265 | ||
234 | - | @Callable( | |
235 | - | func calculateKREADONLY ( | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
243 | - | then throw((("BR=" + toString( | |
266 | + | @Callable(aY) | |
267 | + | func calculateKREADONLY (bk,bl,af,bm,bn) = { | |
268 | + | let bo = toBigInt(2718281) | |
269 | + | let bp = 6 | |
270 | + | let bq = valueOrElse(getInteger(aM, "nsbtCurveParam_a"), 3) | |
271 | + | let br = valueOrElse(getInteger(aM, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
272 | + | let bs = ag(bk, af) | |
273 | + | let bt = fraction(bs, j, bl) | |
274 | + | if ((bt > 10678564816)) | |
275 | + | then throw((("BR=" + toString(bt)) + " > 10678.564816% will overflow exponent")) | |
244 | 276 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2(nil, [ | |
277 | + | let bu = (bq * (bt - j)) | |
278 | + | let bv = pow(bo, bp, toBigInt(bu), b, c, DOWN) | |
279 | + | let bw = fraction(toBigInt(br), bv, i) | |
280 | + | $Tuple2(nil, [bq, br, bs, bt, bu, toString(bv), toString(bw)]) | |
249 | 281 | } | |
250 | 282 | } | |
251 | 283 | ||
252 | 284 | ||
253 | 285 | ||
254 | - | @Callable( | |
255 | - | func curveFunctionREADONLY ( | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple2(nil, [ | |
286 | + | @Callable(aY) | |
287 | + | func curveFunctionREADONLY (bx) = { | |
288 | + | let by = an(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
289 | + | let af = aq(by[v]) | |
290 | + | let bk = aq(by[y]) | |
291 | + | let bl = aq(by[A]) | |
292 | + | let bn = aq(by[E]) | |
293 | + | let bm = aq(by[F]) | |
294 | + | let bz = an(invoke(this, "calculateKREADONLY", [bk, bl, af, bm, bn], nil)) | |
295 | + | let bw = parseBigIntValue(as(bz[u])) | |
296 | + | let bA = ag(bx, af) | |
297 | + | let bB = toBigInt(bm) | |
298 | + | let bC = toBigInt((bm - bn)) | |
299 | + | let bD = fraction(toBigInt(bA), m, bw) | |
300 | + | let bE = fraction(bD, bC, bB) | |
301 | + | let bF = toInt(fraction(bC, bB, (bE + bB))) | |
302 | + | let bG = ((bm - bn) - bF) | |
303 | + | $Tuple2(nil, [bG, bA, bk, bl, bm, bn, aq(bz[o]), aq(bz[p]), aq(bz[q]), af, aq(bz[r]), aq(bz[s]), bz[t], bz[u], toString(bD), toString(bE), bF]) | |
272 | 304 | } | |
273 | 305 | ||
274 | 306 | ||
275 | 307 | ||
276 | - | @Callable( | |
277 | - | func surfFunctionREADONLY ( | |
308 | + | @Callable(aY) | |
309 | + | func surfFunctionREADONLY (ae,bH) = if ((0 > ae)) | |
278 | 310 | then throw("amount should be positive") | |
279 | 311 | else { | |
280 | - | let bm = al(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
281 | - | let ad = ao(bm[v]) | |
282 | - | let bw = toBigInt(ad) | |
283 | - | let bx = ao(bm[y]) | |
284 | - | let by = toBigInt(bx) | |
285 | - | let bz = ao(bm[A]) | |
286 | - | let bA = toBigInt(bz) | |
287 | - | let bB = ao(bm[D]) | |
288 | - | if ((bB >= h)) | |
289 | - | then throw((("BR = " + toString(bB)) + ", cannot buy SURF")) | |
312 | + | let af = aR | |
313 | + | let bI = toBigInt(af) | |
314 | + | let bJ = toBigInt(aU) | |
315 | + | let bK = aW | |
316 | + | let bL = toBigInt(bK) | |
317 | + | if ((aX >= h)) | |
318 | + | then throw((("BR = " + toString(aX)) + ", cannot buy SURF")) | |
290 | 319 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | then if (( | |
295 | - | then | |
296 | - | else | |
297 | - | else if (( | |
298 | - | then if (( | |
299 | - | then | |
300 | - | else | |
320 | + | let bM = (fraction(bK, j, af) - aU) | |
321 | + | let bN = (bK - fraction(aU, af, j)) | |
322 | + | let bO = if ((bH == aO)) | |
323 | + | then if ((ae > bN)) | |
324 | + | then bN | |
325 | + | else ae | |
326 | + | else if ((bH == n)) | |
327 | + | then if ((ae > bM)) | |
328 | + | then bM | |
329 | + | else ae | |
301 | 330 | else 0 | |
302 | - | let | |
303 | - | if (( | |
304 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
305 | - | else if (( | |
306 | - | then $Tuple2(nil, [toInt(fraction( | |
331 | + | let bP = toBigInt(bO) | |
332 | + | if ((bH == aO)) | |
333 | + | then $Tuple2(nil, [toInt(fraction(fraction(bP, k, bI), (bL - (bP / g)), bJ)), 0, bO, aU, bK, aX, aU, (bK - bO), fraction(ag(aU, af), h, (bK - bO)), (ae - bO), af]) | |
334 | + | else if ((bH == n)) | |
335 | + | then $Tuple2(nil, [toInt(fraction(bL, log(fraction((bJ + bP), m, bJ), 16, f, 16, 16, HALFUP), m)), bO, 0, aU, bK, aX, (aU + bO), bK, fraction(ag((aU + bO), af), h, bK), (ae - bO), af]) | |
307 | 336 | else throw("Unsupported asset") | |
308 | 337 | } | |
309 | 338 | } | |
310 | 339 | ||
311 | 340 | ||
312 | 341 | ||
313 | - | @Callable( | |
314 | - | func calcContractNsbtPriceSYSREADONLY ( | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2(nil, [ | |
342 | + | @Callable(aY) | |
343 | + | func calcContractNsbtPriceSYSREADONLY (bQ) = { | |
344 | + | let by = an(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
345 | + | let af = aq(by[v]) | |
346 | + | let bk = aq(by[y]) | |
347 | + | let bl = (aq(by[A]) - bQ) | |
348 | + | let bn = (aq(by[E]) + bQ) | |
349 | + | let bm = aq(by[F]) | |
350 | + | let bz = an(invoke(this, "calculateKREADONLY", [bk, bl, af, bm, bn], nil)) | |
351 | + | let bR = parseBigIntValue(as(bz[u])) | |
352 | + | let bS = fraction(toBigInt(bm), m, toBigInt((bm - bn))) | |
353 | + | let bT = fraction(bS, bS, m) | |
354 | + | let bU = fraction(bR, bT, m) | |
355 | + | let bV = toInt(fraction(bU, toBigInt(h), m)) | |
356 | + | let bW = fraction(bV, h, af) | |
357 | + | $Tuple2(nil, [bV, bW]) | |
329 | 358 | } | |
330 | 359 | ||
331 | 360 | ||
332 | 361 | ||
333 | - | @Callable( | |
362 | + | @Callable(aY) | |
334 | 363 | func calcNeutinoMetricsREADONLY () = { | |
335 | - | let bN = getIntegerValue(aI, U()) | |
336 | - | let bO = valueOrElse(getInteger(aJ, P()), 0) | |
337 | - | let bP = valueOrElse(getInteger(aJ, O()), 0) | |
338 | - | let bx = (wavesBalance(aJ).regular - bP) | |
339 | - | let bQ = ae(bx, bN) | |
340 | - | let bR = (((bO + value(assetInfo(aM)).quantity) - assetBalance(aJ, aM)) - assetBalance(aL, aM)) | |
341 | - | let bS = (bQ - bR) | |
342 | - | let bT = (bR - bQ) | |
343 | - | let bU = if ((bR == 0)) | |
364 | + | let bX = (aV - aW) | |
365 | + | let bY = (aW - aV) | |
366 | + | let bZ = if ((aW == 0)) | |
344 | 367 | then 0 | |
345 | - | else (fraction(bS, h, bR) * 100) | |
346 | - | let bB = if ((bR == 0)) | |
347 | - | then 0 | |
348 | - | else fraction(bQ, h, bR) | |
349 | - | let bV = value(assetInfo(aN)).quantity | |
350 | - | let bW = (bV - assetBalance(aK, aN)) | |
351 | - | let bX = value(assetInfo(aO)).quantity | |
352 | - | $Tuple2(nil, [bN, bO, bP, bx, bQ, bR, bS, bU, bB, bW, bV, bX]) | |
368 | + | else (fraction(bX, h, aW) * 100) | |
369 | + | let ca = value(assetInfo(aP)).quantity | |
370 | + | let cb = (ca - assetBalance(aM, aP)) | |
371 | + | let cc = value(assetInfo(aQ)).quantity | |
372 | + | $Tuple2(nil, [aR, aS, aT, aU, aV, aW, bX, bZ, aX, cb, ca, cc]) | |
353 | 373 | } | |
354 | 374 | ||
355 | 375 | ||
356 | 376 | ||
357 | - | @Callable( | |
358 | - | func getUnstakeComissionAmountREADONLY ( | |
377 | + | @Callable(aY) | |
378 | + | func getUnstakeComissionAmountREADONLY (ae,cd,ce) = $Tuple2(nil, fraction(ae, pow(2, 0, fraction(-((height - cd)), j, ce), 8, 8, HALFUP), j)) | |
359 | 379 | ||
360 | 380 | ||
361 | 381 | ||
362 | - | @Callable( | |
363 | - | func mergeStakesREADONLY ( | |
364 | - | let | |
365 | - | let | |
366 | - | $Tuple2(nil, ( | |
382 | + | @Callable(aY) | |
383 | + | func mergeStakesREADONLY (cf,cg,ch,ci,ce) = { | |
384 | + | let cj = fraction(ch, pow(2, 0, fraction((ci - cg), j, ce), 8, 8, HALFUP), j) | |
385 | + | let ck = fraction((cf + ch), j, (cf + cj)) | |
386 | + | $Tuple2(nil, (cg + ((e - (ce * log(ck, 8, 2, 0, 8, HALFUP))) / j))) | |
367 | 387 | } | |
368 | 388 | ||
369 | 389 | ||
370 | - | @Verifier( | |
371 | - | func | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
390 | + | @Verifier(cl) | |
391 | + | func cm () = { | |
392 | + | let cn = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
393 | + | let co = split(valueOrElse(getString(aK, "%s__multisig"), cn), d) | |
394 | + | let cp = ((((if (sigVerify(cl.bodyBytes, cl.proofs[0], fromBase58String(co[0]))) | |
375 | 395 | then 1 | |
376 | - | else 0) + (if (sigVerify( | |
396 | + | else 0) + (if (sigVerify(cl.bodyBytes, cl.proofs[1], fromBase58String(co[1]))) | |
377 | 397 | then 1 | |
378 | - | else 0)) + (if (sigVerify( | |
398 | + | else 0)) + (if (sigVerify(cl.bodyBytes, cl.proofs[2], fromBase58String(co[2]))) | |
379 | 399 | then 1 | |
380 | - | else 0)) + (if (sigVerify( | |
400 | + | else 0)) + (if (sigVerify(cl.bodyBytes, cl.proofs[3], fromBase58String(co[3]))) | |
381 | 401 | then 2 | |
382 | 402 | else 0)) | |
383 | - | ( | |
403 | + | (cp >= 3) | |
384 | 404 | } | |
385 | 405 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 16 | |
9 | 9 | ||
10 | 10 | let d = "__" | |
11 | 11 | ||
12 | 12 | let e = 50000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(27182818284590452) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1000000) | |
21 | 21 | ||
22 | 22 | let j = 100000000 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(100000000) | |
25 | 25 | ||
26 | 26 | let l = toBigInt(10000000000) | |
27 | 27 | ||
28 | 28 | let m = toBigInt(10000000000000000) | |
29 | 29 | ||
30 | 30 | let n = fromBase58String("WAVES") | |
31 | 31 | ||
32 | 32 | let o = 0 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 5 | |
43 | 43 | ||
44 | 44 | let u = 6 | |
45 | 45 | ||
46 | 46 | let v = 0 | |
47 | 47 | ||
48 | 48 | let w = 1 | |
49 | 49 | ||
50 | 50 | let x = 2 | |
51 | 51 | ||
52 | 52 | let y = 3 | |
53 | 53 | ||
54 | 54 | let z = 4 | |
55 | 55 | ||
56 | 56 | let A = 5 | |
57 | 57 | ||
58 | 58 | let B = 6 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | let D = 8 | |
63 | 63 | ||
64 | 64 | let E = 9 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = 11 | |
69 | 69 | ||
70 | 70 | func H () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func I () = "%s%s__config__swapAParam" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func J () = "%s%s__config__swapBParam" | |
77 | 77 | ||
78 | 78 | ||
79 | - | func K () = " | |
79 | + | func K () = "%s%s__config__usdnSwapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func L () = " | |
82 | + | func L () = "%s%s__config__usdnSwapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func M () = " | |
85 | + | func M () = "neutrino_asset_id" | |
86 | 86 | ||
87 | 87 | ||
88 | - | func N () = " | |
88 | + | func N () = "bond_asset_id" | |
89 | 89 | ||
90 | 90 | ||
91 | - | func O () = | |
91 | + | func O () = "surf_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func P () = | |
94 | + | func P () = "balance_lock_" | |
95 | 95 | ||
96 | 96 | ||
97 | - | func Q () = " | |
97 | + | func Q () = (P() + "waves") | |
98 | 98 | ||
99 | 99 | ||
100 | - | func R ( | |
100 | + | func R () = (P() + "neutrino") | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func S () = "swaps_timeframe" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func | |
106 | + | func T (U) = makeString(["%s%s", "userLastQuickSwapHeight", U], d) | |
107 | 107 | ||
108 | 108 | ||
109 | - | func V ( | |
109 | + | func V (U) = makeString(["%s%s", "quickSwapUserSpentInPeriod", U], d) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func | |
112 | + | func W () = "price" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func X (Y,Z) = valueOrErrorMessage(getString(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
116 | 116 | ||
117 | 117 | ||
118 | - | func aa ( | |
118 | + | func aa (Y,Z) = valueOrErrorMessage(getInteger(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func ab ( | |
121 | + | func ab (Y,Z) = valueOrElse(getInteger(Y, Z), 0) | |
122 | 122 | ||
123 | 123 | ||
124 | - | func | |
124 | + | func ac (Y,Z) = valueOrErrorMessage(getBoolean(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
125 | 125 | ||
126 | 126 | ||
127 | - | func | |
127 | + | func ad (ae,af) = fraction(ae, j, af) | |
128 | 128 | ||
129 | 129 | ||
130 | - | func | |
130 | + | func ag (ae,af) = fraction(ae, af, j) | |
131 | 131 | ||
132 | 132 | ||
133 | - | func al (aj) = { | |
134 | - | let am = aj | |
135 | - | if ($isInstanceOf(am, "List[Any]")) | |
133 | + | func ah (ai,aj) = fraction(toBigInt(ai), m, toBigInt(aj)) | |
134 | + | ||
135 | + | ||
136 | + | func ak (al,am) = toInt(fraction(al, toBigInt(am), m)) | |
137 | + | ||
138 | + | ||
139 | + | func an (al) = { | |
140 | + | let ao = al | |
141 | + | if ($isInstanceOf(ao, "List[Any]")) | |
136 | 142 | then { | |
137 | - | let | |
138 | - | | |
143 | + | let ap = ao | |
144 | + | ap | |
139 | 145 | } | |
140 | 146 | else throw("fail to cast into List[Any]") | |
141 | 147 | } | |
142 | 148 | ||
143 | 149 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
150 | + | func aq (al) = { | |
151 | + | let ao = al | |
152 | + | if ($isInstanceOf(ao, "Int")) | |
147 | 153 | then { | |
148 | - | let | |
149 | - | | |
154 | + | let ar = ao | |
155 | + | ar | |
150 | 156 | } | |
151 | 157 | else throw("fail to cast into Int") | |
152 | 158 | } | |
153 | 159 | ||
154 | 160 | ||
155 | - | func | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
161 | + | func as (al) = { | |
162 | + | let ao = al | |
163 | + | if ($isInstanceOf(ao, "String")) | |
158 | 164 | then { | |
159 | - | let | |
160 | - | | |
165 | + | let at = ao | |
166 | + | at | |
161 | 167 | } | |
162 | 168 | else throw("fail to cast into String") | |
163 | 169 | } | |
164 | 170 | ||
165 | 171 | ||
166 | - | let | |
172 | + | let au = 1 | |
167 | 173 | ||
168 | - | let | |
174 | + | let av = 2 | |
169 | 175 | ||
170 | - | let | |
176 | + | let aw = 3 | |
171 | 177 | ||
172 | - | let | |
178 | + | let ax = 4 | |
173 | 179 | ||
174 | - | let | |
180 | + | let ay = 5 | |
175 | 181 | ||
176 | - | let | |
182 | + | let az = 6 | |
177 | 183 | ||
178 | - | let | |
184 | + | let aA = 7 | |
179 | 185 | ||
180 | - | let | |
186 | + | let aB = 8 | |
181 | 187 | ||
182 | - | let | |
188 | + | let aC = 9 | |
183 | 189 | ||
184 | - | func | |
190 | + | func aD () = "%s%s__config__controlAddress" | |
185 | 191 | ||
186 | 192 | ||
187 | - | func | |
193 | + | func aE () = "%s__controlConfig" | |
188 | 194 | ||
189 | 195 | ||
190 | - | func | |
196 | + | func aF (aG) = split(X(aG, aE()), d) | |
191 | 197 | ||
192 | 198 | ||
193 | - | func | |
199 | + | func aH (aI,aJ) = valueOrErrorMessage(addressFromString(aI[aJ]), ("Control cfg doesn't contain address at index " + toString(aJ))) | |
194 | 200 | ||
195 | 201 | ||
196 | - | let | |
202 | + | let aK = addressFromStringValue(valueOrElse(getString(this, aD()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
197 | 203 | ||
198 | - | let | |
204 | + | let aI = aF(aK) | |
199 | 205 | ||
200 | - | let | |
206 | + | let aL = aH(aI, au) | |
201 | 207 | ||
202 | - | let | |
208 | + | let aM = aH(aI, av) | |
203 | 209 | ||
204 | - | let | |
210 | + | let aN = aH(aI, ay) | |
205 | 211 | ||
206 | - | let | |
212 | + | let aO = fromBase58String(X(aL, M())) | |
207 | 213 | ||
208 | - | let | |
214 | + | let aP = fromBase58String(getStringValue(aL, N())) | |
209 | 215 | ||
210 | - | let | |
216 | + | let aQ = fromBase58String(getStringValue(aM, O())) | |
211 | 217 | ||
212 | - | @Callable(aP) | |
213 | - | func constructor (aQ,aR,aS) = if ((aP.caller != this)) | |
218 | + | let aR = getIntegerValue(aK, W()) | |
219 | + | ||
220 | + | let aS = valueOrElse(getInteger(aL, R()), 0) | |
221 | + | ||
222 | + | let aT = valueOrElse(getInteger(aL, Q()), 0) | |
223 | + | ||
224 | + | let aU = (wavesBalance(aL).regular - aT) | |
225 | + | ||
226 | + | let aV = ag(aU, aR) | |
227 | + | ||
228 | + | let aW = (((aS + value(assetInfo(aO)).quantity) - assetBalance(aL, aO)) - assetBalance(aN, aO)) | |
229 | + | ||
230 | + | let aX = if ((aW == 0)) | |
231 | + | then 0 | |
232 | + | else fraction(aV, h, aW) | |
233 | + | ||
234 | + | @Callable(aY) | |
235 | + | func constructor (aZ,ba,bb) = if ((aY.caller != this)) | |
214 | 236 | then throw("not authorized") | |
215 | - | else [StringEntry(H(), | |
237 | + | else [StringEntry(H(), aZ), IntegerEntry(I(), bb)] | |
216 | 238 | ||
217 | 239 | ||
218 | 240 | ||
219 | - | @Callable( | |
220 | - | func calcSwapLimitREADONLY ( | |
221 | - | let | |
241 | + | @Callable(aY) | |
242 | + | func calcSwapLimitREADONLY (bc) = { | |
243 | + | let bd = if ((0 >= bc)) | |
222 | 244 | then 0 | |
223 | 245 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | toInt(fraction( | |
246 | + | let be = toBigInt(aa(this, I())) | |
247 | + | let bf = toBigInt(aa(this, J())) | |
248 | + | let bg = pow(toBigInt(bc), 6, bf, 16, 8, CEILING) | |
249 | + | toInt(fraction(be, bg, l)) | |
228 | 250 | } | |
229 | - | $Tuple2(nil, aU) | |
251 | + | let bh = ad(bd, aR) | |
252 | + | let bi = if ((0 >= bc)) | |
253 | + | then 0 | |
254 | + | else { | |
255 | + | let be = toBigInt(aa(this, K())) | |
256 | + | let bf = toBigInt(aa(this, L())) | |
257 | + | let bj = toBigInt(aX) | |
258 | + | let bg = pow(toBigInt(bc), 6, bf, 16, 8, CEILING) | |
259 | + | toInt(fraction(fraction(be, bg, l), bj, i)) | |
260 | + | } | |
261 | + | $Tuple2(nil, [bd, bh, bi]) | |
230 | 262 | } | |
231 | 263 | ||
232 | 264 | ||
233 | 265 | ||
234 | - | @Callable( | |
235 | - | func calculateKREADONLY ( | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
243 | - | then throw((("BR=" + toString( | |
266 | + | @Callable(aY) | |
267 | + | func calculateKREADONLY (bk,bl,af,bm,bn) = { | |
268 | + | let bo = toBigInt(2718281) | |
269 | + | let bp = 6 | |
270 | + | let bq = valueOrElse(getInteger(aM, "nsbtCurveParam_a"), 3) | |
271 | + | let br = valueOrElse(getInteger(aM, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
272 | + | let bs = ag(bk, af) | |
273 | + | let bt = fraction(bs, j, bl) | |
274 | + | if ((bt > 10678564816)) | |
275 | + | then throw((("BR=" + toString(bt)) + " > 10678.564816% will overflow exponent")) | |
244 | 276 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2(nil, [ | |
277 | + | let bu = (bq * (bt - j)) | |
278 | + | let bv = pow(bo, bp, toBigInt(bu), b, c, DOWN) | |
279 | + | let bw = fraction(toBigInt(br), bv, i) | |
280 | + | $Tuple2(nil, [bq, br, bs, bt, bu, toString(bv), toString(bw)]) | |
249 | 281 | } | |
250 | 282 | } | |
251 | 283 | ||
252 | 284 | ||
253 | 285 | ||
254 | - | @Callable( | |
255 | - | func curveFunctionREADONLY ( | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple2(nil, [ | |
286 | + | @Callable(aY) | |
287 | + | func curveFunctionREADONLY (bx) = { | |
288 | + | let by = an(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
289 | + | let af = aq(by[v]) | |
290 | + | let bk = aq(by[y]) | |
291 | + | let bl = aq(by[A]) | |
292 | + | let bn = aq(by[E]) | |
293 | + | let bm = aq(by[F]) | |
294 | + | let bz = an(invoke(this, "calculateKREADONLY", [bk, bl, af, bm, bn], nil)) | |
295 | + | let bw = parseBigIntValue(as(bz[u])) | |
296 | + | let bA = ag(bx, af) | |
297 | + | let bB = toBigInt(bm) | |
298 | + | let bC = toBigInt((bm - bn)) | |
299 | + | let bD = fraction(toBigInt(bA), m, bw) | |
300 | + | let bE = fraction(bD, bC, bB) | |
301 | + | let bF = toInt(fraction(bC, bB, (bE + bB))) | |
302 | + | let bG = ((bm - bn) - bF) | |
303 | + | $Tuple2(nil, [bG, bA, bk, bl, bm, bn, aq(bz[o]), aq(bz[p]), aq(bz[q]), af, aq(bz[r]), aq(bz[s]), bz[t], bz[u], toString(bD), toString(bE), bF]) | |
272 | 304 | } | |
273 | 305 | ||
274 | 306 | ||
275 | 307 | ||
276 | - | @Callable( | |
277 | - | func surfFunctionREADONLY ( | |
308 | + | @Callable(aY) | |
309 | + | func surfFunctionREADONLY (ae,bH) = if ((0 > ae)) | |
278 | 310 | then throw("amount should be positive") | |
279 | 311 | else { | |
280 | - | let bm = al(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
281 | - | let ad = ao(bm[v]) | |
282 | - | let bw = toBigInt(ad) | |
283 | - | let bx = ao(bm[y]) | |
284 | - | let by = toBigInt(bx) | |
285 | - | let bz = ao(bm[A]) | |
286 | - | let bA = toBigInt(bz) | |
287 | - | let bB = ao(bm[D]) | |
288 | - | if ((bB >= h)) | |
289 | - | then throw((("BR = " + toString(bB)) + ", cannot buy SURF")) | |
312 | + | let af = aR | |
313 | + | let bI = toBigInt(af) | |
314 | + | let bJ = toBigInt(aU) | |
315 | + | let bK = aW | |
316 | + | let bL = toBigInt(bK) | |
317 | + | if ((aX >= h)) | |
318 | + | then throw((("BR = " + toString(aX)) + ", cannot buy SURF")) | |
290 | 319 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | then if (( | |
295 | - | then | |
296 | - | else | |
297 | - | else if (( | |
298 | - | then if (( | |
299 | - | then | |
300 | - | else | |
320 | + | let bM = (fraction(bK, j, af) - aU) | |
321 | + | let bN = (bK - fraction(aU, af, j)) | |
322 | + | let bO = if ((bH == aO)) | |
323 | + | then if ((ae > bN)) | |
324 | + | then bN | |
325 | + | else ae | |
326 | + | else if ((bH == n)) | |
327 | + | then if ((ae > bM)) | |
328 | + | then bM | |
329 | + | else ae | |
301 | 330 | else 0 | |
302 | - | let | |
303 | - | if (( | |
304 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
305 | - | else if (( | |
306 | - | then $Tuple2(nil, [toInt(fraction( | |
331 | + | let bP = toBigInt(bO) | |
332 | + | if ((bH == aO)) | |
333 | + | then $Tuple2(nil, [toInt(fraction(fraction(bP, k, bI), (bL - (bP / g)), bJ)), 0, bO, aU, bK, aX, aU, (bK - bO), fraction(ag(aU, af), h, (bK - bO)), (ae - bO), af]) | |
334 | + | else if ((bH == n)) | |
335 | + | then $Tuple2(nil, [toInt(fraction(bL, log(fraction((bJ + bP), m, bJ), 16, f, 16, 16, HALFUP), m)), bO, 0, aU, bK, aX, (aU + bO), bK, fraction(ag((aU + bO), af), h, bK), (ae - bO), af]) | |
307 | 336 | else throw("Unsupported asset") | |
308 | 337 | } | |
309 | 338 | } | |
310 | 339 | ||
311 | 340 | ||
312 | 341 | ||
313 | - | @Callable( | |
314 | - | func calcContractNsbtPriceSYSREADONLY ( | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2(nil, [ | |
342 | + | @Callable(aY) | |
343 | + | func calcContractNsbtPriceSYSREADONLY (bQ) = { | |
344 | + | let by = an(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
345 | + | let af = aq(by[v]) | |
346 | + | let bk = aq(by[y]) | |
347 | + | let bl = (aq(by[A]) - bQ) | |
348 | + | let bn = (aq(by[E]) + bQ) | |
349 | + | let bm = aq(by[F]) | |
350 | + | let bz = an(invoke(this, "calculateKREADONLY", [bk, bl, af, bm, bn], nil)) | |
351 | + | let bR = parseBigIntValue(as(bz[u])) | |
352 | + | let bS = fraction(toBigInt(bm), m, toBigInt((bm - bn))) | |
353 | + | let bT = fraction(bS, bS, m) | |
354 | + | let bU = fraction(bR, bT, m) | |
355 | + | let bV = toInt(fraction(bU, toBigInt(h), m)) | |
356 | + | let bW = fraction(bV, h, af) | |
357 | + | $Tuple2(nil, [bV, bW]) | |
329 | 358 | } | |
330 | 359 | ||
331 | 360 | ||
332 | 361 | ||
333 | - | @Callable( | |
362 | + | @Callable(aY) | |
334 | 363 | func calcNeutinoMetricsREADONLY () = { | |
335 | - | let bN = getIntegerValue(aI, U()) | |
336 | - | let bO = valueOrElse(getInteger(aJ, P()), 0) | |
337 | - | let bP = valueOrElse(getInteger(aJ, O()), 0) | |
338 | - | let bx = (wavesBalance(aJ).regular - bP) | |
339 | - | let bQ = ae(bx, bN) | |
340 | - | let bR = (((bO + value(assetInfo(aM)).quantity) - assetBalance(aJ, aM)) - assetBalance(aL, aM)) | |
341 | - | let bS = (bQ - bR) | |
342 | - | let bT = (bR - bQ) | |
343 | - | let bU = if ((bR == 0)) | |
364 | + | let bX = (aV - aW) | |
365 | + | let bY = (aW - aV) | |
366 | + | let bZ = if ((aW == 0)) | |
344 | 367 | then 0 | |
345 | - | else (fraction(bS, h, bR) * 100) | |
346 | - | let bB = if ((bR == 0)) | |
347 | - | then 0 | |
348 | - | else fraction(bQ, h, bR) | |
349 | - | let bV = value(assetInfo(aN)).quantity | |
350 | - | let bW = (bV - assetBalance(aK, aN)) | |
351 | - | let bX = value(assetInfo(aO)).quantity | |
352 | - | $Tuple2(nil, [bN, bO, bP, bx, bQ, bR, bS, bU, bB, bW, bV, bX]) | |
368 | + | else (fraction(bX, h, aW) * 100) | |
369 | + | let ca = value(assetInfo(aP)).quantity | |
370 | + | let cb = (ca - assetBalance(aM, aP)) | |
371 | + | let cc = value(assetInfo(aQ)).quantity | |
372 | + | $Tuple2(nil, [aR, aS, aT, aU, aV, aW, bX, bZ, aX, cb, ca, cc]) | |
353 | 373 | } | |
354 | 374 | ||
355 | 375 | ||
356 | 376 | ||
357 | - | @Callable( | |
358 | - | func getUnstakeComissionAmountREADONLY ( | |
377 | + | @Callable(aY) | |
378 | + | func getUnstakeComissionAmountREADONLY (ae,cd,ce) = $Tuple2(nil, fraction(ae, pow(2, 0, fraction(-((height - cd)), j, ce), 8, 8, HALFUP), j)) | |
359 | 379 | ||
360 | 380 | ||
361 | 381 | ||
362 | - | @Callable( | |
363 | - | func mergeStakesREADONLY ( | |
364 | - | let | |
365 | - | let | |
366 | - | $Tuple2(nil, ( | |
382 | + | @Callable(aY) | |
383 | + | func mergeStakesREADONLY (cf,cg,ch,ci,ce) = { | |
384 | + | let cj = fraction(ch, pow(2, 0, fraction((ci - cg), j, ce), 8, 8, HALFUP), j) | |
385 | + | let ck = fraction((cf + ch), j, (cf + cj)) | |
386 | + | $Tuple2(nil, (cg + ((e - (ce * log(ck, 8, 2, 0, 8, HALFUP))) / j))) | |
367 | 387 | } | |
368 | 388 | ||
369 | 389 | ||
370 | - | @Verifier( | |
371 | - | func | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
390 | + | @Verifier(cl) | |
391 | + | func cm () = { | |
392 | + | let cn = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
393 | + | let co = split(valueOrElse(getString(aK, "%s__multisig"), cn), d) | |
394 | + | let cp = ((((if (sigVerify(cl.bodyBytes, cl.proofs[0], fromBase58String(co[0]))) | |
375 | 395 | then 1 | |
376 | - | else 0) + (if (sigVerify( | |
396 | + | else 0) + (if (sigVerify(cl.bodyBytes, cl.proofs[1], fromBase58String(co[1]))) | |
377 | 397 | then 1 | |
378 | - | else 0)) + (if (sigVerify( | |
398 | + | else 0)) + (if (sigVerify(cl.bodyBytes, cl.proofs[2], fromBase58String(co[2]))) | |
379 | 399 | then 1 | |
380 | - | else 0)) + (if (sigVerify( | |
400 | + | else 0)) + (if (sigVerify(cl.bodyBytes, cl.proofs[3], fromBase58String(co[3]))) | |
381 | 401 | then 2 | |
382 | 402 | else 0)) | |
383 | - | ( | |
403 | + | (cp >= 3) | |
384 | 404 | } | |
385 | 405 |
github/deemru/w8io/026f985 122.04 ms ◑