tx · 29bcfrjpeZeVUggTeBN1Qx9m5L6KgiLMdfzbqPUaGL9g 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.01400000 Waves 2022.03.17 13:21 [1967810] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "29bcfrjpeZeVUggTeBN1Qx9m5L6KgiLMdfzbqPUaGL9g", "fee": 1400000, "feeAssetId": null, "timestamp": 1647512596283, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "3TnQC7D873UgiCnm8wLPMkbDT84RkapoucxXgD7xrRg5xynHyZpqG5nkujP9P1npSLmx9GbKsbPZVjBvBGm96dko" ], "script": "base64:AAIFAAAAAAAAADUIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgASAwoBARIAEgUKAwEBARIHCgUBAQEBAQAAAC8AAAAAB1dBVkVMRVQAAAAAAAX14QAAAAAABVBBVUxJAAAAAAAAD0JAAAAAAAhCSUdQQVVMSQkAATYAAAABAAAAAAAAD0JAAAAAAAhQUklDRUxFVAAAAAAAAA9CQAAAAAAETVVMVAAAAAAABfXhAAAAAAAJQklHTVVMVDE2CQABNgAAAAEAACOG8m/BAAAAAAAACU1VTFRTQ0FMRQAAAAAAAAAACAAAAAAHU0NBTEUxNgAAAAAAAAAAEAAAAAADU0VQAgAAAAJfXwAAAAAFSEFMRjgAAAAAAAL68IAAAAAAC0VVTEVSTlVNQkVSCQABNgAAAAEAAGCSoRPY1XQAAAAABnNjYWxlNgAAAAAAAA9CQAAAAAAMc2NhbGU2QmlnSW50CQABNgAAAAEAAAAAAAAPQkAAAAAADHNjYWxlOEJpZ0ludAkAATYAAAABAAAAAAAF9eEAAAAAAA1zY2FsZTEwQmlnSW50CQABNgAAAAEAAAAAAlQL5AABAAAAEmtleU5ldXRyaW5vQWRkcm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ADCQAAZQAAAAIFAAAAB2hlaWdodDIFAAAAB2hlaWdodDEFAAAABE1VTFQFAAAACGhhbGZMaWZlAAAAAAAAAAAIAAAAAAAAAAAIBQAAAAZIQUxGVVAFAAAABE1VTFQEAAAAAXYJAABrAAAAAwkAAGQAAAACBQAAAAdhbW91bnQxBQAAAAdhbW91bnQyBQAAAARNVUxUCQAAZAAAAAIFAAAAB2Ftb3VudDEFAAAAAXcJAAUUAAAAAgUAAAADbmlsCQAAZAAAAAIFAAAAB2hlaWdodDEJAABpAAAAAgkAAGUAAAACBQAAAAVIQUxGOAkAAGgAAAACBQAAAAhoYWxmTGlmZQkAAG0AAAAGBQAAAAF2AAAAAAAAAAAIAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAIBQAAAAZIQUxGVVAFAAAABE1VTFQAAAAAH8TtVQ==", "chainId": 84, "height": 1967810, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EeMUW2dwaLTbNFfHdhtpuQJeDjY3VW9mSTgZfk74L5gJ Next: B5PKtkw2C9MdNE1Mz2x7qHVWpi26LDXcfH67Bm5GGjrU Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | then X(ak[9]) | |
152 | 152 | else value(ai) | |
153 | 153 | let am = X(ak[0]) | |
154 | - | let an = U(invoke(this, "calculateKREADONLY", [X(ak[ | |
154 | + | let an = U(invoke(this, "calculateKREADONLY", [X(ak[3]), X(ak[5]), am, aj, al], nil)) | |
155 | 155 | if ((an == an)) | |
156 | 156 | then { | |
157 | 157 | let ao = parseBigIntValue(Z(an[6])) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000) | |
9 | 9 | ||
10 | 10 | let d = 1000000 | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(10000000000000000) | |
15 | 15 | ||
16 | 16 | let g = 8 | |
17 | 17 | ||
18 | 18 | let h = 16 | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = 50000000 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(27182818284590452) | |
25 | 25 | ||
26 | 26 | let l = 1000000 | |
27 | 27 | ||
28 | 28 | let m = toBigInt(1000000) | |
29 | 29 | ||
30 | 30 | let n = toBigInt(100000000) | |
31 | 31 | ||
32 | 32 | let o = toBigInt(10000000000) | |
33 | 33 | ||
34 | 34 | func p () = "%s%s__config__neutrinoAddress" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q () = "%s%s__config__swapAParam" | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func r () = "neutrino_asset_id" | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s () = "liquidation_contract" | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func t () = "auction_contract" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func u () = "control_contract" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func v () = "bond_asset_id" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func w () = "balance_lock_" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func x () = (w() + "waves") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func y () = (w() + "neutrino") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z () = "swaps_timeframe" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A (B) = makeString(["%s%s", "userLastQuickSwapHeight", B], i) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func C (B) = makeString(["%s%s", "quickSwapUserSpentInPeriod", B], i) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func D () = "price" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func E (F,G) = valueOrErrorMessage(getString(F, G), makeString(["mandatory ", toString(F), ".", G, " is not defined"], "")) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func H (F,G) = valueOrErrorMessage(getInteger(F, G), makeString(["mandatory ", toString(F), ".", G, " is not defined"], "")) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func I (F,G) = valueOrElse(getInteger(F, G), 0) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func J (F,G) = valueOrErrorMessage(getBoolean(F, G), makeString(["mandatory ", toString(F), ".", G, " is not defined"], "")) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func K (L,M) = fraction(fraction(L, d, M), a, b) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func N (L,M) = fraction(fraction(L, M, d), b, a) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func O (P,Q) = fraction(toBigInt(P), f, toBigInt(Q)) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func R (S,T) = toInt(fraction(S, toBigInt(T), f)) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func U (S) = { | |
101 | 101 | let V = S | |
102 | 102 | if ($isInstanceOf(V, "List[Any]")) | |
103 | 103 | then { | |
104 | 104 | let W = V | |
105 | 105 | W | |
106 | 106 | } | |
107 | 107 | else throw("fail to cast into List[Any]") | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func X (S) = { | |
112 | 112 | let V = S | |
113 | 113 | if ($isInstanceOf(V, "Int")) | |
114 | 114 | then { | |
115 | 115 | let Y = V | |
116 | 116 | Y | |
117 | 117 | } | |
118 | 118 | else throw("fail to cast into Int") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Z (S) = { | |
123 | 123 | let V = S | |
124 | 124 | if ($isInstanceOf(V, "String")) | |
125 | 125 | then { | |
126 | 126 | let aa = V | |
127 | 127 | aa | |
128 | 128 | } | |
129 | 129 | else throw("fail to cast into String") | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | let ab = addressFromStringValue(E(this, p())) | |
134 | 134 | ||
135 | 135 | let ac = addressFromStringValue(E(ab, u())) | |
136 | 136 | ||
137 | 137 | let ad = addressFromStringValue(E(ab, t())) | |
138 | 138 | ||
139 | 139 | let ae = addressFromStringValue(E(ab, s())) | |
140 | 140 | ||
141 | 141 | let af = fromBase58String(E(ab, r())) | |
142 | 142 | ||
143 | 143 | let ag = fromBase58String(getStringValue(ab, v())) | |
144 | 144 | ||
145 | 145 | func ah (ai) = { | |
146 | 146 | let aj = value(assetInfo(ag)).quantity | |
147 | 147 | let ak = U(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
148 | 148 | if ((ak == ak)) | |
149 | 149 | then { | |
150 | 150 | let al = if ((ai == unit)) | |
151 | 151 | then X(ak[9]) | |
152 | 152 | else value(ai) | |
153 | 153 | let am = X(ak[0]) | |
154 | - | let an = U(invoke(this, "calculateKREADONLY", [X(ak[ | |
154 | + | let an = U(invoke(this, "calculateKREADONLY", [X(ak[3]), X(ak[5]), am, aj, al], nil)) | |
155 | 155 | if ((an == an)) | |
156 | 156 | then { | |
157 | 157 | let ao = parseBigIntValue(Z(an[6])) | |
158 | 158 | let ap = R(ao, e) | |
159 | 159 | let aq = fraction(aj, e, (aj - al)) | |
160 | 160 | let ar = fraction(aq, aq, e) | |
161 | 161 | let as = fraction(ap, ar, e) | |
162 | 162 | let at = fraction(as, b, e) | |
163 | 163 | let au = fraction(at, b, am) | |
164 | 164 | $Tuple2(nil, [at, au]) | |
165 | 165 | } | |
166 | 166 | else throw("Strict value is not equal to itself.") | |
167 | 167 | } | |
168 | 168 | else throw("Strict value is not equal to itself.") | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(av) | |
173 | 173 | func constructor (aw,ax,ay) = if ((av.caller != this)) | |
174 | 174 | then throw("not authorized") | |
175 | 175 | else [StringEntry(p(), aw), IntegerEntry(q(), ay)] | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(av) | |
180 | 180 | func calcSwapLimitREADONLY (az) = { | |
181 | 181 | let aA = toBigInt(H(this, q())) | |
182 | 182 | let aB = O(az, l) | |
183 | 183 | let aC = pow(aB, 16, k, 16, 8, CEILING) | |
184 | 184 | let aD = fraction(aA, aC, o) | |
185 | 185 | $Tuple2(nil, toInt(aD)) | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(av) | |
191 | 191 | func calculateKREADONLY (aE,aF,M,aG,aH) = { | |
192 | 192 | let aI = toBigInt(2718281) | |
193 | 193 | let aJ = 6 | |
194 | 194 | let aK = valueOrElse(getInteger(ad, "nsbtCurveParam_a"), 3) | |
195 | 195 | let aL = valueOrElse(getInteger(ad, "nsbtCurveParam_b"), ((3 * b) / 10)) | |
196 | 196 | let aM = N(aE, M) | |
197 | 197 | let aN = fraction(aM, e, aF) | |
198 | 198 | if ((aN > 10678564816)) | |
199 | 199 | then throw("BR > 10678.564816% will overflow exponent") | |
200 | 200 | else { | |
201 | 201 | let aO = (aK * (aN - e)) | |
202 | 202 | let aP = pow(aI, aJ, toBigInt(aO), g, h, DOWN) | |
203 | 203 | let ao = fraction(toBigInt(aL), aP, c) | |
204 | 204 | $Tuple2(nil, [aK, aL, aM, aN, aO, toString(aP), toString(ao)]) | |
205 | 205 | } | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | ||
210 | 210 | @Callable(av) | |
211 | 211 | func curveFunctionREADONLY (aQ) = { | |
212 | 212 | let ak = U(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
213 | 213 | if ((ak == ak)) | |
214 | 214 | then { | |
215 | 215 | let M = X(ak[0]) | |
216 | 216 | let aE = X(ak[3]) | |
217 | 217 | let aF = X(ak[5]) | |
218 | 218 | let aH = X(ak[9]) | |
219 | 219 | let aG = value(assetInfo(ag)).quantity | |
220 | 220 | let an = U(invoke(this, "calculateKREADONLY", [aE, aF, M, aG, aH], nil)) | |
221 | 221 | if ((an == an)) | |
222 | 222 | then { | |
223 | 223 | let ao = parseBigIntValue(Z(an[6])) | |
224 | 224 | let aR = N(aQ, M) | |
225 | 225 | let aS = toBigInt(aG) | |
226 | 226 | let aT = toBigInt((aG - aH)) | |
227 | 227 | let aU = fraction(toBigInt(aR), f, ao) | |
228 | 228 | let aV = fraction(aU, aT, aS) | |
229 | 229 | let aW = toInt(fraction(aT, aS, (aV + aS))) | |
230 | 230 | let aX = ((aG - aH) - aW) | |
231 | 231 | $Tuple2(nil, [aX, aR, aE, aF, aG, aH, X(an[0]), X(an[1]), X(an[2]), M, X(an[3]), X(an[4]), an[5], an[6], toString(aU), toString(aV), aW]) | |
232 | 232 | } | |
233 | 233 | else throw("Strict value is not equal to itself.") | |
234 | 234 | } | |
235 | 235 | else throw("Strict value is not equal to itself.") | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | ||
240 | 240 | @Callable(av) | |
241 | 241 | func calcContractNsbtPriceREADONLY () = ah(unit) | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(av) | |
246 | 246 | func calcContractNsbtPriceBySupplyREADONLY (al) = ah(al) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(av) | |
251 | 251 | func calcNeutinoMetricsREADONLY () = { | |
252 | 252 | let am = getIntegerValue(ac, D()) | |
253 | 253 | let aY = valueOrElse(getInteger(ab, y()), 0) | |
254 | 254 | let aZ = valueOrElse(getInteger(ab, x()), 0) | |
255 | 255 | let ba = (wavesBalance(ab).regular - aZ) | |
256 | 256 | let bb = N(ba, am) | |
257 | 257 | let bc = (((aY + value(assetInfo(af)).quantity) - assetBalance(ab, af)) - assetBalance(ae, af)) | |
258 | 258 | let bd = (bb - bc) | |
259 | 259 | let be = (bc - bb) | |
260 | 260 | let bf = if ((bc == 0)) | |
261 | 261 | then 0 | |
262 | 262 | else (fraction(bd, b, bc) * 100) | |
263 | 263 | let bg = if ((bc == 0)) | |
264 | 264 | then 0 | |
265 | 265 | else fraction(bb, b, bc) | |
266 | 266 | let aj = value(assetInfo(ag)).quantity | |
267 | 267 | let al = (aj - assetBalance(ad, ag)) | |
268 | 268 | $Tuple2(nil, [am, aY, aZ, ba, bb, bc, bd, bf, bg, al, aj]) | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(av) | |
274 | 274 | func getUnstakeComissionAmountREADONLY (L,bh,bi) = $Tuple2(nil, fraction(L, pow(2, 0, fraction(-((height - bh)), e, bi), 8, 8, HALFUP), e)) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(av) | |
279 | 279 | func mergeStakesREADONLY (bj,bk,bl,bm,bi) = { | |
280 | 280 | let bn = fraction(bl, pow(2, 0, fraction((bm - bk), e, bi), 8, 8, HALFUP), e) | |
281 | 281 | let bo = fraction((bj + bl), e, (bj + bn)) | |
282 | 282 | $Tuple2(nil, (bk + ((j - (bi * log(bo, 8, 2, 0, 8, HALFUP))) / e))) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 |
github/deemru/w8io/026f985 39.74 ms ◑