tx · 2ouMhj8ivPh81KrkUmZgL4kB7fTEiErURkQn1vkfTRo3 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N: -0.02000000 Waves 2021.01.08 12:09 [1344231] smart account 3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N > SELF 0.00000000 Waves
{ "type": 13, "id": "2ouMhj8ivPh81KrkUmZgL4kB7fTEiErURkQn1vkfTRo3", "fee": 2000000, "feeAssetId": null, "timestamp": 1610096966621, "version": 1, "sender": "3MxbR7b3gHF4XdQKNTT5aQMRiazHvrVWC8N", "senderPublicKey": "4bj7YXaphTC4Ldx7DqqMmrTjNshRtw1yNsej2XXZcAzS", "proofs": [ "4c18zeLSpHoRQdwXJ4rXYFkKXY9qpfHbqniBA859V71yw1eECwVEydTLzGsBLTZmLkqNgd3iSDXJ6zN7wHyTfzBw", "29jSoxPWjixqvp18ynpqHrcWeuAxq3g9kvdwb6rxY9mszvWgYkDSeN5kH3iJGr9YKr628RHXfw3p8UEUHLdiv28p", "5HGPe8egu81gSyvwBa57MZDh4JjXaD9LLARTdj7xrWVtTc4PdWy6KXR5LQnoeRezuKwSNoLgJrELYogoyYzi8fvY" ], "script": "base64:AAIEAAAAAAAAABkIAhIDCgEBEgMKAQESBAoCAQgSAwoBCBIAAAAAQwEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AgAAAAABAAAAFmdldEJvb2xCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQcBAAAAGGdldFN0cmluZ0J5Q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AAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAPshzqS", "chainId": 84, "height": 1344231, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JhGsAs6Bqp8mhbTCBfZTGwBrVWBoiJf2tHEfGdmja1n Next: DhMtx3H2y2LAeqHiaVwHyApA3YZLUWeZKymVZ6hsYW3a Diff:
Old | New | Differences | |
---|---|---|---|
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | - | func buyNsbtInSurplus (nsbtAmount | |
313 | + | func buyNsbtInSurplus (nsbtAmount) = { | |
314 | 314 | let pmt = value(i.payments[0]) | |
315 | 315 | let pmtAmount = pmt.amount | |
316 | 316 | let ownerAddress = i.caller | |
328 | 328 | let requiredWaves = curveResult[0] | |
329 | 329 | if ((requiredWaves > pmtAmount)) | |
330 | 330 | then throw(((("Payment amount is less then required: pmtAmount=" + toString(pmtAmount)) + " requiredWaves=") + toString(requiredWaves))) | |
331 | - | else if ((0 > toleranceRaw)) | |
332 | - | then throw("Invalid tolerance param") | |
333 | - | else { | |
334 | - | let maxAllowedPayment = fraction(requiredWaves, (toleranceRaw + PAULI), PAULI) | |
335 | - | if ((requiredWaves > maxAllowedPayment)) | |
336 | - | then throw(((("Tolerance check failed: pmtAmount=" + toString(pmtAmount)) + " maxAllowedPayment=") + toString(maxAllowedPayment))) | |
337 | - | else { | |
338 | - | let nsbt2WavesPriceRaw = calcNsbt2WavesPriceRaw(requiredWaves, nsbtAmount) | |
339 | - | let roi = (fraction(getReversePrice(nsbt2WavesPriceRaw), 100, currentPrice) - 100) | |
340 | - | (orderData(toBase58String(i.transactionId), pmtAmount, pmtAmount, toString(ownerAddress), FILLED, roi, nsbt2WavesPriceRaw) ++ [ScriptTransfer(ownerAddress, nsbtAmount, bondAssetId), ScriptTransfer(ownerAddress, (pmtAmount - requiredWaves), unit), ScriptTransfer(neutrinoContract, requiredWaves, unit), StringEntry("debug_curveResult", toStr("curveResult", curveResult)), IntegerEntry("tmp_issuedNsbt", (issuedNsbt + nsbtAmount))]) | |
341 | - | } | |
342 | - | } | |
331 | + | else { | |
332 | + | let nsbt2WavesPriceRaw = calcNsbt2WavesPriceRaw(requiredWaves, nsbtAmount) | |
333 | + | let roi = (fraction(getReversePrice(nsbt2WavesPriceRaw), 100, currentPrice) - 100) | |
334 | + | (orderData(toBase58String(i.transactionId), pmtAmount, pmtAmount, toString(ownerAddress), FILLED, roi, nsbt2WavesPriceRaw) ++ [ScriptTransfer(ownerAddress, nsbtAmount, bondAssetId), ScriptTransfer(ownerAddress, (pmtAmount - requiredWaves), unit), ScriptTransfer(neutrinoContract, requiredWaves, unit), StringEntry("debug_curveResult", toStr("curveResult", curveResult)), IntegerEntry("tmp_issuedNsbt", (issuedNsbt + nsbtAmount))]) | |
335 | + | } | |
343 | 336 | } | |
344 | 337 | } | |
345 | 338 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(address, key), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(address, key), 0) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let WAVELET = 100000000 | |
20 | 20 | ||
21 | 21 | let PAULI = 1000000 | |
22 | 22 | ||
23 | 23 | let PAULISCALE = 6 | |
24 | 24 | ||
25 | 25 | let PRICELET = 1000000 | |
26 | 26 | ||
27 | 27 | let MULT = 100000000 | |
28 | 28 | ||
29 | 29 | let MULTSCALE = 8 | |
30 | 30 | ||
31 | 31 | let MINORDERTOTAL = (10 * WAVELET) | |
32 | 32 | ||
33 | 33 | let MAXROI = 95 | |
34 | 34 | ||
35 | 35 | let CANCELED = "canceled" | |
36 | 36 | ||
37 | 37 | let NEW = "new" | |
38 | 38 | ||
39 | 39 | let FILLED = "filled" | |
40 | 40 | ||
41 | 41 | let PriceKey = "price" | |
42 | 42 | ||
43 | 43 | let BondAssetIdKey = "bond_asset_id" | |
44 | 44 | ||
45 | 45 | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
46 | 46 | ||
47 | 47 | let BalanceLockedkKey = "balance_lock_" | |
48 | 48 | ||
49 | 49 | let WavesLockedBalanceKey = (BalanceLockedkKey + "waves") | |
50 | 50 | ||
51 | 51 | let NeutrinoLockedBalanceKey = (BalanceLockedkKey + "neutrino") | |
52 | 52 | ||
53 | 53 | let FirstOrderKey = "order_first" | |
54 | 54 | ||
55 | 55 | func getRoiByOrderIdKey (orderId) = ("debug_order_roi_" + orderId) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getOrderPriceKey (orderId) = ("order_price_" + orderId) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getOrderTotalKey (orderId) = ("order_total_" + orderId) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getOrderOwnerKey (orderId) = ("order_owner_" + orderId) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func getOrderHeightKey (orderId) = ("order_height_" + orderId) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getOrderStatusKey (orderId) = ("order_status_" + orderId) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getOrderFilledTotalKey (orderId) = ("order_filled_total_" + orderId) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getPrevOrderKey (orderId) = ("order_prev_" + orderId) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getNextOrderKey (orderId) = ("order_next_" + orderId) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func convertBondToWaves (amount,price) = convertNeutrinoToWaves(amount, price) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | let neutrinoContract = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we') | |
95 | 95 | ||
96 | 96 | let controlContract = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx') | |
97 | 97 | ||
98 | 98 | let liquidationContract = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62') | |
99 | 99 | ||
100 | 100 | let neutrinoAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
101 | 101 | ||
102 | 102 | let bondAssetId = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH' | |
103 | 103 | ||
104 | 104 | let isBlocked = getBoolByAddressAndKey(controlContract, "is_blocked") | |
105 | 105 | ||
106 | 106 | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
107 | 107 | ||
108 | 108 | let neutrinoLockedBalance = getNumberByAddressAndKey(neutrinoContract, NeutrinoLockedBalanceKey) | |
109 | 109 | ||
110 | 110 | let reserve = (wavesBalance(neutrinoContract).regular - getNumberByAddressAndKey(neutrinoContract, WavesLockedBalanceKey)) | |
111 | 111 | ||
112 | 112 | let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice) | |
113 | 113 | ||
114 | 114 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId)) | |
115 | 115 | ||
116 | 116 | let deficit = (neutrinoSupply - reservesInUsdn) | |
117 | 117 | ||
118 | 118 | let currentMaxRoi = fraction(deficit, 100, neutrinoSupply) | |
119 | 119 | ||
120 | 120 | let currentBrMult = fraction(reservesInUsdn, MULT, neutrinoSupply) | |
121 | 121 | ||
122 | 122 | let firstOrder = getStringByKey(FirstOrderKey) | |
123 | 123 | ||
124 | 124 | func getOrderPrice (id) = getNumberByKey(getOrderPriceKey(id)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getOrderTotal (id) = getNumberByKey(getOrderTotalKey(id)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getOrderOwner (id) = getStringByKey(getOrderOwnerKey(id)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func getOrderStatus (id) = getStringByKey(getOrderStatusKey(id)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getOrderFilledTotal (id) = getNumberByKey(getOrderFilledTotalKey(id)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getPrevOrder (id) = getStringByKey(getPrevOrderKey(id)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getNextOrder (id) = getStringByKey(getNextOrderKey(id)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getPriceForRoi (roiPercents) = fraction((100 + roiPercents), currentPrice, 100) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getReversePrice (price) = ((PRICELET * PRICELET) / price) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func calcNsbt2WavesPriceRaw (spentWavesRaw,receivedNsbtRaw) = fraction(spentWavesRaw, (PAULI * PRICELET), receivedNsbtRaw) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func orderData (orderId,totalWavelets,filledWavelets,owner,status,roi,price) = [IntegerEntry(getOrderPriceKey(orderId), price), IntegerEntry(getOrderTotalKey(orderId), totalWavelets), IntegerEntry(getOrderFilledTotalKey(orderId), filledWavelets), StringEntry(getOrderOwnerKey(orderId), owner), IntegerEntry(getOrderHeightKey(orderId), height), StringEntry(getOrderStatusKey(orderId), status), IntegerEntry(("debug_order_currentPrice_" + orderId), currentPrice), IntegerEntry(getRoiByOrderIdKey(orderId), roi)] | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func internalSellBond (pFirstOrder,pNextOrder,pFilledTotal,pRoi,pPrice,pPaymentWavelets,orderOwnerAddress,instantOrder) = { | |
158 | 158 | let priceWavesByBondCents = getPriceForRoi(pRoi) | |
159 | 159 | let remainedTotal = (pPaymentWavelets - pFilledTotal) | |
160 | 160 | let fillableOrderAmount = convertWavesToBond(remainedTotal, priceWavesByBondCents) | |
161 | 161 | let totalOrderWaveletesRequired = convertBondToWaves(fillableOrderAmount, priceWavesByBondCents) | |
162 | 162 | let nbTokensSellCondition = (currentMaxRoi >= pRoi) | |
163 | 163 | if (!(nbTokensSellCondition)) | |
164 | 164 | then throw(("innapropriate roi: " + toString(pRoi))) | |
165 | 165 | else if ((totalOrderWaveletesRequired == 0)) | |
166 | 166 | then throw("cannot fill order at the moment") | |
167 | 167 | else { | |
168 | 168 | let changeWavelets = (remainedTotal - totalOrderWaveletesRequired) | |
169 | 169 | let writeSetData = if (instantOrder) | |
170 | 170 | then orderData(pFirstOrder, pPaymentWavelets, (pFilledTotal + totalOrderWaveletesRequired), toBase58String(orderOwnerAddress.bytes), FILLED, pRoi, currentPrice) | |
171 | 171 | else [IntegerEntry(getOrderFilledTotalKey(pFirstOrder), (pFilledTotal + totalOrderWaveletesRequired)), StringEntry(getOrderStatusKey(pFirstOrder), FILLED), StringEntry(getPrevOrderKey(pNextOrder), ""), StringEntry(FirstOrderKey, pNextOrder)] | |
172 | 172 | (writeSetData ++ [ScriptTransfer(orderOwnerAddress, fillableOrderAmount, bondAssetId), ScriptTransfer(neutrinoContract, totalOrderWaveletesRequired, unit), ScriptTransfer(orderOwnerAddress, changeWavelets, unit)]) | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func internalAddBuyBondOrder (roi,price,prevOrder,inv,instantOrder) = { | |
178 | 178 | let pmt = value(inv.payments[0]) | |
179 | 179 | let newOrderId = toBase58String(inv.transactionId) | |
180 | 180 | if (isBlocked) | |
181 | 181 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
182 | 182 | else if ((MINORDERTOTAL > pmt.amount)) | |
183 | 183 | then throw(("min order total equals " + toString(MINORDERTOTAL))) | |
184 | 184 | else if ((roi > MAXROI)) | |
185 | 185 | then throw("max setOrder ROI is 95%") | |
186 | 186 | else if ((0 > roi)) | |
187 | 187 | then throw("can't place order with negative roi") | |
188 | 188 | else if ((roi == 0)) | |
189 | 189 | then throw("roi should not be equal to 0") | |
190 | 190 | else if (isDefined(pmt.assetId)) | |
191 | 191 | then throw("can use waves only") | |
192 | 192 | else if ((getOrderOwner(newOrderId) != "")) | |
193 | 193 | then throw("order exists") | |
194 | 194 | else if (if ((prevOrder != "")) | |
195 | 195 | then (getOrderStatus(prevOrder) != NEW) | |
196 | 196 | else false) | |
197 | 197 | then throw("prev order status is not new") | |
198 | 198 | else { | |
199 | 199 | let isNewOrderAtFirstPosition = (prevOrder == "") | |
200 | 200 | let owner = toString(inv.caller) | |
201 | 201 | let nextOrder = if (isNewOrderAtFirstPosition) | |
202 | 202 | then firstOrder | |
203 | 203 | else getNextOrder(prevOrder) | |
204 | 204 | let nextOrderRoi = getNumberByKey(getRoiByOrderIdKey(nextOrder)) | |
205 | 205 | let isNextOrderError = if (if ((nextOrder != "")) | |
206 | 206 | then (roi >= nextOrderRoi) | |
207 | 207 | else false) | |
208 | 208 | then true | |
209 | 209 | else false | |
210 | 210 | let prevOrderRoi = getNumberByKey(getRoiByOrderIdKey(prevOrder)) | |
211 | 211 | let isPrevOrderError = if (if ((prevOrder != "")) | |
212 | 212 | then (prevOrderRoi > roi) | |
213 | 213 | else false) | |
214 | 214 | then true | |
215 | 215 | else false | |
216 | 216 | if (if (isNextOrderError) | |
217 | 217 | then true | |
218 | 218 | else isPrevOrderError) | |
219 | 219 | then throw(((("invalid order isPrevOrderError:" + toString(isPrevOrderError)) + " isNextOrderError:") + toString(isNextOrderError))) | |
220 | 220 | else if (if (isNewOrderAtFirstPosition) | |
221 | 221 | then (currentMaxRoi >= roi) | |
222 | 222 | else false) | |
223 | 223 | then internalSellBond(newOrderId, nextOrder, 0, roi, price, pmt.amount, inv.caller, true) | |
224 | 224 | else if (instantOrder) | |
225 | 225 | then throw("Instant order couldn't be added into waiting queue") | |
226 | 226 | else ([StringEntry(getPrevOrderKey(newOrderId), prevOrder), StringEntry(getNextOrderKey(newOrderId), nextOrder), StringEntry(getNextOrderKey(prevOrder), if ((prevOrder == "")) | |
227 | 227 | then "" | |
228 | 228 | else newOrderId), StringEntry(getPrevOrderKey(nextOrder), if ((nextOrder == "")) | |
229 | 229 | then "" | |
230 | 230 | else newOrderId), StringEntry(FirstOrderKey, if (if ((firstOrder == "")) | |
231 | 231 | then true | |
232 | 232 | else (firstOrder == nextOrder)) | |
233 | 233 | then newOrderId | |
234 | 234 | else firstOrder)] ++ orderData(newOrderId, pmt.amount, 0, owner, NEW, roi, price)) | |
235 | 235 | } | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func curveFunction (wRaw,uRaw,price,mRaw,sRaw,nRaw) = { | |
240 | 240 | let EXP = 271828100 | |
241 | 241 | let nsbtCurveParamA = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
242 | 242 | let wReservesInUsdn = convertWavesToNeutrino(wRaw, price) | |
243 | 243 | let brMult = fraction(wReservesInUsdn, MULT, uRaw) | |
244 | 244 | let powerMult = (nsbtCurveParamA * (brMult - (1 * MULT))) | |
245 | 245 | let expInPowerMult = pow(EXP, MULTSCALE, powerMult, MULTSCALE, MULTSCALE, DOWN) | |
246 | 246 | let lnRes1 = log(((mRaw - sRaw) - nRaw), PAULISCALE, EXP, MULTSCALE, MULTSCALE, DOWN) | |
247 | 247 | let lnRes0 = log((mRaw - sRaw), PAULISCALE, EXP, MULTSCALE, MULTSCALE, DOWN) | |
248 | 248 | let lnDiffMult = (lnRes0 - lnRes1) | |
249 | 249 | let lnDiffMultipliedMaxRaw = fraction(mRaw, lnDiffMult, MULT) | |
250 | 250 | let usdnPaymentRaw = fraction(expInPowerMult, lnDiffMultipliedMaxRaw, MULT) | |
251 | 251 | let wavesPayment = convertNeutrinoToWaves(usdnPaymentRaw, price) | |
252 | 252 | [wavesPayment, usdnPaymentRaw, wRaw, uRaw, mRaw, sRaw, nRaw, nsbtCurveParamA, wReservesInUsdn, brMult, powerMult, expInPowerMult, lnRes0, lnRes1, lnDiffMult, lnDiffMultipliedMaxRaw] | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func toStr (name,curveResult) = (((((((((((((((((((((((((((((((((name + "[wavesPayment=") + toString(curveResult[0])) + " usdnPayment=") + toString(curveResult[1])) + " wRaw=") + toString(curveResult[2])) + " uRaw=") + toString(curveResult[3])) + " mRaw=") + toString(curveResult[4])) + " sRaw=") + toString(curveResult[5])) + " nRaw=") + toString(curveResult[6])) + " nsbtCurveParamA=") + toString(curveResult[7])) + " wReservesInUsdn=") + toString(curveResult[8])) + " brMult=") + toString(curveResult[9])) + " powerMult=") + toString(curveResult[10])) + " expInPowerMult=") + toString(curveResult[11])) + " lnRes0=") + toString(curveResult[12])) + " lnRes1=") + toString(curveResult[13])) + " lnDiffMult=") + toString(curveResult[14])) + " maxXlndiff=") + toString(curveResult[15])) + "]") | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func bigComplexity (i) = 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 | 260 | then !(isDefined(transferTransactionById(fromBase58String("adLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
261 | 261 | else false) | |
262 | 262 | then !(isDefined(transferTransactionById(fromBase58String("sdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
263 | 263 | else false) | |
264 | 264 | then !(isDefined(transferTransactionById(fromBase58String("ddLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
265 | 265 | else false) | |
266 | 266 | then !(isDefined(transferTransactionById(fromBase58String("fdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
267 | 267 | else false) | |
268 | 268 | then !(isDefined(transferTransactionById(fromBase58String("gdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
269 | 269 | else false) | |
270 | 270 | then !(isDefined(transferTransactionById(fromBase58String("hdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
271 | 271 | else false) | |
272 | 272 | then !(isDefined(transferTransactionById(fromBase58String("jdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
273 | 273 | else false) | |
274 | 274 | then !(isDefined(transferTransactionById(fromBase58String("kdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
275 | 275 | else false) | |
276 | 276 | then !(isDefined(transferTransactionById(fromBase58String("rdLw5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
277 | 277 | else false) | |
278 | 278 | then !(isDefined(transferTransactionById(fromBase58String("tdLq5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
279 | 279 | else false) | |
280 | 280 | then !(isDefined(transferTransactionById(fromBase58String("tdLy5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
281 | 281 | else false) | |
282 | 282 | then !(isDefined(transferTransactionById(fromBase58String("tdLu5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
283 | 283 | else false) | |
284 | 284 | then !(isDefined(transferTransactionById(fromBase58String("tdLh5JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
285 | 285 | else false) | |
286 | 286 | then !(isDefined(transferTransactionById(fromBase58String("1dL4JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
287 | 287 | else false) | |
288 | 288 | then !(isDefined(transferTransactionById(fromBase58String("2dL25JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
289 | 289 | else false) | |
290 | 290 | then !(isDefined(transferTransactionById(fromBase58String("3dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
291 | 291 | else false) | |
292 | 292 | then !(isDefined(transferTransactionById(fromBase58String("4dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
293 | 293 | else false) | |
294 | 294 | then !(isDefined(transferTransactionById(fromBase58String("5dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
295 | 295 | else false) | |
296 | 296 | then !(isDefined(transferTransactionById(fromBase58String("6dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
297 | 297 | else false) | |
298 | 298 | then !(isDefined(transferTransactionById(fromBase58String("7dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
299 | 299 | else false) | |
300 | 300 | then !(isDefined(transferTransactionById(fromBase58String("8dL95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
301 | 301 | else false) | |
302 | 302 | then !(isDefined(transferTransactionById(fromBase58String("91L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
303 | 303 | else false) | |
304 | 304 | then !(isDefined(transferTransactionById(fromBase58String("92L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
305 | 305 | else false) | |
306 | 306 | then !(isDefined(transferTransactionById(fromBase58String("93L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
307 | 307 | else false) | |
308 | 308 | then !(isDefined(transferTransactionById(fromBase58String("94L95JKdpqfSEqvmFJvchejorAkzd4BrWLvoFwvMGu5k")))) | |
309 | 309 | else false | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | - | func buyNsbtInSurplus (nsbtAmount | |
313 | + | func buyNsbtInSurplus (nsbtAmount) = { | |
314 | 314 | let pmt = value(i.payments[0]) | |
315 | 315 | let pmtAmount = pmt.amount | |
316 | 316 | let ownerAddress = i.caller | |
317 | 317 | if (isBlocked) | |
318 | 318 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
319 | 319 | else if (isDefined(pmt.assetId)) | |
320 | 320 | then throw("can use waves only") | |
321 | 321 | else if (((10 * WAVELET) > pmtAmount)) | |
322 | 322 | then throw("min 10 waves expected") | |
323 | 323 | else { | |
324 | 324 | let issuedNsbt = valueOrElse(getInteger(this, "tmp_issuedNsbt"), 0) | |
325 | 325 | let nsbtMax = ((2500 * 1000) * PAULI) | |
326 | 326 | let nsbtCurrent = (((1500 * 1000) * PAULI) + issuedNsbt) | |
327 | 327 | let curveResult = curveFunction(reserve, neutrinoSupply, currentPrice, nsbtMax, nsbtCurrent, nsbtAmount) | |
328 | 328 | let requiredWaves = curveResult[0] | |
329 | 329 | if ((requiredWaves > pmtAmount)) | |
330 | 330 | then throw(((("Payment amount is less then required: pmtAmount=" + toString(pmtAmount)) + " requiredWaves=") + toString(requiredWaves))) | |
331 | - | else if ((0 > toleranceRaw)) | |
332 | - | then throw("Invalid tolerance param") | |
333 | - | else { | |
334 | - | let maxAllowedPayment = fraction(requiredWaves, (toleranceRaw + PAULI), PAULI) | |
335 | - | if ((requiredWaves > maxAllowedPayment)) | |
336 | - | then throw(((("Tolerance check failed: pmtAmount=" + toString(pmtAmount)) + " maxAllowedPayment=") + toString(maxAllowedPayment))) | |
337 | - | else { | |
338 | - | let nsbt2WavesPriceRaw = calcNsbt2WavesPriceRaw(requiredWaves, nsbtAmount) | |
339 | - | let roi = (fraction(getReversePrice(nsbt2WavesPriceRaw), 100, currentPrice) - 100) | |
340 | - | (orderData(toBase58String(i.transactionId), pmtAmount, pmtAmount, toString(ownerAddress), FILLED, roi, nsbt2WavesPriceRaw) ++ [ScriptTransfer(ownerAddress, nsbtAmount, bondAssetId), ScriptTransfer(ownerAddress, (pmtAmount - requiredWaves), unit), ScriptTransfer(neutrinoContract, requiredWaves, unit), StringEntry("debug_curveResult", toStr("curveResult", curveResult)), IntegerEntry("tmp_issuedNsbt", (issuedNsbt + nsbtAmount))]) | |
341 | - | } | |
342 | - | } | |
331 | + | else { | |
332 | + | let nsbt2WavesPriceRaw = calcNsbt2WavesPriceRaw(requiredWaves, nsbtAmount) | |
333 | + | let roi = (fraction(getReversePrice(nsbt2WavesPriceRaw), 100, currentPrice) - 100) | |
334 | + | (orderData(toBase58String(i.transactionId), pmtAmount, pmtAmount, toString(ownerAddress), FILLED, roi, nsbt2WavesPriceRaw) ++ [ScriptTransfer(ownerAddress, nsbtAmount, bondAssetId), ScriptTransfer(ownerAddress, (pmtAmount - requiredWaves), unit), ScriptTransfer(neutrinoContract, requiredWaves, unit), StringEntry("debug_curveResult", toStr("curveResult", curveResult)), IntegerEntry("tmp_issuedNsbt", (issuedNsbt + nsbtAmount))]) | |
335 | + | } | |
343 | 336 | } | |
344 | 337 | } | |
345 | 338 | ||
346 | 339 | ||
347 | 340 | ||
348 | 341 | @Callable(i) | |
349 | 342 | func instantBuyNsbtOrFail (noLessThenRoi) = { | |
350 | 343 | let pmt = value(i.payments[0]) | |
351 | 344 | let roi = currentMaxRoi | |
352 | 345 | if ((noLessThenRoi > roi)) | |
353 | 346 | then throw(((("Current maxRoi=" + toString(roi)) + " is less then passed parameter noLessThenRoi=") + toString(noLessThenRoi))) | |
354 | 347 | else { | |
355 | 348 | let priceWavesByBondCents = getPriceForRoi(roi) | |
356 | 349 | internalAddBuyBondOrder(roi, getReversePrice(priceWavesByBondCents), "", i, true) | |
357 | 350 | } | |
358 | 351 | } | |
359 | 352 | ||
360 | 353 | ||
361 | 354 | ||
362 | 355 | @Callable(i) | |
363 | 356 | func addBuyBondOrder (price,prevOrder) = { | |
364 | 357 | let pmt = value(i.payments[0]) | |
365 | 358 | let priceWavesByBondCents = getReversePrice(price) | |
366 | 359 | if ((0 >= price)) | |
367 | 360 | then throw("price less zero") | |
368 | 361 | else internalAddBuyBondOrder(fraction((priceWavesByBondCents - currentPrice), 100, currentPrice), price, prevOrder, i, false) | |
369 | 362 | } | |
370 | 363 | ||
371 | 364 | ||
372 | 365 | ||
373 | 366 | @Callable(i) | |
374 | 367 | func cancelOrder (orderId) = { | |
375 | 368 | let owner = getOrderOwner(orderId) | |
376 | 369 | let amount = (getOrderTotal(orderId) - getOrderFilledTotal(orderId)) | |
377 | 370 | let caller = toString(i.caller) | |
378 | 371 | let nextOrder = getNextOrder(orderId) | |
379 | 372 | let prevOrder = getPrevOrder(orderId) | |
380 | 373 | if (isBlocked) | |
381 | 374 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
382 | 375 | else if ((owner != caller)) | |
383 | 376 | then throw("permission denied") | |
384 | 377 | else if ((getOrderStatus(orderId) != NEW)) | |
385 | 378 | then throw("invalid order status") | |
386 | 379 | else [StringEntry(FirstOrderKey, if ((firstOrder == orderId)) | |
387 | 380 | then nextOrder | |
388 | 381 | else firstOrder), StringEntry(getNextOrderKey(prevOrder), nextOrder), StringEntry(getPrevOrderKey(nextOrder), prevOrder), StringEntry(getOrderStatusKey(orderId), CANCELED), ScriptTransfer(i.caller, amount, unit)] | |
389 | 382 | } | |
390 | 383 | ||
391 | 384 | ||
392 | 385 | ||
393 | 386 | @Callable(i) | |
394 | 387 | func sellBond () = if (isBlocked) | |
395 | 388 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
396 | 389 | else if ((firstOrder == "")) | |
397 | 390 | then throw("empty orderbook") | |
398 | 391 | else { | |
399 | 392 | let nextOrder = getNextOrder(firstOrder) | |
400 | 393 | let filledTotal = getOrderFilledTotal(firstOrder) | |
401 | 394 | let orderPrice = getOrderPrice(firstOrder) | |
402 | 395 | let roi = getNumberByKey(getRoiByOrderIdKey(firstOrder)) | |
403 | 396 | let paymentWavelets = getOrderTotal(firstOrder) | |
404 | 397 | let orderOwnerAddress = Address(fromBase58String(getOrderOwner(firstOrder))) | |
405 | 398 | internalSellBond(firstOrder, nextOrder, filledTotal, roi, orderPrice, paymentWavelets, orderOwnerAddress, false) | |
406 | 399 | } | |
407 | 400 | ||
408 | 401 | ||
409 | 402 | @Verifier(tx) | |
410 | 403 | func verify () = { | |
411 | 404 | let pubKeyAdminsList = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
412 | 405 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
413 | 406 | then 1 | |
414 | 407 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
415 | 408 | then 1 | |
416 | 409 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
417 | 410 | then 1 | |
418 | 411 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
419 | 412 | then 2 | |
420 | 413 | else 0)) | |
421 | 414 | (count >= 3) | |
422 | 415 | } | |
423 | 416 |
github/deemru/w8io/169f3d6 72.92 ms ◑