tx · JhGsAs6Bqp8mhbTCBfZTGwBrVWBoiJf2tHEfGdmja1n 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N: -0.02000000 Waves 2021.01.08 06:45 [1343908] smart account 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N > SELF 0.00000000 Waves
{ "type": 13, "id": "JhGsAs6Bqp8mhbTCBfZTGwBrVWBoiJf2tHEfGdmja1n", "fee": 2000000, "feeAssetId": null, "timestamp": 1610077566783, "version": 1, "sender": "3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N", "senderPublicKey": "4bj7YXaphTC4Ldx7DqqMmrTjNshRtw1yNsej2XXZcAzS", "proofs": [ "w1rRfvkcvp6YFpMd1VB5gwm4bJLK6Ub2pLeHyTgBGHyJJE5MSN2kPSi29rU7wstahznWZpP2xbJ22eG4EeVuncB", "CpXKKBkueAZrXjdoEqtgVisifSfkqbJ7bTUVZYZr1ppGq7ZQ4D3NjSpD6MQdSCsy1V9p4Z5GjRi7qjLQTCc4wTC", "4AbWBnzZFwQ8Rhp1DAjPSoDM7KA469j6kddJgPfeHDheMAhfA2dgSvuhTuRiZwHV2ETBdvm1UhjZU4ffPv2GKjv5" ], "script": "base64:AAIEAAAAAAAAABoIAhIECgIBARIDCgEBEgQKAgEIEgMKAQgSAAAAAEMBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkHAQAAABhn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UAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA8pctQ8=", "chainId": 84, "height": 1343908, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3dg2e9q1kfuTtvoZxLHncXAahiwd2MtFK1o1X8eTCAwv Next: 2ouMhj8ivPh81KrkUmZgL4kB7fTEiErURkQn1vkfTRo3 Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | ||
21 | 21 | let i = 1000000 | |
22 | 22 | ||
23 | - | let j = | |
23 | + | let j = 6 | |
24 | 24 | ||
25 | - | let k = | |
25 | + | let k = 1000000 | |
26 | 26 | ||
27 | - | let l = | |
27 | + | let l = 100000000 | |
28 | 28 | ||
29 | - | let m = | |
29 | + | let m = 8 | |
30 | 30 | ||
31 | - | let n = | |
31 | + | let n = (10 * h) | |
32 | 32 | ||
33 | - | let o = | |
33 | + | let o = 95 | |
34 | 34 | ||
35 | - | let p = " | |
35 | + | let p = "canceled" | |
36 | 36 | ||
37 | - | let q = " | |
37 | + | let q = "new" | |
38 | 38 | ||
39 | - | let r = " | |
39 | + | let r = "filled" | |
40 | 40 | ||
41 | - | let s = " | |
41 | + | let s = "price" | |
42 | 42 | ||
43 | - | let t = " | |
43 | + | let t = "bond_asset_id" | |
44 | 44 | ||
45 | - | let u = " | |
45 | + | let u = "neutrino_asset_id" | |
46 | 46 | ||
47 | - | let v = | |
47 | + | let v = "balance_lock_" | |
48 | 48 | ||
49 | - | let w = ( | |
49 | + | let w = (v + "waves") | |
50 | 50 | ||
51 | - | let x = " | |
51 | + | let x = (v + "neutrino") | |
52 | 52 | ||
53 | - | func y (z) = ("debug_order_roi_" + z) | |
53 | + | let y = "order_first" | |
54 | + | ||
55 | + | func z (A) = ("debug_order_roi_" + A) | |
54 | 56 | ||
55 | 57 | ||
56 | - | func | |
58 | + | func B (A) = ("order_price_" + A) | |
57 | 59 | ||
58 | 60 | ||
59 | - | func | |
61 | + | func C (A) = ("order_total_" + A) | |
60 | 62 | ||
61 | 63 | ||
62 | - | func | |
64 | + | func D (A) = ("order_owner_" + A) | |
63 | 65 | ||
64 | 66 | ||
65 | - | func | |
67 | + | func E (A) = ("order_height_" + A) | |
66 | 68 | ||
67 | 69 | ||
68 | - | func | |
70 | + | func F (A) = ("order_status_" + A) | |
69 | 71 | ||
70 | 72 | ||
71 | - | func | |
73 | + | func G (A) = ("order_filled_total_" + A) | |
72 | 74 | ||
73 | 75 | ||
74 | - | func | |
76 | + | func H (A) = ("order_prev_" + A) | |
75 | 77 | ||
76 | 78 | ||
77 | - | func | |
79 | + | func I (A) = ("order_next_" + A) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func J (K,L) = fraction(fraction(K, k, L), h, i) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func M (K,L) = fraction(fraction(K, L, k), i, h) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func N (K,L) = M(K, L) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func O (K,L) = J(K, L) | |
90 | 92 | ||
91 | 93 | ||
92 | - | let | |
94 | + | let P = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we') | |
93 | 95 | ||
94 | - | let | |
96 | + | let Q = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx') | |
95 | 97 | ||
96 | - | let | |
98 | + | let R = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62') | |
97 | 99 | ||
98 | - | let | |
100 | + | let S = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
99 | 101 | ||
100 | - | let | |
102 | + | let T = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH' | |
101 | 103 | ||
102 | - | let | |
104 | + | let U = d(Q, "is_blocked") | |
103 | 105 | ||
104 | - | let | |
106 | + | let V = g(Q, s) | |
105 | 107 | ||
106 | - | let | |
108 | + | let W = g(P, x) | |
107 | 109 | ||
108 | - | let | |
110 | + | let X = (wavesBalance(P).regular - g(P, w)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let Y = M(X, V) | |
111 | 113 | ||
112 | - | let | |
114 | + | let Z = (((W + value(assetInfo(S)).quantity) - assetBalance(P, S)) - assetBalance(R, S)) | |
113 | 115 | ||
114 | - | let | |
116 | + | let aa = (Z - Y) | |
115 | 117 | ||
116 | - | let | |
118 | + | let ab = fraction(aa, 100, Z) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ac = fraction(Y, l, Z) | |
119 | 121 | ||
120 | - | let | |
122 | + | let ad = c(y) | |
121 | 123 | ||
122 | - | func | |
124 | + | func ae (af) = a(B(af)) | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func ag (af) = a(C(af)) | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func ah (af) = c(D(af)) | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func ai (af) = c(F(af)) | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func aj (af) = a(G(af)) | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func ak (af) = c(H(af)) | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func al (af) = c(I(af)) | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func am (an) = fraction((100 + an), V, 100) | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
148 | + | func ao (L) = ((k * k) / L) | |
147 | 149 | ||
148 | 150 | ||
149 | - | func | |
151 | + | func ap (aq,ar) = fraction(aq, (i * k), ar) | |
150 | 152 | ||
151 | 153 | ||
152 | - | func | |
154 | + | func as (A,at,au,av,aw,ax,L) = [IntegerEntry(B(A), L), IntegerEntry(C(A), at), IntegerEntry(G(A), au), StringEntry(D(A), av), IntegerEntry(E(A), height), StringEntry(F(A), aw), IntegerEntry(("debug_order_currentPrice_" + A), V), IntegerEntry(z(A), ax)] | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | if (!( | |
162 | - | then throw(("innapropriate roi: " + toString( | |
163 | - | else if (( | |
157 | + | func ay (az,aA,aB,aC,aD,aE,aF,aG) = { | |
158 | + | let aH = am(aC) | |
159 | + | let aI = (aE - aB) | |
160 | + | let aJ = N(aI, aH) | |
161 | + | let aK = O(aJ, aH) | |
162 | + | let aL = (ab >= aC) | |
163 | + | if (!(aL)) | |
164 | + | then throw(("innapropriate roi: " + toString(aC))) | |
165 | + | else if ((aK == 0)) | |
164 | 166 | then throw("cannot fill order at the moment") | |
165 | 167 | else { | |
166 | - | let | |
167 | - | let | |
168 | - | then | |
169 | - | else [IntegerEntry( | |
170 | - | ( | |
168 | + | let aM = (aI - aK) | |
169 | + | let aN = if (aG) | |
170 | + | then as(az, aE, (aB + aK), toBase58String(aF.bytes), r, aC, V) | |
171 | + | else [IntegerEntry(G(az), (aB + aK)), StringEntry(F(az), r), StringEntry(H(aA), ""), StringEntry(y, aA)] | |
172 | + | (aN ++ [ScriptTransfer(aF, aJ, T), ScriptTransfer(P, aK, unit), ScriptTransfer(aF, aM, unit)]) | |
171 | 173 | } | |
172 | 174 | } | |
173 | 175 | ||
174 | 176 | ||
175 | - | func | |
176 | - | let | |
177 | - | let | |
178 | - | if ( | |
177 | + | func aO (ax,L,aP,aQ,aG) = { | |
178 | + | let aR = value(aQ.payments[0]) | |
179 | + | let aS = toBase58String(aQ.transactionId) | |
180 | + | if (U) | |
179 | 181 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
180 | - | else if (( | |
181 | - | then throw(("min order total equals " + toString( | |
182 | - | else if (( | |
182 | + | else if ((n > aR.amount)) | |
183 | + | then throw(("min order total equals " + toString(n))) | |
184 | + | else if ((ax > o)) | |
183 | 185 | then throw("max setOrder ROI is 95%") | |
184 | - | else if ((0 > | |
186 | + | else if ((0 > ax)) | |
185 | 187 | then throw("can't place order with negative roi") | |
186 | - | else if (( | |
188 | + | else if ((ax == 0)) | |
187 | 189 | then throw("roi should not be equal to 0") | |
188 | - | else if (isDefined( | |
190 | + | else if (isDefined(aR.assetId)) | |
189 | 191 | then throw("can use waves only") | |
190 | - | else if (( | |
192 | + | else if ((ah(aS) != "")) | |
191 | 193 | then throw("order exists") | |
192 | - | else if (if (( | |
193 | - | then ( | |
194 | + | else if (if ((aP != "")) | |
195 | + | then (ai(aP) != q) | |
194 | 196 | else false) | |
195 | 197 | then throw("prev order status is not new") | |
196 | 198 | else { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | then | |
201 | - | else | |
202 | - | let | |
203 | - | let | |
204 | - | then ( | |
199 | + | let aT = (aP == "") | |
200 | + | let av = toString(aQ.caller) | |
201 | + | let aU = if (aT) | |
202 | + | then ad | |
203 | + | else al(aP) | |
204 | + | let aV = a(z(aU)) | |
205 | + | let aW = if (if ((aU != "")) | |
206 | + | then (ax >= aV) | |
205 | 207 | else false) | |
206 | 208 | then true | |
207 | 209 | else false | |
208 | - | let | |
209 | - | let | |
210 | - | then ( | |
210 | + | let aX = a(z(aP)) | |
211 | + | let aY = if (if ((aP != "")) | |
212 | + | then (aX > ax) | |
211 | 213 | else false) | |
212 | 214 | then true | |
213 | 215 | else false | |
214 | - | if (if ( | |
216 | + | if (if (aW) | |
215 | 217 | then true | |
216 | - | else | |
217 | - | then throw(((("invalid order isPrevOrderError:" + toString( | |
218 | - | else if (if ( | |
219 | - | then ( | |
218 | + | else aY) | |
219 | + | then throw(((("invalid order isPrevOrderError:" + toString(aY)) + " isNextOrderError:") + toString(aW))) | |
220 | + | else if (if (aT) | |
221 | + | then (ab >= ax) | |
220 | 222 | else false) | |
221 | - | then | |
222 | - | else if ( | |
223 | + | then ay(aS, aU, 0, ax, L, aR.amount, aQ.caller, true) | |
224 | + | else if (aG) | |
223 | 225 | then throw("Instant order couldn't be added into waiting queue") | |
224 | - | else ([StringEntry( | |
226 | + | else ([StringEntry(H(aS), aP), StringEntry(I(aS), aU), StringEntry(I(aP), if ((aP == "")) | |
225 | 227 | then "" | |
226 | - | else | |
228 | + | else aS), StringEntry(H(aU), if ((aU == "")) | |
227 | 229 | then "" | |
228 | - | else | |
230 | + | else aS), StringEntry(y, if (if ((ad == "")) | |
229 | 231 | then true | |
230 | - | else ( | |
231 | - | then | |
232 | - | else | |
232 | + | else (ad == aU)) | |
233 | + | then aS | |
234 | + | else ad)] ++ as(aS, aR.amount, 0, av, q, ax, L)) | |
233 | 235 | } | |
234 | 236 | } | |
235 | 237 | ||
236 | 238 | ||
237 | - | func aY (aZ,ba,K) = { | |
238 | - | let bb = 271828100 | |
239 | - | let bc = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
240 | - | let bd = L(aZ, K) | |
241 | - | let be = fraction(bd, k, ba) | |
242 | - | let bf = (bc * (be - (1 * k))) | |
243 | - | let bg = pow(bb, l, bf, l, l, DOWN) | |
244 | - | let bh = fraction(ba, j, (bc * K)) | |
245 | - | let bi = fraction(bh, k, bg) | |
246 | - | let bj = fraction(bi, K, j) | |
247 | - | $Tuple6(bj, bd, be, bf, bg, bh) | |
239 | + | func aZ (ba,bb,L,bc,bd,be) = { | |
240 | + | let bf = 271828100 | |
241 | + | let bg = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
242 | + | let bh = M(ba, L) | |
243 | + | let bi = fraction(bh, l, bb) | |
244 | + | let bj = (bg * (bi - (1 * l))) | |
245 | + | let bk = pow(bf, m, bj, m, m, DOWN) | |
246 | + | let bl = log(((bc - bd) - be), j, bf, m, m, DOWN) | |
247 | + | let bm = log((bc - bd), j, bf, m, m, DOWN) | |
248 | + | let bn = (bm - bl) | |
249 | + | let bo = fraction(bc, bn, l) | |
250 | + | let bp = fraction(bk, bo, l) | |
251 | + | let bq = J(bp, L) | |
252 | + | [bq, bp, ba, bb, bc, bd, be, bg, bh, bi, bj, bk, bm, bl, bn, bo] | |
248 | 253 | } | |
249 | 254 | ||
250 | 255 | ||
251 | - | func | |
256 | + | func br (bs,bt) = (((((((((((((((((((((((((((((((((bs + "[wavesPayment=") + toString(bt[0])) + " usdnPayment=") + toString(bt[1])) + " wRaw=") + toString(bt[2])) + " uRaw=") + toString(bt[3])) + " mRaw=") + toString(bt[4])) + " sRaw=") + toString(bt[5])) + " nRaw=") + toString(bt[6])) + " nsbtCurveParamA=") + toString(bt[7])) + " wReservesInUsdn=") + toString(bt[8])) + " brMult=") + toString(bt[9])) + " powerMult=") + toString(bt[10])) + " expInPowerMult=") + toString(bt[11])) + " lnRes0=") + toString(bt[12])) + " lnRes1=") + toString(bt[13])) + " lnDiffMult=") + toString(bt[14])) + " maxXlndiff=") + toString(bt[15])) + "]") | |
252 | 257 | ||
253 | 258 | ||
254 | - | @Callable(bn) | |
255 | - | func buyNsbtInSurplus () = { | |
256 | - | let aQ = value(bn.payments[0]) | |
257 | - | let bo = aQ.amount | |
258 | - | let bp = bn.caller | |
259 | - | if (T) | |
259 | + | func bu (bv) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
260 | + | then !(isDefined(transferTransactionById(fromBase58String("adLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
261 | + | else false) | |
262 | + | then !(isDefined(transferTransactionById(fromBase58String("sdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
263 | + | else false) | |
264 | + | then !(isDefined(transferTransactionById(fromBase58String("ddLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
265 | + | else false) | |
266 | + | then !(isDefined(transferTransactionById(fromBase58String("fdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
267 | + | else false) | |
268 | + | then !(isDefined(transferTransactionById(fromBase58String("gdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
269 | + | else false) | |
270 | + | then !(isDefined(transferTransactionById(fromBase58String("hdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
271 | + | else false) | |
272 | + | then !(isDefined(transferTransactionById(fromBase58String("jdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
273 | + | else false) | |
274 | + | then !(isDefined(transferTransactionById(fromBase58String("kdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
275 | + | else false) | |
276 | + | then !(isDefined(transferTransactionById(fromBase58String("rdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
277 | + | else false) | |
278 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLq5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
279 | + | else false) | |
280 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLy5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
281 | + | else false) | |
282 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLu5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
283 | + | else false) | |
284 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLh5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
285 | + | else false) | |
286 | + | then !(isDefined(transferTransactionById(fromBase58String("1dL4JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
287 | + | else false) | |
288 | + | then !(isDefined(transferTransactionById(fromBase58String("2dL25JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
289 | + | else false) | |
290 | + | then !(isDefined(transferTransactionById(fromBase58String("3dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
291 | + | else false) | |
292 | + | then !(isDefined(transferTransactionById(fromBase58String("4dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
293 | + | else false) | |
294 | + | then !(isDefined(transferTransactionById(fromBase58String("5dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
295 | + | else false) | |
296 | + | then !(isDefined(transferTransactionById(fromBase58String("6dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
297 | + | else false) | |
298 | + | then !(isDefined(transferTransactionById(fromBase58String("7dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
299 | + | else false) | |
300 | + | then !(isDefined(transferTransactionById(fromBase58String("8dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
301 | + | else false) | |
302 | + | then !(isDefined(transferTransactionById(fromBase58String("91L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
303 | + | else false) | |
304 | + | then !(isDefined(transferTransactionById(fromBase58String("92L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
305 | + | else false) | |
306 | + | then !(isDefined(transferTransactionById(fromBase58String("93L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
307 | + | else false) | |
308 | + | then !(isDefined(transferTransactionById(fromBase58String("94L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
309 | + | else false | |
310 | + | ||
311 | + | ||
312 | + | @Callable(bv) | |
313 | + | func buyNsbtInSurplus (bw,bx) = { | |
314 | + | let aR = value(bv.payments[0]) | |
315 | + | let by = aR.amount | |
316 | + | let bz = bv.caller | |
317 | + | if (U) | |
260 | 318 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
261 | - | else if (( | |
262 | - | then throw( | |
263 | - | else if ( | |
264 | - | then throw(" | |
319 | + | else if (isDefined(aR.assetId)) | |
320 | + | then throw("can use waves only") | |
321 | + | else if (((10 * h) > by)) | |
322 | + | then throw("min 10 waves expected") | |
265 | 323 | else { | |
266 | - | let bq = aY(W, Y, U) | |
267 | - | let br = aY((W + bo), Y, U) | |
268 | - | let bs = (bq._1 - br._1) | |
269 | - | let bt = ao(bo, bs) | |
270 | - | let aw = (fraction(an(bt), 100, U) - 100) | |
271 | - | (ar(toBase58String(bn.transactionId), bo, bo, toString(bp), q, aw, bt) ++ [ScriptTransfer(bp, bs, S), ScriptTransfer(O, bo, unit), StringEntry("debug_f0", bk("f0", bq)), StringEntry("debug_f1", bk("f1", br))]) | |
324 | + | let bA = valueOrElse(getInteger(this, "tmp_issuedNsbt"), 0) | |
325 | + | let bB = ((2500 * 1000) * i) | |
326 | + | let bC = (((1500 * 1000) * i) + bA) | |
327 | + | let bt = aZ(X, Z, V, bB, bC, bw) | |
328 | + | let bD = bt[0] | |
329 | + | if ((bD > by)) | |
330 | + | then throw(((("Payment amount is less then required: pmtAmount=" + toString(by)) + " requiredWaves=") + toString(bD))) | |
331 | + | else if ((0 > bx)) | |
332 | + | then throw("Invalid tolerance param") | |
333 | + | else { | |
334 | + | let bE = fraction(bD, (bx + i), i) | |
335 | + | if ((bD > bE)) | |
336 | + | then throw(((("Tolerance check failed: pmtAmount=" + toString(by)) + " maxAllowedPayment=") + toString(bE))) | |
337 | + | else { | |
338 | + | let bF = ap(bD, bw) | |
339 | + | let ax = (fraction(ao(bF), 100, V) - 100) | |
340 | + | (as(toBase58String(bv.transactionId), by, by, toString(bz), r, ax, bF) ++ [ScriptTransfer(bz, bw, T), ScriptTransfer(bz, (by - bD), unit), ScriptTransfer(P, bD, unit), StringEntry("debug_curveResult", br("curveResult", bt)), IntegerEntry("tmp_issuedNsbt", (bA + bw))]) | |
341 | + | } | |
342 | + | } | |
272 | 343 | } | |
273 | 344 | } | |
274 | 345 | ||
275 | 346 | ||
276 | 347 | ||
277 | - | @Callable( | |
278 | - | func instantBuyNsbtOrFail ( | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
282 | - | then throw(((("Current maxRoi=" + toString( | |
348 | + | @Callable(bv) | |
349 | + | func instantBuyNsbtOrFail (bG) = { | |
350 | + | let aR = value(bv.payments[0]) | |
351 | + | let ax = ab | |
352 | + | if ((bG > ax)) | |
353 | + | then throw(((("Current maxRoi=" + toString(ax)) + " is less then passed parameter noLessThenRoi=") + toString(bG))) | |
283 | 354 | else { | |
284 | - | let | |
285 | - | | |
355 | + | let aH = am(ax) | |
356 | + | aO(ax, ao(aH), "", bv, true) | |
286 | 357 | } | |
287 | 358 | } | |
288 | 359 | ||
289 | 360 | ||
290 | 361 | ||
291 | - | @Callable( | |
292 | - | func addBuyBondOrder ( | |
293 | - | let | |
294 | - | let | |
295 | - | if ((0 >= | |
362 | + | @Callable(bv) | |
363 | + | func addBuyBondOrder (L,aP) = { | |
364 | + | let aR = value(bv.payments[0]) | |
365 | + | let aH = ao(L) | |
366 | + | if ((0 >= L)) | |
296 | 367 | then throw("price less zero") | |
297 | - | else | |
368 | + | else aO(fraction((aH - V), 100, V), L, aP, bv, false) | |
298 | 369 | } | |
299 | 370 | ||
300 | 371 | ||
301 | 372 | ||
302 | - | @Callable( | |
303 | - | func cancelOrder ( | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | if ( | |
373 | + | @Callable(bv) | |
374 | + | func cancelOrder (A) = { | |
375 | + | let av = ah(A) | |
376 | + | let K = (ag(A) - aj(A)) | |
377 | + | let bH = toString(bv.caller) | |
378 | + | let aU = al(A) | |
379 | + | let aP = ak(A) | |
380 | + | if (U) | |
310 | 381 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
311 | - | else if (( | |
382 | + | else if ((av != bH)) | |
312 | 383 | then throw("permission denied") | |
313 | - | else if (( | |
384 | + | else if ((ai(A) != q)) | |
314 | 385 | then throw("invalid order status") | |
315 | - | else [StringEntry( | |
316 | - | then | |
317 | - | else | |
386 | + | else [StringEntry(y, if ((ad == A)) | |
387 | + | then aU | |
388 | + | else ad), StringEntry(I(aP), aU), StringEntry(H(aU), aP), StringEntry(F(A), p), ScriptTransfer(bv.caller, K, unit)] | |
318 | 389 | } | |
319 | 390 | ||
320 | 391 | ||
321 | 392 | ||
322 | - | @Callable( | |
323 | - | func sellBond () = if ( | |
393 | + | @Callable(bv) | |
394 | + | func sellBond () = if (U) | |
324 | 395 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
325 | - | else if (( | |
396 | + | else if ((ad == "")) | |
326 | 397 | then throw("empty orderbook") | |
327 | 398 | else { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | | |
399 | + | let aU = al(ad) | |
400 | + | let bI = aj(ad) | |
401 | + | let bJ = ae(ad) | |
402 | + | let ax = a(z(ad)) | |
403 | + | let bK = ag(ad) | |
404 | + | let aF = Address(fromBase58String(ah(ad))) | |
405 | + | ay(ad, aU, bI, ax, bJ, bK, aF, false) | |
335 | 406 | } | |
336 | 407 | ||
337 | 408 | ||
338 | - | @Verifier( | |
339 | - | func | |
340 | - | let | |
341 | - | let | |
409 | + | @Verifier(bL) | |
410 | + | func bM () = { | |
411 | + | let bN = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
412 | + | let bO = ((((if (sigVerify(bL.bodyBytes, bL.proofs[0], fromBase58String(bN[0]))) | |
342 | 413 | then 1 | |
343 | - | else 0) + (if (sigVerify( | |
414 | + | else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(bN[1]))) | |
344 | 415 | then 1 | |
345 | - | else 0)) + (if (sigVerify( | |
416 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(bN[2]))) | |
346 | 417 | then 1 | |
347 | - | else 0)) + (if (sigVerify( | |
418 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(bN[3]))) | |
348 | 419 | then 2 | |
349 | 420 | else 0)) | |
350 | - | ( | |
421 | + | (bO >= 3) | |
351 | 422 | } | |
352 | 423 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrElse(getInteger(this, b), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (b) = valueOrElse(getString(this, b), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func d (e,b) = valueOrElse(getBoolean(e, b), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e,b) = valueOrElse(getString(e, b), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (e,b) = valueOrElse(getInteger(e, b), 0) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let h = 100000000 | |
20 | 20 | ||
21 | 21 | let i = 1000000 | |
22 | 22 | ||
23 | - | let j = | |
23 | + | let j = 6 | |
24 | 24 | ||
25 | - | let k = | |
25 | + | let k = 1000000 | |
26 | 26 | ||
27 | - | let l = | |
27 | + | let l = 100000000 | |
28 | 28 | ||
29 | - | let m = | |
29 | + | let m = 8 | |
30 | 30 | ||
31 | - | let n = | |
31 | + | let n = (10 * h) | |
32 | 32 | ||
33 | - | let o = | |
33 | + | let o = 95 | |
34 | 34 | ||
35 | - | let p = " | |
35 | + | let p = "canceled" | |
36 | 36 | ||
37 | - | let q = " | |
37 | + | let q = "new" | |
38 | 38 | ||
39 | - | let r = " | |
39 | + | let r = "filled" | |
40 | 40 | ||
41 | - | let s = " | |
41 | + | let s = "price" | |
42 | 42 | ||
43 | - | let t = " | |
43 | + | let t = "bond_asset_id" | |
44 | 44 | ||
45 | - | let u = " | |
45 | + | let u = "neutrino_asset_id" | |
46 | 46 | ||
47 | - | let v = | |
47 | + | let v = "balance_lock_" | |
48 | 48 | ||
49 | - | let w = ( | |
49 | + | let w = (v + "waves") | |
50 | 50 | ||
51 | - | let x = " | |
51 | + | let x = (v + "neutrino") | |
52 | 52 | ||
53 | - | func y (z) = ("debug_order_roi_" + z) | |
53 | + | let y = "order_first" | |
54 | + | ||
55 | + | func z (A) = ("debug_order_roi_" + A) | |
54 | 56 | ||
55 | 57 | ||
56 | - | func | |
58 | + | func B (A) = ("order_price_" + A) | |
57 | 59 | ||
58 | 60 | ||
59 | - | func | |
61 | + | func C (A) = ("order_total_" + A) | |
60 | 62 | ||
61 | 63 | ||
62 | - | func | |
64 | + | func D (A) = ("order_owner_" + A) | |
63 | 65 | ||
64 | 66 | ||
65 | - | func | |
67 | + | func E (A) = ("order_height_" + A) | |
66 | 68 | ||
67 | 69 | ||
68 | - | func | |
70 | + | func F (A) = ("order_status_" + A) | |
69 | 71 | ||
70 | 72 | ||
71 | - | func | |
73 | + | func G (A) = ("order_filled_total_" + A) | |
72 | 74 | ||
73 | 75 | ||
74 | - | func | |
76 | + | func H (A) = ("order_prev_" + A) | |
75 | 77 | ||
76 | 78 | ||
77 | - | func | |
79 | + | func I (A) = ("order_next_" + A) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func J (K,L) = fraction(fraction(K, k, L), h, i) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func M (K,L) = fraction(fraction(K, L, k), i, h) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func N (K,L) = M(K, L) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func O (K,L) = J(K, L) | |
90 | 92 | ||
91 | 93 | ||
92 | - | let | |
94 | + | let P = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we') | |
93 | 95 | ||
94 | - | let | |
96 | + | let Q = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx') | |
95 | 97 | ||
96 | - | let | |
98 | + | let R = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62') | |
97 | 99 | ||
98 | - | let | |
100 | + | let S = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
99 | 101 | ||
100 | - | let | |
102 | + | let T = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH' | |
101 | 103 | ||
102 | - | let | |
104 | + | let U = d(Q, "is_blocked") | |
103 | 105 | ||
104 | - | let | |
106 | + | let V = g(Q, s) | |
105 | 107 | ||
106 | - | let | |
108 | + | let W = g(P, x) | |
107 | 109 | ||
108 | - | let | |
110 | + | let X = (wavesBalance(P).regular - g(P, w)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let Y = M(X, V) | |
111 | 113 | ||
112 | - | let | |
114 | + | let Z = (((W + value(assetInfo(S)).quantity) - assetBalance(P, S)) - assetBalance(R, S)) | |
113 | 115 | ||
114 | - | let | |
116 | + | let aa = (Z - Y) | |
115 | 117 | ||
116 | - | let | |
118 | + | let ab = fraction(aa, 100, Z) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ac = fraction(Y, l, Z) | |
119 | 121 | ||
120 | - | let | |
122 | + | let ad = c(y) | |
121 | 123 | ||
122 | - | func | |
124 | + | func ae (af) = a(B(af)) | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func ag (af) = a(C(af)) | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func ah (af) = c(D(af)) | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func ai (af) = c(F(af)) | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func aj (af) = a(G(af)) | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func ak (af) = c(H(af)) | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func al (af) = c(I(af)) | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func am (an) = fraction((100 + an), V, 100) | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
148 | + | func ao (L) = ((k * k) / L) | |
147 | 149 | ||
148 | 150 | ||
149 | - | func | |
151 | + | func ap (aq,ar) = fraction(aq, (i * k), ar) | |
150 | 152 | ||
151 | 153 | ||
152 | - | func | |
154 | + | func as (A,at,au,av,aw,ax,L) = [IntegerEntry(B(A), L), IntegerEntry(C(A), at), IntegerEntry(G(A), au), StringEntry(D(A), av), IntegerEntry(E(A), height), StringEntry(F(A), aw), IntegerEntry(("debug_order_currentPrice_" + A), V), IntegerEntry(z(A), ax)] | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | if (!( | |
162 | - | then throw(("innapropriate roi: " + toString( | |
163 | - | else if (( | |
157 | + | func ay (az,aA,aB,aC,aD,aE,aF,aG) = { | |
158 | + | let aH = am(aC) | |
159 | + | let aI = (aE - aB) | |
160 | + | let aJ = N(aI, aH) | |
161 | + | let aK = O(aJ, aH) | |
162 | + | let aL = (ab >= aC) | |
163 | + | if (!(aL)) | |
164 | + | then throw(("innapropriate roi: " + toString(aC))) | |
165 | + | else if ((aK == 0)) | |
164 | 166 | then throw("cannot fill order at the moment") | |
165 | 167 | else { | |
166 | - | let | |
167 | - | let | |
168 | - | then | |
169 | - | else [IntegerEntry( | |
170 | - | ( | |
168 | + | let aM = (aI - aK) | |
169 | + | let aN = if (aG) | |
170 | + | then as(az, aE, (aB + aK), toBase58String(aF.bytes), r, aC, V) | |
171 | + | else [IntegerEntry(G(az), (aB + aK)), StringEntry(F(az), r), StringEntry(H(aA), ""), StringEntry(y, aA)] | |
172 | + | (aN ++ [ScriptTransfer(aF, aJ, T), ScriptTransfer(P, aK, unit), ScriptTransfer(aF, aM, unit)]) | |
171 | 173 | } | |
172 | 174 | } | |
173 | 175 | ||
174 | 176 | ||
175 | - | func | |
176 | - | let | |
177 | - | let | |
178 | - | if ( | |
177 | + | func aO (ax,L,aP,aQ,aG) = { | |
178 | + | let aR = value(aQ.payments[0]) | |
179 | + | let aS = toBase58String(aQ.transactionId) | |
180 | + | if (U) | |
179 | 181 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
180 | - | else if (( | |
181 | - | then throw(("min order total equals " + toString( | |
182 | - | else if (( | |
182 | + | else if ((n > aR.amount)) | |
183 | + | then throw(("min order total equals " + toString(n))) | |
184 | + | else if ((ax > o)) | |
183 | 185 | then throw("max setOrder ROI is 95%") | |
184 | - | else if ((0 > | |
186 | + | else if ((0 > ax)) | |
185 | 187 | then throw("can't place order with negative roi") | |
186 | - | else if (( | |
188 | + | else if ((ax == 0)) | |
187 | 189 | then throw("roi should not be equal to 0") | |
188 | - | else if (isDefined( | |
190 | + | else if (isDefined(aR.assetId)) | |
189 | 191 | then throw("can use waves only") | |
190 | - | else if (( | |
192 | + | else if ((ah(aS) != "")) | |
191 | 193 | then throw("order exists") | |
192 | - | else if (if (( | |
193 | - | then ( | |
194 | + | else if (if ((aP != "")) | |
195 | + | then (ai(aP) != q) | |
194 | 196 | else false) | |
195 | 197 | then throw("prev order status is not new") | |
196 | 198 | else { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | then | |
201 | - | else | |
202 | - | let | |
203 | - | let | |
204 | - | then ( | |
199 | + | let aT = (aP == "") | |
200 | + | let av = toString(aQ.caller) | |
201 | + | let aU = if (aT) | |
202 | + | then ad | |
203 | + | else al(aP) | |
204 | + | let aV = a(z(aU)) | |
205 | + | let aW = if (if ((aU != "")) | |
206 | + | then (ax >= aV) | |
205 | 207 | else false) | |
206 | 208 | then true | |
207 | 209 | else false | |
208 | - | let | |
209 | - | let | |
210 | - | then ( | |
210 | + | let aX = a(z(aP)) | |
211 | + | let aY = if (if ((aP != "")) | |
212 | + | then (aX > ax) | |
211 | 213 | else false) | |
212 | 214 | then true | |
213 | 215 | else false | |
214 | - | if (if ( | |
216 | + | if (if (aW) | |
215 | 217 | then true | |
216 | - | else | |
217 | - | then throw(((("invalid order isPrevOrderError:" + toString( | |
218 | - | else if (if ( | |
219 | - | then ( | |
218 | + | else aY) | |
219 | + | then throw(((("invalid order isPrevOrderError:" + toString(aY)) + " isNextOrderError:") + toString(aW))) | |
220 | + | else if (if (aT) | |
221 | + | then (ab >= ax) | |
220 | 222 | else false) | |
221 | - | then | |
222 | - | else if ( | |
223 | + | then ay(aS, aU, 0, ax, L, aR.amount, aQ.caller, true) | |
224 | + | else if (aG) | |
223 | 225 | then throw("Instant order couldn't be added into waiting queue") | |
224 | - | else ([StringEntry( | |
226 | + | else ([StringEntry(H(aS), aP), StringEntry(I(aS), aU), StringEntry(I(aP), if ((aP == "")) | |
225 | 227 | then "" | |
226 | - | else | |
228 | + | else aS), StringEntry(H(aU), if ((aU == "")) | |
227 | 229 | then "" | |
228 | - | else | |
230 | + | else aS), StringEntry(y, if (if ((ad == "")) | |
229 | 231 | then true | |
230 | - | else ( | |
231 | - | then | |
232 | - | else | |
232 | + | else (ad == aU)) | |
233 | + | then aS | |
234 | + | else ad)] ++ as(aS, aR.amount, 0, av, q, ax, L)) | |
233 | 235 | } | |
234 | 236 | } | |
235 | 237 | ||
236 | 238 | ||
237 | - | func aY (aZ,ba,K) = { | |
238 | - | let bb = 271828100 | |
239 | - | let bc = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
240 | - | let bd = L(aZ, K) | |
241 | - | let be = fraction(bd, k, ba) | |
242 | - | let bf = (bc * (be - (1 * k))) | |
243 | - | let bg = pow(bb, l, bf, l, l, DOWN) | |
244 | - | let bh = fraction(ba, j, (bc * K)) | |
245 | - | let bi = fraction(bh, k, bg) | |
246 | - | let bj = fraction(bi, K, j) | |
247 | - | $Tuple6(bj, bd, be, bf, bg, bh) | |
239 | + | func aZ (ba,bb,L,bc,bd,be) = { | |
240 | + | let bf = 271828100 | |
241 | + | let bg = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
242 | + | let bh = M(ba, L) | |
243 | + | let bi = fraction(bh, l, bb) | |
244 | + | let bj = (bg * (bi - (1 * l))) | |
245 | + | let bk = pow(bf, m, bj, m, m, DOWN) | |
246 | + | let bl = log(((bc - bd) - be), j, bf, m, m, DOWN) | |
247 | + | let bm = log((bc - bd), j, bf, m, m, DOWN) | |
248 | + | let bn = (bm - bl) | |
249 | + | let bo = fraction(bc, bn, l) | |
250 | + | let bp = fraction(bk, bo, l) | |
251 | + | let bq = J(bp, L) | |
252 | + | [bq, bp, ba, bb, bc, bd, be, bg, bh, bi, bj, bk, bm, bl, bn, bo] | |
248 | 253 | } | |
249 | 254 | ||
250 | 255 | ||
251 | - | func | |
256 | + | func br (bs,bt) = (((((((((((((((((((((((((((((((((bs + "[wavesPayment=") + toString(bt[0])) + " usdnPayment=") + toString(bt[1])) + " wRaw=") + toString(bt[2])) + " uRaw=") + toString(bt[3])) + " mRaw=") + toString(bt[4])) + " sRaw=") + toString(bt[5])) + " nRaw=") + toString(bt[6])) + " nsbtCurveParamA=") + toString(bt[7])) + " wReservesInUsdn=") + toString(bt[8])) + " brMult=") + toString(bt[9])) + " powerMult=") + toString(bt[10])) + " expInPowerMult=") + toString(bt[11])) + " lnRes0=") + toString(bt[12])) + " lnRes1=") + toString(bt[13])) + " lnDiffMult=") + toString(bt[14])) + " maxXlndiff=") + toString(bt[15])) + "]") | |
252 | 257 | ||
253 | 258 | ||
254 | - | @Callable(bn) | |
255 | - | func buyNsbtInSurplus () = { | |
256 | - | let aQ = value(bn.payments[0]) | |
257 | - | let bo = aQ.amount | |
258 | - | let bp = bn.caller | |
259 | - | if (T) | |
259 | + | func bu (bv) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(transferTransactionById(fromBase58String("PdLw5JK5ppfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k"))))) | |
260 | + | then !(isDefined(transferTransactionById(fromBase58String("adLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
261 | + | else false) | |
262 | + | then !(isDefined(transferTransactionById(fromBase58String("sdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
263 | + | else false) | |
264 | + | then !(isDefined(transferTransactionById(fromBase58String("ddLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
265 | + | else false) | |
266 | + | then !(isDefined(transferTransactionById(fromBase58String("fdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
267 | + | else false) | |
268 | + | then !(isDefined(transferTransactionById(fromBase58String("gdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
269 | + | else false) | |
270 | + | then !(isDefined(transferTransactionById(fromBase58String("hdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
271 | + | else false) | |
272 | + | then !(isDefined(transferTransactionById(fromBase58String("jdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
273 | + | else false) | |
274 | + | then !(isDefined(transferTransactionById(fromBase58String("kdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
275 | + | else false) | |
276 | + | then !(isDefined(transferTransactionById(fromBase58String("rdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
277 | + | else false) | |
278 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLq5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
279 | + | else false) | |
280 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLy5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
281 | + | else false) | |
282 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLu5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
283 | + | else false) | |
284 | + | then !(isDefined(transferTransactionById(fromBase58String("tdLh5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
285 | + | else false) | |
286 | + | then !(isDefined(transferTransactionById(fromBase58String("1dL4JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
287 | + | else false) | |
288 | + | then !(isDefined(transferTransactionById(fromBase58String("2dL25JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
289 | + | else false) | |
290 | + | then !(isDefined(transferTransactionById(fromBase58String("3dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
291 | + | else false) | |
292 | + | then !(isDefined(transferTransactionById(fromBase58String("4dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
293 | + | else false) | |
294 | + | then !(isDefined(transferTransactionById(fromBase58String("5dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
295 | + | else false) | |
296 | + | then !(isDefined(transferTransactionById(fromBase58String("6dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
297 | + | else false) | |
298 | + | then !(isDefined(transferTransactionById(fromBase58String("7dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
299 | + | else false) | |
300 | + | then !(isDefined(transferTransactionById(fromBase58String("8dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
301 | + | else false) | |
302 | + | then !(isDefined(transferTransactionById(fromBase58String("91L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
303 | + | else false) | |
304 | + | then !(isDefined(transferTransactionById(fromBase58String("92L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
305 | + | else false) | |
306 | + | then !(isDefined(transferTransactionById(fromBase58String("93L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
307 | + | else false) | |
308 | + | then !(isDefined(transferTransactionById(fromBase58String("94L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
309 | + | else false | |
310 | + | ||
311 | + | ||
312 | + | @Callable(bv) | |
313 | + | func buyNsbtInSurplus (bw,bx) = { | |
314 | + | let aR = value(bv.payments[0]) | |
315 | + | let by = aR.amount | |
316 | + | let bz = bv.caller | |
317 | + | if (U) | |
260 | 318 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
261 | - | else if (( | |
262 | - | then throw( | |
263 | - | else if ( | |
264 | - | then throw(" | |
319 | + | else if (isDefined(aR.assetId)) | |
320 | + | then throw("can use waves only") | |
321 | + | else if (((10 * h) > by)) | |
322 | + | then throw("min 10 waves expected") | |
265 | 323 | else { | |
266 | - | let bq = aY(W, Y, U) | |
267 | - | let br = aY((W + bo), Y, U) | |
268 | - | let bs = (bq._1 - br._1) | |
269 | - | let bt = ao(bo, bs) | |
270 | - | let aw = (fraction(an(bt), 100, U) - 100) | |
271 | - | (ar(toBase58String(bn.transactionId), bo, bo, toString(bp), q, aw, bt) ++ [ScriptTransfer(bp, bs, S), ScriptTransfer(O, bo, unit), StringEntry("debug_f0", bk("f0", bq)), StringEntry("debug_f1", bk("f1", br))]) | |
324 | + | let bA = valueOrElse(getInteger(this, "tmp_issuedNsbt"), 0) | |
325 | + | let bB = ((2500 * 1000) * i) | |
326 | + | let bC = (((1500 * 1000) * i) + bA) | |
327 | + | let bt = aZ(X, Z, V, bB, bC, bw) | |
328 | + | let bD = bt[0] | |
329 | + | if ((bD > by)) | |
330 | + | then throw(((("Payment amount is less then required: pmtAmount=" + toString(by)) + " requiredWaves=") + toString(bD))) | |
331 | + | else if ((0 > bx)) | |
332 | + | then throw("Invalid tolerance param") | |
333 | + | else { | |
334 | + | let bE = fraction(bD, (bx + i), i) | |
335 | + | if ((bD > bE)) | |
336 | + | then throw(((("Tolerance check failed: pmtAmount=" + toString(by)) + " maxAllowedPayment=") + toString(bE))) | |
337 | + | else { | |
338 | + | let bF = ap(bD, bw) | |
339 | + | let ax = (fraction(ao(bF), 100, V) - 100) | |
340 | + | (as(toBase58String(bv.transactionId), by, by, toString(bz), r, ax, bF) ++ [ScriptTransfer(bz, bw, T), ScriptTransfer(bz, (by - bD), unit), ScriptTransfer(P, bD, unit), StringEntry("debug_curveResult", br("curveResult", bt)), IntegerEntry("tmp_issuedNsbt", (bA + bw))]) | |
341 | + | } | |
342 | + | } | |
272 | 343 | } | |
273 | 344 | } | |
274 | 345 | ||
275 | 346 | ||
276 | 347 | ||
277 | - | @Callable( | |
278 | - | func instantBuyNsbtOrFail ( | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
282 | - | then throw(((("Current maxRoi=" + toString( | |
348 | + | @Callable(bv) | |
349 | + | func instantBuyNsbtOrFail (bG) = { | |
350 | + | let aR = value(bv.payments[0]) | |
351 | + | let ax = ab | |
352 | + | if ((bG > ax)) | |
353 | + | then throw(((("Current maxRoi=" + toString(ax)) + " is less then passed parameter noLessThenRoi=") + toString(bG))) | |
283 | 354 | else { | |
284 | - | let | |
285 | - | | |
355 | + | let aH = am(ax) | |
356 | + | aO(ax, ao(aH), "", bv, true) | |
286 | 357 | } | |
287 | 358 | } | |
288 | 359 | ||
289 | 360 | ||
290 | 361 | ||
291 | - | @Callable( | |
292 | - | func addBuyBondOrder ( | |
293 | - | let | |
294 | - | let | |
295 | - | if ((0 >= | |
362 | + | @Callable(bv) | |
363 | + | func addBuyBondOrder (L,aP) = { | |
364 | + | let aR = value(bv.payments[0]) | |
365 | + | let aH = ao(L) | |
366 | + | if ((0 >= L)) | |
296 | 367 | then throw("price less zero") | |
297 | - | else | |
368 | + | else aO(fraction((aH - V), 100, V), L, aP, bv, false) | |
298 | 369 | } | |
299 | 370 | ||
300 | 371 | ||
301 | 372 | ||
302 | - | @Callable( | |
303 | - | func cancelOrder ( | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | if ( | |
373 | + | @Callable(bv) | |
374 | + | func cancelOrder (A) = { | |
375 | + | let av = ah(A) | |
376 | + | let K = (ag(A) - aj(A)) | |
377 | + | let bH = toString(bv.caller) | |
378 | + | let aU = al(A) | |
379 | + | let aP = ak(A) | |
380 | + | if (U) | |
310 | 381 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
311 | - | else if (( | |
382 | + | else if ((av != bH)) | |
312 | 383 | then throw("permission denied") | |
313 | - | else if (( | |
384 | + | else if ((ai(A) != q)) | |
314 | 385 | then throw("invalid order status") | |
315 | - | else [StringEntry( | |
316 | - | then | |
317 | - | else | |
386 | + | else [StringEntry(y, if ((ad == A)) | |
387 | + | then aU | |
388 | + | else ad), StringEntry(I(aP), aU), StringEntry(H(aU), aP), StringEntry(F(A), p), ScriptTransfer(bv.caller, K, unit)] | |
318 | 389 | } | |
319 | 390 | ||
320 | 391 | ||
321 | 392 | ||
322 | - | @Callable( | |
323 | - | func sellBond () = if ( | |
393 | + | @Callable(bv) | |
394 | + | func sellBond () = if (U) | |
324 | 395 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
325 | - | else if (( | |
396 | + | else if ((ad == "")) | |
326 | 397 | then throw("empty orderbook") | |
327 | 398 | else { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | | |
399 | + | let aU = al(ad) | |
400 | + | let bI = aj(ad) | |
401 | + | let bJ = ae(ad) | |
402 | + | let ax = a(z(ad)) | |
403 | + | let bK = ag(ad) | |
404 | + | let aF = Address(fromBase58String(ah(ad))) | |
405 | + | ay(ad, aU, bI, ax, bJ, bK, aF, false) | |
335 | 406 | } | |
336 | 407 | ||
337 | 408 | ||
338 | - | @Verifier( | |
339 | - | func | |
340 | - | let | |
341 | - | let | |
409 | + | @Verifier(bL) | |
410 | + | func bM () = { | |
411 | + | let bN = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
412 | + | let bO = ((((if (sigVerify(bL.bodyBytes, bL.proofs[0], fromBase58String(bN[0]))) | |
342 | 413 | then 1 | |
343 | - | else 0) + (if (sigVerify( | |
414 | + | else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(bN[1]))) | |
344 | 415 | then 1 | |
345 | - | else 0)) + (if (sigVerify( | |
416 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(bN[2]))) | |
346 | 417 | then 1 | |
347 | - | else 0)) + (if (sigVerify( | |
418 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(bN[3]))) | |
348 | 419 | then 2 | |
349 | 420 | else 0)) | |
350 | - | ( | |
421 | + | (bO >= 3) | |
351 | 422 | } | |
352 | 423 |
github/deemru/w8io/169f3d6 164.91 ms ◑