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:AAIEAAAAAAAAABoIAhIECgIBARIDCgEBEgQKAgEIEgMKAQgSAAAAAEMBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkHAQAAABh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AUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA8pctQ8=", "chainId": 84, "height": 1343908, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3dg2e9q1kfuTtvoZxLHncXAahiwd2MtFK1o1X8eTCAwv Next: 2ouMhj8ivPh81KrkUmZgL4kB7fTEiErURkQn1vkfTRo3 Diff:
OldNewDifferences
2020
2121 let i = 1000000
2222
23-let j = 1000000
23+let j = 6
2424
25-let k = 100000000
25+let k = 1000000
2626
27-let l = 8
27+let l = 100000000
2828
29-let m = (10 * h)
29+let m = 8
3030
31-let n = 95
31+let n = (10 * h)
3232
33-let o = "canceled"
33+let o = 95
3434
35-let p = "new"
35+let p = "canceled"
3636
37-let q = "filled"
37+let q = "new"
3838
39-let r = "price"
39+let r = "filled"
4040
41-let s = "bond_asset_id"
41+let s = "price"
4242
43-let t = "neutrino_asset_id"
43+let t = "bond_asset_id"
4444
45-let u = "balance_lock_"
45+let u = "neutrino_asset_id"
4646
47-let v = (u + "waves")
47+let v = "balance_lock_"
4848
49-let w = (u + "neutrino")
49+let w = (v + "waves")
5050
51-let x = "order_first"
51+let x = (v + "neutrino")
5252
53-func y (z) = ("debug_order_roi_" + z)
53+let y = "order_first"
54+
55+func z (A) = ("debug_order_roi_" + A)
5456
5557
56-func A (z) = ("order_price_" + z)
58+func B (A) = ("order_price_" + A)
5759
5860
59-func B (z) = ("order_total_" + z)
61+func C (A) = ("order_total_" + A)
6062
6163
62-func C (z) = ("order_owner_" + z)
64+func D (A) = ("order_owner_" + A)
6365
6466
65-func D (z) = ("order_height_" + z)
67+func E (A) = ("order_height_" + A)
6668
6769
68-func E (z) = ("order_status_" + z)
70+func F (A) = ("order_status_" + A)
6971
7072
71-func F (z) = ("order_filled_total_" + z)
73+func G (A) = ("order_filled_total_" + A)
7274
7375
74-func G (z) = ("order_prev_" + z)
76+func H (A) = ("order_prev_" + A)
7577
7678
77-func H (z) = ("order_next_" + z)
79+func I (A) = ("order_next_" + A)
7880
7981
80-func I (J,K) = fraction(fraction(J, j, K), h, i)
82+func J (K,L) = fraction(fraction(K, k, L), h, i)
8183
8284
83-func L (J,K) = fraction(fraction(J, K, j), i, h)
85+func M (K,L) = fraction(fraction(K, L, k), i, h)
8486
8587
86-func M (J,K) = L(J, K)
88+func N (K,L) = M(K, L)
8789
8890
89-func N (J,K) = I(J, K)
91+func O (K,L) = J(K, L)
9092
9193
92-let O = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
94+let P = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
9395
94-let P = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx')
96+let Q = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx')
9597
96-let Q = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
98+let R = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
9799
98-let R = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
100+let S = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
99101
100-let S = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH'
102+let T = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH'
101103
102-let T = d(P, "is_blocked")
104+let U = d(Q, "is_blocked")
103105
104-let U = g(P, r)
106+let V = g(Q, s)
105107
106-let V = g(O, w)
108+let W = g(P, x)
107109
108-let W = (wavesBalance(O).regular - g(O, v))
110+let X = (wavesBalance(P).regular - g(P, w))
109111
110-let X = L(W, U)
112+let Y = M(X, V)
111113
112-let Y = (((V + value(assetInfo(R)).quantity) - assetBalance(O, R)) - assetBalance(Q, R))
114+let Z = (((W + value(assetInfo(S)).quantity) - assetBalance(P, S)) - assetBalance(R, S))
113115
114-let Z = (Y - X)
116+let aa = (Z - Y)
115117
116-let aa = fraction(Z, 100, Y)
118+let ab = fraction(aa, 100, Z)
117119
118-let ab = fraction(X, k, Y)
120+let ac = fraction(Y, l, Z)
119121
120-let ac = c(x)
122+let ad = c(y)
121123
122-func ad (ae) = a(A(ae))
124+func ae (af) = a(B(af))
123125
124126
125-func af (ae) = a(B(ae))
127+func ag (af) = a(C(af))
126128
127129
128-func ag (ae) = c(C(ae))
130+func ah (af) = c(D(af))
129131
130132
131-func ah (ae) = c(E(ae))
133+func ai (af) = c(F(af))
132134
133135
134-func ai (ae) = a(F(ae))
136+func aj (af) = a(G(af))
135137
136138
137-func aj (ae) = c(G(ae))
139+func ak (af) = c(H(af))
138140
139141
140-func ak (ae) = c(H(ae))
142+func al (af) = c(I(af))
141143
142144
143-func al (am) = fraction((100 + am), U, 100)
145+func am (an) = fraction((100 + an), V, 100)
144146
145147
146-func an (K) = ((j * j) / K)
148+func ao (L) = ((k * k) / L)
147149
148150
149-func ao (ap,aq) = fraction(ap, (i * j), aq)
151+func ap (aq,ar) = fraction(aq, (i * k), ar)
150152
151153
152-func ar (z,as,at,au,av,aw,K) = [IntegerEntry(A(z), K), IntegerEntry(B(z), as), IntegerEntry(F(z), at), StringEntry(C(z), au), IntegerEntry(D(z), height), StringEntry(E(z), av), IntegerEntry(("debug_order_currentPrice_" + z), U), IntegerEntry(y(z), aw)]
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)]
153155
154156
155-func ax (ay,az,aA,aB,aC,aD,aE,aF) = {
156- let aG = al(aB)
157- let aH = (aD - aA)
158- let aI = M(aH, aG)
159- let aJ = N(aI, aG)
160- let aK = (aa >= aB)
161- if (!(aK))
162- then throw(("innapropriate roi: " + toString(aB)))
163- else if ((aJ == 0))
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))
164166 then throw("cannot fill order at the moment")
165167 else {
166- let aL = (aH - aJ)
167- let aM = if (aF)
168- then ar(ay, aD, (aA + aJ), toBase58String(aE.bytes), q, aB, U)
169- else [IntegerEntry(F(ay), (aA + aJ)), StringEntry(E(ay), q), StringEntry(G(az), ""), StringEntry(x, az)]
170- (aM ++ [ScriptTransfer(aE, aI, S), ScriptTransfer(O, aJ, unit), ScriptTransfer(aE, aL, unit)])
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)])
171173 }
172174 }
173175
174176
175-func aN (aw,K,aO,aP,aF) = {
176- let aQ = value(aP.payments[0])
177- let aR = toBase58String(aP.transactionId)
178- if (T)
177+func aO (ax,L,aP,aQ,aG) = {
178+ let aR = value(aQ.payments[0])
179+ let aS = toBase58String(aQ.transactionId)
180+ if (U)
179181 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
180- else if ((m > aQ.amount))
181- then throw(("min order total equals " + toString(m)))
182- else if ((aw > n))
182+ else if ((n > aR.amount))
183+ then throw(("min order total equals " + toString(n)))
184+ else if ((ax > o))
183185 then throw("max setOrder ROI is 95%")
184- else if ((0 > aw))
186+ else if ((0 > ax))
185187 then throw("can't place order with negative roi")
186- else if ((aw == 0))
188+ else if ((ax == 0))
187189 then throw("roi should not be equal to 0")
188- else if (isDefined(aQ.assetId))
190+ else if (isDefined(aR.assetId))
189191 then throw("can use waves only")
190- else if ((ag(aR) != ""))
192+ else if ((ah(aS) != ""))
191193 then throw("order exists")
192- else if (if ((aO != ""))
193- then (ah(aO) != p)
194+ else if (if ((aP != ""))
195+ then (ai(aP) != q)
194196 else false)
195197 then throw("prev order status is not new")
196198 else {
197- let aS = (aO == "")
198- let au = toString(aP.caller)
199- let aT = if (aS)
200- then ac
201- else ak(aO)
202- let aU = a(y(aT))
203- let aV = if (if ((aT != ""))
204- then (aw >= aU)
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)
205207 else false)
206208 then true
207209 else false
208- let aW = a(y(aO))
209- let aX = if (if ((aO != ""))
210- then (aW > aw)
210+ let aX = a(z(aP))
211+ let aY = if (if ((aP != ""))
212+ then (aX > ax)
211213 else false)
212214 then true
213215 else false
214- if (if (aV)
216+ if (if (aW)
215217 then true
216- else aX)
217- then throw(((("invalid order isPrevOrderError:" + toString(aX)) + " isNextOrderError:") + toString(aV)))
218- else if (if (aS)
219- then (aa >= aw)
218+ else aY)
219+ then throw(((("invalid order isPrevOrderError:" + toString(aY)) + " isNextOrderError:") + toString(aW)))
220+ else if (if (aT)
221+ then (ab >= ax)
220222 else false)
221- then ax(aR, aT, 0, aw, K, aQ.amount, aP.caller, true)
222- else if (aF)
223+ then ay(aS, aU, 0, ax, L, aR.amount, aQ.caller, true)
224+ else if (aG)
223225 then throw("Instant order couldn't be added into waiting queue")
224- else ([StringEntry(G(aR), aO), StringEntry(H(aR), aT), StringEntry(H(aO), if ((aO == ""))
226+ else ([StringEntry(H(aS), aP), StringEntry(I(aS), aU), StringEntry(I(aP), if ((aP == ""))
225227 then ""
226- else aR), StringEntry(G(aT), if ((aT == ""))
228+ else aS), StringEntry(H(aU), if ((aU == ""))
227229 then ""
228- else aR), StringEntry(x, if (if ((ac == ""))
230+ else aS), StringEntry(y, if (if ((ad == ""))
229231 then true
230- else (ac == aT))
231- then aR
232- else ac)] ++ ar(aR, aQ.amount, 0, au, p, aw, K))
232+ else (ad == aU))
233+ then aS
234+ else ad)] ++ as(aS, aR.amount, 0, av, q, ax, L))
233235 }
234236 }
235237
236238
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]
248253 }
249254
250255
251-func bk (bl,bm) = (((((((((((((bl + "[finalResult=") + toString(bm._1)) + "wReservesInUsdn=") + toString(bm._2)) + " brMult=") + toString(bm._3)) + " powerMult=") + toString(bm._4)) + " expInPowerMult=") + toString(bm._5)) + " constCoeff=") + toString(bm._6)) + "]")
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])) + "]")
252257
253258
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)
260318 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
261- else if (((1 * k) > ab))
262- then throw(((("use instantBuyNsbtOrFail or addBuyBondOrder methods to buy nsbt when BR < 1: currentBR=" + toString(ab)) + "/") + toString(k)))
263- else if (isDefined(aQ.assetId))
264- then throw("can use waves only")
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")
265323 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+ }
272343 }
273344 }
274345
275346
276347
277-@Callable(bn)
278-func instantBuyNsbtOrFail (bu) = {
279- let aQ = value(bn.payments[0])
280- let aw = aa
281- if ((bu > aw))
282- then throw(((("Current maxRoi=" + toString(aw)) + " is less then passed parameter noLessThenRoi=") + toString(bu)))
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)))
283354 else {
284- let aG = al(aw)
285- aN(aw, an(aG), "", bn, true)
355+ let aH = am(ax)
356+ aO(ax, ao(aH), "", bv, true)
286357 }
287358 }
288359
289360
290361
291-@Callable(bn)
292-func addBuyBondOrder (K,aO) = {
293- let aQ = value(bn.payments[0])
294- let aG = an(K)
295- if ((0 >= K))
362+@Callable(bv)
363+func addBuyBondOrder (L,aP) = {
364+ let aR = value(bv.payments[0])
365+ let aH = ao(L)
366+ if ((0 >= L))
296367 then throw("price less zero")
297- else aN(fraction((aG - U), 100, U), K, aO, bn, false)
368+ else aO(fraction((aH - V), 100, V), L, aP, bv, false)
298369 }
299370
300371
301372
302-@Callable(bn)
303-func cancelOrder (z) = {
304- let au = ag(z)
305- let J = (af(z) - ai(z))
306- let bv = toString(bn.caller)
307- let aT = ak(z)
308- let aO = aj(z)
309- if (T)
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)
310381 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
311- else if ((au != bv))
382+ else if ((av != bH))
312383 then throw("permission denied")
313- else if ((ah(z) != p))
384+ else if ((ai(A) != q))
314385 then throw("invalid order status")
315- else [StringEntry(x, if ((ac == z))
316- then aT
317- else ac), StringEntry(H(aO), aT), StringEntry(G(aT), aO), StringEntry(E(z), o), ScriptTransfer(bn.caller, J, unit)]
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)]
318389 }
319390
320391
321392
322-@Callable(bn)
323-func sellBond () = if (T)
393+@Callable(bv)
394+func sellBond () = if (U)
324395 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
325- else if ((ac == ""))
396+ else if ((ad == ""))
326397 then throw("empty orderbook")
327398 else {
328- let aT = ak(ac)
329- let bw = ai(ac)
330- let bx = ad(ac)
331- let aw = a(y(ac))
332- let by = af(ac)
333- let aE = Address(fromBase58String(ag(ac)))
334- ax(ac, aT, bw, aw, bx, by, aE, false)
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)
335406 }
336407
337408
338-@Verifier(bz)
339-func bA () = {
340- let bB = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"]
341- let bC = ((((if (sigVerify(bz.bodyBytes, bz.proofs[0], fromBase58String(bB[0])))
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])))
342413 then 1
343- else 0) + (if (sigVerify(bz.bodyBytes, bz.proofs[1], fromBase58String(bB[1])))
414+ else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(bN[1])))
344415 then 1
345- else 0)) + (if (sigVerify(bz.bodyBytes, bz.proofs[2], fromBase58String(bB[2])))
416+ else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(bN[2])))
346417 then 1
347- else 0)) + (if (sigVerify(bz.bodyBytes, bz.proofs[3], fromBase58String(bB[3])))
418+ else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(bN[3])))
348419 then 2
349420 else 0))
350- (bC >= 3)
421+ (bO >= 3)
351422 }
352423
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = valueOrElse(getInteger(this, b), 0)
55
66
77 func c (b) = valueOrElse(getString(this, b), "")
88
99
1010 func d (e,b) = valueOrElse(getBoolean(e, b), false)
1111
1212
1313 func f (e,b) = valueOrElse(getString(e, b), "")
1414
1515
1616 func g (e,b) = valueOrElse(getInteger(e, b), 0)
1717
1818
1919 let h = 100000000
2020
2121 let i = 1000000
2222
23-let j = 1000000
23+let j = 6
2424
25-let k = 100000000
25+let k = 1000000
2626
27-let l = 8
27+let l = 100000000
2828
29-let m = (10 * h)
29+let m = 8
3030
31-let n = 95
31+let n = (10 * h)
3232
33-let o = "canceled"
33+let o = 95
3434
35-let p = "new"
35+let p = "canceled"
3636
37-let q = "filled"
37+let q = "new"
3838
39-let r = "price"
39+let r = "filled"
4040
41-let s = "bond_asset_id"
41+let s = "price"
4242
43-let t = "neutrino_asset_id"
43+let t = "bond_asset_id"
4444
45-let u = "balance_lock_"
45+let u = "neutrino_asset_id"
4646
47-let v = (u + "waves")
47+let v = "balance_lock_"
4848
49-let w = (u + "neutrino")
49+let w = (v + "waves")
5050
51-let x = "order_first"
51+let x = (v + "neutrino")
5252
53-func y (z) = ("debug_order_roi_" + z)
53+let y = "order_first"
54+
55+func z (A) = ("debug_order_roi_" + A)
5456
5557
56-func A (z) = ("order_price_" + z)
58+func B (A) = ("order_price_" + A)
5759
5860
59-func B (z) = ("order_total_" + z)
61+func C (A) = ("order_total_" + A)
6062
6163
62-func C (z) = ("order_owner_" + z)
64+func D (A) = ("order_owner_" + A)
6365
6466
65-func D (z) = ("order_height_" + z)
67+func E (A) = ("order_height_" + A)
6668
6769
68-func E (z) = ("order_status_" + z)
70+func F (A) = ("order_status_" + A)
6971
7072
71-func F (z) = ("order_filled_total_" + z)
73+func G (A) = ("order_filled_total_" + A)
7274
7375
74-func G (z) = ("order_prev_" + z)
76+func H (A) = ("order_prev_" + A)
7577
7678
77-func H (z) = ("order_next_" + z)
79+func I (A) = ("order_next_" + A)
7880
7981
80-func I (J,K) = fraction(fraction(J, j, K), h, i)
82+func J (K,L) = fraction(fraction(K, k, L), h, i)
8183
8284
83-func L (J,K) = fraction(fraction(J, K, j), i, h)
85+func M (K,L) = fraction(fraction(K, L, k), i, h)
8486
8587
86-func M (J,K) = L(J, K)
88+func N (K,L) = M(K, L)
8789
8890
89-func N (J,K) = I(J, K)
91+func O (K,L) = J(K, L)
9092
9193
92-let O = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
94+let P = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
9395
94-let P = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx')
96+let Q = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx')
9597
96-let Q = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
98+let R = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
9799
98-let R = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
100+let S = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
99101
100-let S = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH'
102+let T = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH'
101103
102-let T = d(P, "is_blocked")
104+let U = d(Q, "is_blocked")
103105
104-let U = g(P, r)
106+let V = g(Q, s)
105107
106-let V = g(O, w)
108+let W = g(P, x)
107109
108-let W = (wavesBalance(O).regular - g(O, v))
110+let X = (wavesBalance(P).regular - g(P, w))
109111
110-let X = L(W, U)
112+let Y = M(X, V)
111113
112-let Y = (((V + value(assetInfo(R)).quantity) - assetBalance(O, R)) - assetBalance(Q, R))
114+let Z = (((W + value(assetInfo(S)).quantity) - assetBalance(P, S)) - assetBalance(R, S))
113115
114-let Z = (Y - X)
116+let aa = (Z - Y)
115117
116-let aa = fraction(Z, 100, Y)
118+let ab = fraction(aa, 100, Z)
117119
118-let ab = fraction(X, k, Y)
120+let ac = fraction(Y, l, Z)
119121
120-let ac = c(x)
122+let ad = c(y)
121123
122-func ad (ae) = a(A(ae))
124+func ae (af) = a(B(af))
123125
124126
125-func af (ae) = a(B(ae))
127+func ag (af) = a(C(af))
126128
127129
128-func ag (ae) = c(C(ae))
130+func ah (af) = c(D(af))
129131
130132
131-func ah (ae) = c(E(ae))
133+func ai (af) = c(F(af))
132134
133135
134-func ai (ae) = a(F(ae))
136+func aj (af) = a(G(af))
135137
136138
137-func aj (ae) = c(G(ae))
139+func ak (af) = c(H(af))
138140
139141
140-func ak (ae) = c(H(ae))
142+func al (af) = c(I(af))
141143
142144
143-func al (am) = fraction((100 + am), U, 100)
145+func am (an) = fraction((100 + an), V, 100)
144146
145147
146-func an (K) = ((j * j) / K)
148+func ao (L) = ((k * k) / L)
147149
148150
149-func ao (ap,aq) = fraction(ap, (i * j), aq)
151+func ap (aq,ar) = fraction(aq, (i * k), ar)
150152
151153
152-func ar (z,as,at,au,av,aw,K) = [IntegerEntry(A(z), K), IntegerEntry(B(z), as), IntegerEntry(F(z), at), StringEntry(C(z), au), IntegerEntry(D(z), height), StringEntry(E(z), av), IntegerEntry(("debug_order_currentPrice_" + z), U), IntegerEntry(y(z), aw)]
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)]
153155
154156
155-func ax (ay,az,aA,aB,aC,aD,aE,aF) = {
156- let aG = al(aB)
157- let aH = (aD - aA)
158- let aI = M(aH, aG)
159- let aJ = N(aI, aG)
160- let aK = (aa >= aB)
161- if (!(aK))
162- then throw(("innapropriate roi: " + toString(aB)))
163- else if ((aJ == 0))
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))
164166 then throw("cannot fill order at the moment")
165167 else {
166- let aL = (aH - aJ)
167- let aM = if (aF)
168- then ar(ay, aD, (aA + aJ), toBase58String(aE.bytes), q, aB, U)
169- else [IntegerEntry(F(ay), (aA + aJ)), StringEntry(E(ay), q), StringEntry(G(az), ""), StringEntry(x, az)]
170- (aM ++ [ScriptTransfer(aE, aI, S), ScriptTransfer(O, aJ, unit), ScriptTransfer(aE, aL, unit)])
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)])
171173 }
172174 }
173175
174176
175-func aN (aw,K,aO,aP,aF) = {
176- let aQ = value(aP.payments[0])
177- let aR = toBase58String(aP.transactionId)
178- if (T)
177+func aO (ax,L,aP,aQ,aG) = {
178+ let aR = value(aQ.payments[0])
179+ let aS = toBase58String(aQ.transactionId)
180+ if (U)
179181 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
180- else if ((m > aQ.amount))
181- then throw(("min order total equals " + toString(m)))
182- else if ((aw > n))
182+ else if ((n > aR.amount))
183+ then throw(("min order total equals " + toString(n)))
184+ else if ((ax > o))
183185 then throw("max setOrder ROI is 95%")
184- else if ((0 > aw))
186+ else if ((0 > ax))
185187 then throw("can't place order with negative roi")
186- else if ((aw == 0))
188+ else if ((ax == 0))
187189 then throw("roi should not be equal to 0")
188- else if (isDefined(aQ.assetId))
190+ else if (isDefined(aR.assetId))
189191 then throw("can use waves only")
190- else if ((ag(aR) != ""))
192+ else if ((ah(aS) != ""))
191193 then throw("order exists")
192- else if (if ((aO != ""))
193- then (ah(aO) != p)
194+ else if (if ((aP != ""))
195+ then (ai(aP) != q)
194196 else false)
195197 then throw("prev order status is not new")
196198 else {
197- let aS = (aO == "")
198- let au = toString(aP.caller)
199- let aT = if (aS)
200- then ac
201- else ak(aO)
202- let aU = a(y(aT))
203- let aV = if (if ((aT != ""))
204- then (aw >= aU)
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)
205207 else false)
206208 then true
207209 else false
208- let aW = a(y(aO))
209- let aX = if (if ((aO != ""))
210- then (aW > aw)
210+ let aX = a(z(aP))
211+ let aY = if (if ((aP != ""))
212+ then (aX > ax)
211213 else false)
212214 then true
213215 else false
214- if (if (aV)
216+ if (if (aW)
215217 then true
216- else aX)
217- then throw(((("invalid order isPrevOrderError:" + toString(aX)) + " isNextOrderError:") + toString(aV)))
218- else if (if (aS)
219- then (aa >= aw)
218+ else aY)
219+ then throw(((("invalid order isPrevOrderError:" + toString(aY)) + " isNextOrderError:") + toString(aW)))
220+ else if (if (aT)
221+ then (ab >= ax)
220222 else false)
221- then ax(aR, aT, 0, aw, K, aQ.amount, aP.caller, true)
222- else if (aF)
223+ then ay(aS, aU, 0, ax, L, aR.amount, aQ.caller, true)
224+ else if (aG)
223225 then throw("Instant order couldn't be added into waiting queue")
224- else ([StringEntry(G(aR), aO), StringEntry(H(aR), aT), StringEntry(H(aO), if ((aO == ""))
226+ else ([StringEntry(H(aS), aP), StringEntry(I(aS), aU), StringEntry(I(aP), if ((aP == ""))
225227 then ""
226- else aR), StringEntry(G(aT), if ((aT == ""))
228+ else aS), StringEntry(H(aU), if ((aU == ""))
227229 then ""
228- else aR), StringEntry(x, if (if ((ac == ""))
230+ else aS), StringEntry(y, if (if ((ad == ""))
229231 then true
230- else (ac == aT))
231- then aR
232- else ac)] ++ ar(aR, aQ.amount, 0, au, p, aw, K))
232+ else (ad == aU))
233+ then aS
234+ else ad)] ++ as(aS, aR.amount, 0, av, q, ax, L))
233235 }
234236 }
235237
236238
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]
248253 }
249254
250255
251-func bk (bl,bm) = (((((((((((((bl + "[finalResult=") + toString(bm._1)) + "wReservesInUsdn=") + toString(bm._2)) + " brMult=") + toString(bm._3)) + " powerMult=") + toString(bm._4)) + " expInPowerMult=") + toString(bm._5)) + " constCoeff=") + toString(bm._6)) + "]")
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])) + "]")
252257
253258
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)
260318 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
261- else if (((1 * k) > ab))
262- then throw(((("use instantBuyNsbtOrFail or addBuyBondOrder methods to buy nsbt when BR < 1: currentBR=" + toString(ab)) + "/") + toString(k)))
263- else if (isDefined(aQ.assetId))
264- then throw("can use waves only")
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")
265323 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+ }
272343 }
273344 }
274345
275346
276347
277-@Callable(bn)
278-func instantBuyNsbtOrFail (bu) = {
279- let aQ = value(bn.payments[0])
280- let aw = aa
281- if ((bu > aw))
282- then throw(((("Current maxRoi=" + toString(aw)) + " is less then passed parameter noLessThenRoi=") + toString(bu)))
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)))
283354 else {
284- let aG = al(aw)
285- aN(aw, an(aG), "", bn, true)
355+ let aH = am(ax)
356+ aO(ax, ao(aH), "", bv, true)
286357 }
287358 }
288359
289360
290361
291-@Callable(bn)
292-func addBuyBondOrder (K,aO) = {
293- let aQ = value(bn.payments[0])
294- let aG = an(K)
295- if ((0 >= K))
362+@Callable(bv)
363+func addBuyBondOrder (L,aP) = {
364+ let aR = value(bv.payments[0])
365+ let aH = ao(L)
366+ if ((0 >= L))
296367 then throw("price less zero")
297- else aN(fraction((aG - U), 100, U), K, aO, bn, false)
368+ else aO(fraction((aH - V), 100, V), L, aP, bv, false)
298369 }
299370
300371
301372
302-@Callable(bn)
303-func cancelOrder (z) = {
304- let au = ag(z)
305- let J = (af(z) - ai(z))
306- let bv = toString(bn.caller)
307- let aT = ak(z)
308- let aO = aj(z)
309- if (T)
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)
310381 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
311- else if ((au != bv))
382+ else if ((av != bH))
312383 then throw("permission denied")
313- else if ((ah(z) != p))
384+ else if ((ai(A) != q))
314385 then throw("invalid order status")
315- else [StringEntry(x, if ((ac == z))
316- then aT
317- else ac), StringEntry(H(aO), aT), StringEntry(G(aT), aO), StringEntry(E(z), o), ScriptTransfer(bn.caller, J, unit)]
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)]
318389 }
319390
320391
321392
322-@Callable(bn)
323-func sellBond () = if (T)
393+@Callable(bv)
394+func sellBond () = if (U)
324395 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
325- else if ((ac == ""))
396+ else if ((ad == ""))
326397 then throw("empty orderbook")
327398 else {
328- let aT = ak(ac)
329- let bw = ai(ac)
330- let bx = ad(ac)
331- let aw = a(y(ac))
332- let by = af(ac)
333- let aE = Address(fromBase58String(ag(ac)))
334- ax(ac, aT, bw, aw, bx, by, aE, false)
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)
335406 }
336407
337408
338-@Verifier(bz)
339-func bA () = {
340- let bB = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"]
341- let bC = ((((if (sigVerify(bz.bodyBytes, bz.proofs[0], fromBase58String(bB[0])))
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])))
342413 then 1
343- else 0) + (if (sigVerify(bz.bodyBytes, bz.proofs[1], fromBase58String(bB[1])))
414+ else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(bN[1])))
344415 then 1
345- else 0)) + (if (sigVerify(bz.bodyBytes, bz.proofs[2], fromBase58String(bB[2])))
416+ else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(bN[2])))
346417 then 1
347- else 0)) + (if (sigVerify(bz.bodyBytes, bz.proofs[3], fromBase58String(bB[3])))
418+ else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(bN[3])))
348419 then 2
349420 else 0))
350- (bC >= 3)
421+ (bO >= 3)
351422 }
352423

github/deemru/w8io/169f3d6 
164.91 ms