tx · CynvUJufzsSJRXGvws5crN7vnAWwSiiqXUpUBXjNUK6j 3N6BjePshL5deiUtAU9nXgEC2vGcK2anSsu: -0.01400000 Waves 2021.04.09 12:03 [1474710] smart account 3N6BjePshL5deiUtAU9nXgEC2vGcK2anSsu > SELF 0.00000000 Waves
{ "type": 13, "id": "CynvUJufzsSJRXGvws5crN7vnAWwSiiqXUpUBXjNUK6j", "fee": 1400000, "feeAssetId": null, "timestamp": 1617959053577, "version": 1, "sender": "3N6BjePshL5deiUtAU9nXgEC2vGcK2anSsu", "senderPublicKey": "FBUTJS3qNBzn5vEveZKU8RYGzQXuXJ7HeRuXJQdkaE8f", "proofs": [ "5HCBK3vWVfrLDiZKknD7QQKKqxWiz4vAjUCi7x7b6HwYx6bNA5gUH2Y6VKWm9ojDnU1xb1nAwUMJCw62qqiLQBKY" ], "script": "base64:AAIEAAAAAAAAABMIAhIAEgASBAoCCAgSABIDCgEIAAAAbgEAAAARa2V5QWNjdW11bGF0ZWRGZWUAAAAAAgAAABIlc19fYWNjdW11bGF0ZWRGZWUBAAAADmtleVVjb2xsYXRlcmFsAAAAAAIAAAAPJXNfX3Vjb2xsYXRlcmFsAQAAABlrZXlUb3RhbExlbmRlZEF0T3RoZXJBY2NzAAAAAAIAAAAaJXNfX3RvdGFsTGVuZGVkQXRPdGhlckFjY3MBAAAAE2tleUFzc2V0TG9ja2VkVG90YWwAAAABAAAAB2Fzc2V0SWQJAAEsAAAAAgIAAAAYJXMlc19fYXNzZXRMb2NrZWRUb3RhbF9fBQAAAAdhc3NldElkAQAAABNrZXlBY2NvdW50T3BlcmF0aW9uAAAAAwAAAAx1bmxvY2tIZWlnaHQAAAAHYWRkcmVzcwAAAAZzdGF0dXMJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAB4lcyVzJWQlc19fZGVmb0Fzc2V0T3BlcmF0aW9uX18FAAAAB2FkZHJlc3MCAAAAAl9fCQABpAAAAAEFAAAADHVubG9ja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AAAnR4AAAABnByb29mcwAAAAAAAAAAAAkBAAAAImZhY3RvcnlSZWFkRGVmb1N0YWtpbmdQYWNlbWFrZXJQdWIAAAAACQAAAgAAAAECAAAAI05vdCBhbGxvd2VkIGludm9jYXRpb24gbWV0aG9kIGNhbGxzCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeH5rmM=", "chainId": 84, "height": 1474710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BHie8N5AfNPCmTNuZ9zB8yujpz2Eqh4DUL2c715TVgEH Next: tSTyjU4pJ4dzrqxjbKe1H1LSYhbrwYdobvhfkZfbdmh Diff:
Old | New | Differences | |
---|---|---|---|
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | - | func ae (Q) = | |
98 | + | func ae (Q) = addressFromStringValue("3MsbFMstwm3FHPJXmMfTgyaw7zQrpZfkwnx") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func af () = fromBase58String(valueOrErrorMessage(getString(M, W()), ((("No config at factory=" + toString(M)) + " for key=") + W()))) | |
133 | 133 | ||
134 | 134 | let av = 16 | |
135 | 135 | ||
136 | - | let aw = | |
136 | + | let aw = 17 | |
137 | 137 | ||
138 | - | let ax = | |
138 | + | let ax = 18 | |
139 | 139 | ||
140 | - | let ay = | |
140 | + | let ay = 19 | |
141 | 141 | ||
142 | - | let az = | |
142 | + | let az = 20 | |
143 | 143 | ||
144 | - | let aA = | |
144 | + | let aA = 21 | |
145 | 145 | ||
146 | - | let aB = | |
146 | + | let aB = ac(toString(this)) | |
147 | 147 | ||
148 | - | let aC = | |
148 | + | let aC = aB[ag] | |
149 | 149 | ||
150 | - | let aD = | |
150 | + | let aD = aB[ah] | |
151 | 151 | ||
152 | - | let aE = | |
152 | + | let aE = fromBase58String(aD) | |
153 | 153 | ||
154 | - | let aF = | |
154 | + | let aF = addressFromStringValue(aB[an]) | |
155 | 155 | ||
156 | - | let aG = parseIntValue( | |
156 | + | let aG = parseIntValue(aB[al]) | |
157 | 157 | ||
158 | - | let aH = | |
158 | + | let aH = aB[ak] | |
159 | 159 | ||
160 | - | let aI = | |
160 | + | let aI = fromBase58String(aH) | |
161 | 161 | ||
162 | - | let aJ = parseIntValue( | |
162 | + | let aJ = parseIntValue(aB[aj]) | |
163 | 163 | ||
164 | - | let aK = parseIntValue( | |
164 | + | let aK = parseIntValue(aB[ao]) | |
165 | 165 | ||
166 | - | let aL = parseIntValue( | |
166 | + | let aL = parseIntValue(aB[ap]) | |
167 | 167 | ||
168 | - | func aM () = "%s__isBlocked" | |
168 | + | let aM = parseIntValue(aB[aq]) | |
169 | + | ||
170 | + | let aN = parseIntValue(aB[ar]) | |
171 | + | ||
172 | + | let aO = parseIntValue(aB[as]) | |
173 | + | ||
174 | + | let aP = parseIntValue(aB[at]) | |
175 | + | ||
176 | + | let aQ = parseIntValue(aB[av]) | |
177 | + | ||
178 | + | let aR = aB[aw] | |
179 | + | ||
180 | + | let aS = aB[ax] | |
181 | + | ||
182 | + | let aT = parseIntValue(aB[ay]) | |
183 | + | ||
184 | + | let aU = parseIntValue(aB[az]) | |
185 | + | ||
186 | + | let aV = parseIntValue(aB[aA]) | |
187 | + | ||
188 | + | func aW () = "%s__isBlocked" | |
169 | 189 | ||
170 | 190 | ||
171 | - | func | |
191 | + | func aX (l) = ("%s%s__isMarketOpened__" + l) | |
172 | 192 | ||
173 | 193 | ||
174 | - | let | |
194 | + | let aY = valueOrElse(getBoolean(aF, aW()), false) | |
175 | 195 | ||
176 | - | let | |
196 | + | let aZ = valueOrElse(getBoolean(aF, aX(aC)), false) | |
177 | 197 | ||
178 | - | func | |
198 | + | func ba (l) = valueOrErrorMessage(getInteger(aF, m(l)), ((("No price at priceOracle=" + toString(aF)) + " for key=") + m(l))) | |
179 | 199 | ||
180 | 200 | ||
181 | - | func | |
201 | + | func bb (l) = valueOrErrorMessage(getInteger(aF, n(l)), ((("No lastHeight at priceOracle=" + toString(aF)) + " for key=") + n(l))) | |
182 | 202 | ||
183 | 203 | ||
184 | - | func | |
204 | + | func bc () = valueOrErrorMessage(getInteger(aF, "currIdx"), ("No currIdx at controlAcc=" + toString(aF))) | |
185 | 205 | ||
186 | 206 | ||
187 | - | func | |
188 | - | let | |
189 | - | valueOrElse(getInteger( | |
207 | + | func bd (be) = { | |
208 | + | let bf = ("idxHeight_" + toString(be)) | |
209 | + | valueOrElse(getInteger(aF, bf), 0) | |
190 | 210 | } | |
191 | 211 | ||
192 | 212 | ||
193 | - | func | |
194 | - | let | |
195 | - | valueOrErrorMessage(getInteger( | |
213 | + | func bg (bh) = { | |
214 | + | let bi = ("price_" + toString(bh)) | |
215 | + | valueOrErrorMessage(getInteger(aF, bi), ((("No " + bi) + " at controlAcc=") + toString(aF))) | |
196 | 216 | } | |
197 | 217 | ||
198 | 218 | ||
199 | - | let | |
219 | + | let bj = bb(aC) | |
200 | 220 | ||
201 | - | let | |
221 | + | let bk = ((bj - bj) > 5) | |
202 | 222 | ||
203 | - | let | |
223 | + | let bl = "%s%s__commonConfig__defoStakingAddress" | |
204 | 224 | ||
205 | - | let | |
225 | + | let bm = "%s%s__commonConfig__neutrinoStakingAddress" | |
206 | 226 | ||
207 | - | func | |
227 | + | func bn (e) = ("%s%s__stakingBalance__" + e) | |
208 | 228 | ||
209 | 229 | ||
210 | - | func | |
230 | + | func bo () = ((("rpd_balance_" + aH) + "_") + toString(this)) | |
211 | 231 | ||
212 | 232 | ||
213 | - | let | |
233 | + | let bp = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bl), ((("No config at factoryAcc" + toString(M)) + " for key=") + bl))), ("address extraction error for key=" + bl)) | |
214 | 234 | ||
215 | - | let | |
235 | + | let bq = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bm), ((("No config at factoryAcc" + toString(M)) + " for key=") + bm))), ("address extraction error for key=" + bm)) | |
216 | 236 | ||
217 | - | func | |
237 | + | func br () = valueOrElse(getInteger(bp, bn(aD)), 0) | |
218 | 238 | ||
219 | 239 | ||
220 | - | func | |
240 | + | func bs () = valueOrElse(getInteger(bq, bo()), 0) | |
221 | 241 | ||
222 | 242 | ||
223 | - | let | |
243 | + | let bt = valueOrElse(getInteger(this, b()), 0) | |
224 | 244 | ||
225 | - | let | |
245 | + | let bu = valueOrElse(getInteger(this, a()), 0) | |
226 | 246 | ||
227 | - | let | |
247 | + | let bv = getIntegerValue(M, R(this)) | |
228 | 248 | ||
229 | - | let | |
249 | + | let bw = fromBase58String(ab()) | |
230 | 250 | ||
231 | - | let | |
251 | + | let bx = getIntegerValue(M, O()) | |
232 | 252 | ||
233 | - | let | |
253 | + | let by = (bx - assetBalance(this, bw)) | |
234 | 254 | ||
235 | - | let | |
255 | + | let bz = ((assetBalance(this, aI) + bs()) + by) | |
236 | 256 | ||
237 | - | let | |
257 | + | let bA = ba(aB[ag]) | |
238 | 258 | ||
239 | - | let | |
259 | + | let bB = (value(assetInfo(aE)).quantity - assetBalance(this, aE)) | |
240 | 260 | ||
241 | - | func | |
242 | - | then | |
243 | - | else fraction(( | |
261 | + | func bC (bD) = if (aZ) | |
262 | + | then bA | |
263 | + | else fraction((aJ - bD), bA, aJ) | |
244 | 264 | ||
245 | 265 | ||
246 | - | func | |
247 | - | then | |
248 | - | else | |
266 | + | func bE (bF) = if ((aS == bF)) | |
267 | + | then 0 | |
268 | + | else aO | |
249 | 269 | ||
250 | 270 | ||
251 | - | func | |
252 | - | then | |
253 | - | else | |
271 | + | func bG (bD,bF) = if ((aS == bF)) | |
272 | + | then bA | |
273 | + | else bC(bD) | |
254 | 274 | ||
255 | 275 | ||
256 | - | func bx (by,bz,bA,bB,bC,bD) = { | |
257 | - | let bE = fraction(bz, bC, aE) | |
258 | - | let bF = fraction((aE - bD), bE, aE) | |
259 | - | let A = (bE - bF) | |
260 | - | let bG = fraction(bE, aE, bC) | |
261 | - | let bH = (bz - bG) | |
262 | - | if (if ((bB > bz)) | |
263 | - | then (toString(by) != toString(bf)) | |
276 | + | func bH (bD) = if (aZ) | |
277 | + | then bA | |
278 | + | else fraction((aJ + bD), bA, aJ) | |
279 | + | ||
280 | + | ||
281 | + | func bI (bJ,bD) = if (aZ) | |
282 | + | then bJ | |
283 | + | else fraction((aJ + bD), bJ, aJ) | |
284 | + | ||
285 | + | ||
286 | + | func bK (bL,bM,bN,bO,bP,bQ) = { | |
287 | + | let bR = fraction(bM, bP, aJ) | |
288 | + | let bS = fraction(aV, bR, aJ) | |
289 | + | let bT = fraction(bQ, bR, aJ) | |
290 | + | let bU = ((bR - bS) - bT) | |
291 | + | let bV = fraction(bR, aJ, bP) | |
292 | + | let bW = (bM - bV) | |
293 | + | if (if ((bO > bM)) | |
294 | + | then (toString(bL) != toString(bp)) | |
264 | 295 | else false) | |
265 | - | then throw(((((("impossible to issue new " + | |
266 | - | else $Tuple2([IntegerEntry(b(), ( | |
296 | + | then throw(((((("impossible to issue new " + aC) + ": payment=") + toString(bM)) + "is less then min amount=") + toString(bO))) | |
297 | + | else $Tuple2([IntegerEntry(b(), (bt + bV)), StringEntry(f(height, toString(bL), "FINISHED"), t(bM, toBase58String(bN), bA, bU, toBase58String(aE), bR, bT)), Reissue(aE, (bU + bT), true), ScriptTransfer(bL, bU, aE), ScriptTransfer(bL, bW, bN), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))], bW) | |
267 | 298 | } | |
268 | 299 | ||
269 | 300 | ||
270 | - | @Callable( | |
301 | + | @Callable(bX) | |
271 | 302 | func buyAsset () = { | |
272 | - | let bJ = value(bI.payments[0]) | |
273 | - | let bK = value(bJ.assetId) | |
274 | - | if (aO) | |
303 | + | let bY = value(bX.payments[0]) | |
304 | + | let bZ = value(bY.assetId) | |
305 | + | let bF = toBase58String(bX.callerPublicKey) | |
306 | + | if (aY) | |
275 | 307 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
276 | - | else if ( | |
277 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
278 | - | else if (( | |
279 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
280 | - | else | |
308 | + | else if (bk) | |
309 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height))) | |
310 | + | else if ((bZ != aI)) | |
311 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aI)) + " actual=") + toBase58String(bZ))) | |
312 | + | else bK(bX.caller, bY.amount, bZ, aK, bG(aQ, bF), bE(bF))._1 | |
281 | 313 | } | |
282 | 314 | ||
283 | 315 | ||
284 | 316 | ||
285 | - | @Callable( | |
317 | + | @Callable(bX) | |
286 | 318 | func sellAsset () = { | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | if ( | |
319 | + | let bY = value(bX.payments[0]) | |
320 | + | let ca = value(bY.assetId) | |
321 | + | let cb = toString(bX.caller) | |
322 | + | let cc = bH(aQ) | |
323 | + | if (aY) | |
292 | 324 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
293 | - | else if ( | |
294 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
295 | - | else if (( | |
296 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
297 | - | else if (( | |
298 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
325 | + | else if (bk) | |
326 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height))) | |
327 | + | else if ((ca != aE)) | |
328 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(aE)) + " actual=") + toBase58String(ca))) | |
329 | + | else if ((aL > bY.amount)) | |
330 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bY.amount)) + " minAmount=") + toString(aL))) | |
299 | 331 | else { | |
300 | - | let bO = fraction(bJ.amount, aE, bN) | |
301 | - | let bP = if ((bO > bp)) | |
302 | - | then bp | |
303 | - | else bO | |
304 | - | let bQ = fraction(bP, bN, aE) | |
305 | - | let bH = (bJ.amount - bQ) | |
306 | - | let bR = fraction(aK, bQ, aE) | |
307 | - | let bS = (bQ - bR) | |
308 | - | let bT = fraction(bS, aE, bN) | |
309 | - | [IntegerEntry(b(), (bj - bT)), StringEntry(f(height, bM, "FINISHED"), t(bJ.amount, toBase58String(bL), bN, bT, aC, bQ, bR)), Burn(az, bS), ScriptTransfer(bI.caller, bT, aD), ScriptTransfer(bI.caller, bH, az), ScriptTransfer(ae(toString(this)), bR, az), IntegerEntry(a(), (bk + bR))] | |
332 | + | let cd = fraction(bY.amount, aJ, cc) | |
333 | + | let ce = if ((cd > bz)) | |
334 | + | then bz | |
335 | + | else cd | |
336 | + | let cf = fraction(ce, cc, aJ) | |
337 | + | let bW = (bY.amount - cf) | |
338 | + | let bS = fraction(aV, cf, aJ) | |
339 | + | let bT = fraction(aP, cf, aJ) | |
340 | + | let cg = ((cf - bS) - bT) | |
341 | + | let ch = fraction(cg, aJ, cc) | |
342 | + | [IntegerEntry(b(), (bt - ch)), StringEntry(f(height, cb, "FINISHED"), t(bY.amount, toBase58String(ca), cc, ch, aH, cf, bT)), Burn(aE, (cg + bS)), ScriptTransfer(bX.caller, ch, aI), ScriptTransfer(bX.caller, bW, aE), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))] | |
310 | 343 | } | |
311 | 344 | } | |
312 | 345 | ||
313 | 346 | ||
314 | 347 | ||
315 | - | @Callable( | |
316 | - | func crossExchange ( | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if ( | |
348 | + | @Callable(bX) | |
349 | + | func crossExchange (ci,cj) = { | |
350 | + | let bY = value(bX.payments[0]) | |
351 | + | let ca = value(bY.assetId) | |
352 | + | let ck = toBase58String(ca) | |
353 | + | let cl = bY.amount | |
354 | + | let cb = toString(bX.caller) | |
355 | + | let cm = aB | |
356 | + | let cn = ad(cj) | |
357 | + | let co = cn._2 | |
358 | + | let cp = valueOrErrorMessage(addressFromString(cn._1), ("couldn't parse address from string for assetCode=" + cj)) | |
359 | + | let cq = valueOrErrorMessage(parseInt(co[ap]), ("minSellPmt parsing error: rawVal=" + co[ap])) | |
360 | + | let cr = bb(cj) | |
361 | + | let cs = ((cr - cr) > 5) | |
362 | + | if (aY) | |
330 | 363 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
331 | - | else if (( | |
332 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
333 | - | else if (( | |
334 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
335 | - | else if (( | |
336 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
337 | - | else if (( | |
338 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
339 | - | else if ( | |
340 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
341 | - | else if ( | |
342 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
364 | + | else if ((aB[ag] != ci)) | |
365 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aB[ag]) + " BUT buyAssetId=") + ci)) | |
366 | + | else if ((co[ah] != ck)) | |
367 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + co[ah]) + "BUT pmtAsset=") + ck)) | |
368 | + | else if ((aB[ai] != "ISSUED")) | |
369 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + ci) + " BUT status=") + aB[ai])) | |
370 | + | else if ((co[ai] != "ISSUED")) | |
371 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + ck) + " BUT status=") + co[ai])) | |
372 | + | else if (bk) | |
373 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height)) + " buyCode=") + ci)) | |
374 | + | else if (cs) | |
375 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height)) + " sellCode=") + cj)) | |
343 | 376 | else { | |
344 | - | let cf = bs((aL / 2)) | |
345 | - | let cg = bv(aQ(bV), (aL / 2)) | |
346 | - | let bC = fraction(cf, aE, cg) | |
347 | - | let ch = fraction(bX, aE, cg) | |
348 | - | let ci = valueOrElse(getInteger(this, c()), 0) | |
349 | - | let cj = k(bV) | |
350 | - | let ck = valueOrElse(getInteger(this, cj), 0) | |
351 | - | let cl = parseIntValue(ca[at]) | |
352 | - | let cm = bx(bI.caller, bX, bL, cc, bC, fraction((aJ + cl), 50, 100)) | |
353 | - | ((((cm._1 :+ ScriptTransfer(cb, ch, bm)) :+ ScriptTransfer(cb, (bX - cm._2), bL)) :+ IntegerEntry(cj, (ck + ch))) :+ IntegerEntry(c(), (ci + ch))) | |
377 | + | let ct = bC((aQ / 2)) | |
378 | + | let cu = bI(ba(cj), (aQ / 2)) | |
379 | + | let bP = fraction(ct, aJ, cu) | |
380 | + | let cv = fraction(cl, aJ, cu) | |
381 | + | let cw = valueOrElse(getInteger(this, c()), 0) | |
382 | + | let cx = k(cj) | |
383 | + | let cy = valueOrElse(getInteger(this, cx), 0) | |
384 | + | let cz = parseIntValue(co[at]) | |
385 | + | let cA = fraction((aO + cz), aT, aJ) | |
386 | + | let cB = bK(bX.caller, cl, ca, cq, bP, cA) | |
387 | + | ((((cB._1 :+ ScriptTransfer(cp, cv, bw)) :+ ScriptTransfer(cp, (cl - cB._2), ca)) :+ IntegerEntry(cx, (cy + cv))) :+ IntegerEntry(c(), (cw + cv))) | |
354 | 388 | } | |
355 | 389 | } | |
356 | 390 | ||
357 | 391 | ||
358 | 392 | ||
359 | - | @Callable( | |
393 | + | @Callable(bX) | |
360 | 394 | func rebalanceDebts () = { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let C = | |
368 | - | let | |
369 | - | let | |
370 | - | if ( | |
395 | + | let cC = value(bX.payments[0]) | |
396 | + | let cD = value(cC.assetId) | |
397 | + | let cE = value(bX.payments[1]) | |
398 | + | let cF = value(cE.assetId) | |
399 | + | let cG = toString(bX.caller) | |
400 | + | let cH = ac(cG) | |
401 | + | let C = cH[ag] | |
402 | + | let cx = k(C) | |
403 | + | let cI = valueOrErrorMessage(getInteger(this, cx), ("No debts for " + C)) | |
404 | + | if (aY) | |
371 | 405 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
372 | - | else if (( | |
373 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
374 | - | else if (( | |
375 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
376 | - | else if (( | |
406 | + | else if ((bw != cD)) | |
407 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bw)) + " actual=") + toBase58String(cD))) | |
408 | + | else if ((aI != cF)) | |
409 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aI)) + " actual=") + toBase58String(cF))) | |
410 | + | else if ((cC.amount != cE.amount)) | |
377 | 411 | then throw("first payment amount doesn't match to the second payment amount") | |
378 | - | else if ((0 >= | |
379 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
380 | - | else if ((( | |
381 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
382 | - | else if (( | |
383 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
412 | + | else if ((0 >= cI)) | |
413 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cI))) | |
414 | + | else if (((1 * aJ) >= cC.amount)) | |
415 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cC.amount))) | |
416 | + | else if ((cC.amount > cI)) | |
417 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cC.amount)) + " lendedAmt=") + toString(cI))) | |
384 | 418 | else { | |
385 | - | let | |
386 | - | let G = ( | |
387 | - | [IntegerEntry( | |
419 | + | let cw = valueOrElse(getInteger(this, c()), 0) | |
420 | + | let G = (cI - cC.amount) | |
421 | + | [IntegerEntry(cx, G), IntegerEntry(c(), (cw - cC.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bX.transactionId)), B(C, cC, cE, cI, G))] | |
388 | 422 | } | |
389 | 423 | } | |
390 | 424 | ||
391 | 425 | ||
392 | 426 | ||
393 | - | @Callable( | |
427 | + | @Callable(bX) | |
394 | 428 | func fulfillRedeemRequest (Y) = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if ((0 >= | |
429 | + | let cJ = toString(this) | |
430 | + | let cK = aa(cJ, Y) | |
431 | + | let cL = valueOrElse(getInteger(M, cK), 0) | |
432 | + | if ((0 >= cL)) | |
399 | 433 | then throw("All liquidity request fulfilled") | |
400 | 434 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | if (isDefined(getInteger(this, | |
435 | + | let cM = X(cJ, Y, cL) | |
436 | + | let cN = valueOrErrorMessage(getInteger(M, cM), "Empty poolMakerLiquidityRequestKey at factory acc") | |
437 | + | if (isDefined(getInteger(this, cM))) | |
404 | 438 | then throw("Liquidity request has been already fulfilled") | |
405 | - | else [IntegerEntry( | |
439 | + | else [IntegerEntry(cM, cN), ScriptTransfer(M, cN, aI)] | |
406 | 440 | } | |
407 | 441 | } | |
408 | 442 | ||
409 | 443 | ||
410 | - | @Verifier( | |
411 | - | func | |
412 | - | let | |
413 | - | if ($isInstanceOf( | |
444 | + | @Verifier(cO) | |
445 | + | func cP () = { | |
446 | + | let cQ = cO | |
447 | + | if ($isInstanceOf(cQ, "InvokeScriptTransaction")) | |
414 | 448 | then { | |
415 | - | let | |
416 | - | if (( | |
417 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
418 | - | else if (isDefined( | |
449 | + | let cR = cQ | |
450 | + | if ((cR.fee > (900 * 1000))) | |
451 | + | then throw(("fee amount is greater than max allowed: " + toString(cR.fee))) | |
452 | + | else if (isDefined(cR.feeAssetId)) | |
419 | 453 | then throw("only Waves is allowed as feeAssetId") | |
420 | - | else if (( | |
454 | + | else if ((cR.function == "rebalanceDebts")) | |
421 | 455 | then { | |
422 | - | let | |
423 | - | if ((ac( | |
456 | + | let cS = toString(addressFromRecipient(cR.dApp)) | |
457 | + | if ((ac(cS)[ai] != "ISSUED")) | |
424 | 458 | then throw("only defo dapp is allowed") | |
425 | - | else if (( | |
459 | + | else if ((cS == toString(this))) | |
426 | 460 | then throw("impossible to call self rebealnceDebt") | |
427 | 461 | else true | |
428 | 462 | } | |
429 | - | else if (if (if (( | |
463 | + | else if (if (if ((cR.function == "lockNeutrino")) | |
430 | 464 | then true | |
431 | - | else ( | |
465 | + | else (cR.function == "lockNeutrinoSP")) | |
432 | 466 | then true | |
433 | - | else ( | |
434 | - | then if ((toString( | |
467 | + | else (cR.function == "unlockNeutrino")) | |
468 | + | then if ((toString(bq) != toString(addressFromRecipient(cR.dApp)))) | |
435 | 469 | then throw("invalid neutrino staking dapp address") | |
436 | - | else sigVerify( | |
470 | + | else sigVerify(cO.bodyBytes, cO.proofs[0], af()) | |
437 | 471 | else throw("Not allowed invocation method calls") | |
438 | 472 | } | |
439 | - | else sigVerify( | |
473 | + | else sigVerify(cO.bodyBytes, cO.proofs[0], cO.senderPublicKey) | |
440 | 474 | } | |
441 | 475 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func b () = "%s__ucollateral" | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func c () = "%s__totalLendedAtOtherAccs" | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func d (e) = ("%s%s__assetLockedTotal__" + e) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func f (g,h,i) = ((((("%s%s%d%s__defoAssetOperation__" + h) + "__") + toString(g)) + "__") + i) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func j () = "%s__factory" | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func k (l) = ("%s%s__lendedBaseAssetAmount__" + l) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func m (l) = ("%s%s__price__" + l) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func n (l) = ("%s%s__lastHeight__" + l) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let o = 1 | |
32 | 32 | ||
33 | 33 | let p = 2 | |
34 | 34 | ||
35 | 35 | let q = 3 | |
36 | 36 | ||
37 | 37 | let r = 4 | |
38 | 38 | ||
39 | 39 | let s = 5 | |
40 | 40 | ||
41 | 41 | func t (u,v,w,x,y,z,A) = makeString(["%d%s%d%s%d%d%d", toString(u), v, toString(x), y, toString(w), toString(z), toString(A)], "__") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func B (C,D,E,F,G) = makeString(["%s%s%d%s%d%d%d", C, toBase58String(value(D.assetId)), toString(D.amount), toBase58String(value(E.assetId)), toString(E.amount), toString(F), toString(G)], "__") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func H (I) = { | |
48 | 48 | let J = valueOrErrorMessage(getString(this, I), ("There is no request for passed arguments: " + I)) | |
49 | 49 | split(J, "__") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let K = -1 | |
54 | 54 | ||
55 | 55 | let L = "NULL" | |
56 | 56 | ||
57 | 57 | let M = addressFromStringValue(valueOrErrorMessage(getString(this, j()), ((("No config at this=" + toString(this)) + " for key=") + j()))) | |
58 | 58 | ||
59 | 59 | func N () = "%s%s__commonConfig__debtAssetId" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func O () = "%s%s__commonConfig__debtAssetEtalonBalance" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func P (Q) = (("%s%s%s__defoAsset__" + Q) + "__config") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func R (S) = (("%s%s%s__defoAsset__" + toString(S)) + "__currentPool") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func T (l) = (("%s%s%s__defoAsset__" + l) + "__addressByAssetCode") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func U (V) = (("%s%s%s__defoAsset__" + V) + "__poolMakers") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func W () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func X (V,Y,Z) = makeString(["%s%s%s%d%s__pool", V, Y, toString(Z), "liquidityRequest"], "__") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func aa (V,Y) = makeString(["%s%s%s%s__pool", V, Y, "unlockHeight"], "__") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func ab () = valueOrErrorMessage(getString(M, N()), ((("No config at factory=" + toString(M)) + " for key=") + N())) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func ac (Q) = split(valueOrErrorMessage(getString(M, P(Q)), ((("No config at factory=" + toString(M)) + " for key=") + P(Q))), "__") | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func ad (l) = { | |
93 | 93 | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
94 | 94 | $Tuple2(Q, ac(Q)) | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | - | func ae (Q) = | |
98 | + | func ae (Q) = addressFromStringValue("3MsbFMstwm3FHPJXmMfTgyaw7zQrpZfkwnx") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func af () = fromBase58String(valueOrErrorMessage(getString(M, W()), ((("No config at factory=" + toString(M)) + " for key=") + W()))) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | let ag = 1 | |
105 | 105 | ||
106 | 106 | let ah = 2 | |
107 | 107 | ||
108 | 108 | let ai = 3 | |
109 | 109 | ||
110 | 110 | let aj = 4 | |
111 | 111 | ||
112 | 112 | let ak = 5 | |
113 | 113 | ||
114 | 114 | let al = 6 | |
115 | 115 | ||
116 | 116 | let am = 7 | |
117 | 117 | ||
118 | 118 | let an = 8 | |
119 | 119 | ||
120 | 120 | let ao = 9 | |
121 | 121 | ||
122 | 122 | let ap = 10 | |
123 | 123 | ||
124 | 124 | let aq = 11 | |
125 | 125 | ||
126 | 126 | let ar = 12 | |
127 | 127 | ||
128 | 128 | let as = 13 | |
129 | 129 | ||
130 | 130 | let at = 14 | |
131 | 131 | ||
132 | 132 | let au = 15 | |
133 | 133 | ||
134 | 134 | let av = 16 | |
135 | 135 | ||
136 | - | let aw = | |
136 | + | let aw = 17 | |
137 | 137 | ||
138 | - | let ax = | |
138 | + | let ax = 18 | |
139 | 139 | ||
140 | - | let ay = | |
140 | + | let ay = 19 | |
141 | 141 | ||
142 | - | let az = | |
142 | + | let az = 20 | |
143 | 143 | ||
144 | - | let aA = | |
144 | + | let aA = 21 | |
145 | 145 | ||
146 | - | let aB = | |
146 | + | let aB = ac(toString(this)) | |
147 | 147 | ||
148 | - | let aC = | |
148 | + | let aC = aB[ag] | |
149 | 149 | ||
150 | - | let aD = | |
150 | + | let aD = aB[ah] | |
151 | 151 | ||
152 | - | let aE = | |
152 | + | let aE = fromBase58String(aD) | |
153 | 153 | ||
154 | - | let aF = | |
154 | + | let aF = addressFromStringValue(aB[an]) | |
155 | 155 | ||
156 | - | let aG = parseIntValue( | |
156 | + | let aG = parseIntValue(aB[al]) | |
157 | 157 | ||
158 | - | let aH = | |
158 | + | let aH = aB[ak] | |
159 | 159 | ||
160 | - | let aI = | |
160 | + | let aI = fromBase58String(aH) | |
161 | 161 | ||
162 | - | let aJ = parseIntValue( | |
162 | + | let aJ = parseIntValue(aB[aj]) | |
163 | 163 | ||
164 | - | let aK = parseIntValue( | |
164 | + | let aK = parseIntValue(aB[ao]) | |
165 | 165 | ||
166 | - | let aL = parseIntValue( | |
166 | + | let aL = parseIntValue(aB[ap]) | |
167 | 167 | ||
168 | - | func aM () = "%s__isBlocked" | |
168 | + | let aM = parseIntValue(aB[aq]) | |
169 | + | ||
170 | + | let aN = parseIntValue(aB[ar]) | |
171 | + | ||
172 | + | let aO = parseIntValue(aB[as]) | |
173 | + | ||
174 | + | let aP = parseIntValue(aB[at]) | |
175 | + | ||
176 | + | let aQ = parseIntValue(aB[av]) | |
177 | + | ||
178 | + | let aR = aB[aw] | |
179 | + | ||
180 | + | let aS = aB[ax] | |
181 | + | ||
182 | + | let aT = parseIntValue(aB[ay]) | |
183 | + | ||
184 | + | let aU = parseIntValue(aB[az]) | |
185 | + | ||
186 | + | let aV = parseIntValue(aB[aA]) | |
187 | + | ||
188 | + | func aW () = "%s__isBlocked" | |
169 | 189 | ||
170 | 190 | ||
171 | - | func | |
191 | + | func aX (l) = ("%s%s__isMarketOpened__" + l) | |
172 | 192 | ||
173 | 193 | ||
174 | - | let | |
194 | + | let aY = valueOrElse(getBoolean(aF, aW()), false) | |
175 | 195 | ||
176 | - | let | |
196 | + | let aZ = valueOrElse(getBoolean(aF, aX(aC)), false) | |
177 | 197 | ||
178 | - | func | |
198 | + | func ba (l) = valueOrErrorMessage(getInteger(aF, m(l)), ((("No price at priceOracle=" + toString(aF)) + " for key=") + m(l))) | |
179 | 199 | ||
180 | 200 | ||
181 | - | func | |
201 | + | func bb (l) = valueOrErrorMessage(getInteger(aF, n(l)), ((("No lastHeight at priceOracle=" + toString(aF)) + " for key=") + n(l))) | |
182 | 202 | ||
183 | 203 | ||
184 | - | func | |
204 | + | func bc () = valueOrErrorMessage(getInteger(aF, "currIdx"), ("No currIdx at controlAcc=" + toString(aF))) | |
185 | 205 | ||
186 | 206 | ||
187 | - | func | |
188 | - | let | |
189 | - | valueOrElse(getInteger( | |
207 | + | func bd (be) = { | |
208 | + | let bf = ("idxHeight_" + toString(be)) | |
209 | + | valueOrElse(getInteger(aF, bf), 0) | |
190 | 210 | } | |
191 | 211 | ||
192 | 212 | ||
193 | - | func | |
194 | - | let | |
195 | - | valueOrErrorMessage(getInteger( | |
213 | + | func bg (bh) = { | |
214 | + | let bi = ("price_" + toString(bh)) | |
215 | + | valueOrErrorMessage(getInteger(aF, bi), ((("No " + bi) + " at controlAcc=") + toString(aF))) | |
196 | 216 | } | |
197 | 217 | ||
198 | 218 | ||
199 | - | let | |
219 | + | let bj = bb(aC) | |
200 | 220 | ||
201 | - | let | |
221 | + | let bk = ((bj - bj) > 5) | |
202 | 222 | ||
203 | - | let | |
223 | + | let bl = "%s%s__commonConfig__defoStakingAddress" | |
204 | 224 | ||
205 | - | let | |
225 | + | let bm = "%s%s__commonConfig__neutrinoStakingAddress" | |
206 | 226 | ||
207 | - | func | |
227 | + | func bn (e) = ("%s%s__stakingBalance__" + e) | |
208 | 228 | ||
209 | 229 | ||
210 | - | func | |
230 | + | func bo () = ((("rpd_balance_" + aH) + "_") + toString(this)) | |
211 | 231 | ||
212 | 232 | ||
213 | - | let | |
233 | + | let bp = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bl), ((("No config at factoryAcc" + toString(M)) + " for key=") + bl))), ("address extraction error for key=" + bl)) | |
214 | 234 | ||
215 | - | let | |
235 | + | let bq = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bm), ((("No config at factoryAcc" + toString(M)) + " for key=") + bm))), ("address extraction error for key=" + bm)) | |
216 | 236 | ||
217 | - | func | |
237 | + | func br () = valueOrElse(getInteger(bp, bn(aD)), 0) | |
218 | 238 | ||
219 | 239 | ||
220 | - | func | |
240 | + | func bs () = valueOrElse(getInteger(bq, bo()), 0) | |
221 | 241 | ||
222 | 242 | ||
223 | - | let | |
243 | + | let bt = valueOrElse(getInteger(this, b()), 0) | |
224 | 244 | ||
225 | - | let | |
245 | + | let bu = valueOrElse(getInteger(this, a()), 0) | |
226 | 246 | ||
227 | - | let | |
247 | + | let bv = getIntegerValue(M, R(this)) | |
228 | 248 | ||
229 | - | let | |
249 | + | let bw = fromBase58String(ab()) | |
230 | 250 | ||
231 | - | let | |
251 | + | let bx = getIntegerValue(M, O()) | |
232 | 252 | ||
233 | - | let | |
253 | + | let by = (bx - assetBalance(this, bw)) | |
234 | 254 | ||
235 | - | let | |
255 | + | let bz = ((assetBalance(this, aI) + bs()) + by) | |
236 | 256 | ||
237 | - | let | |
257 | + | let bA = ba(aB[ag]) | |
238 | 258 | ||
239 | - | let | |
259 | + | let bB = (value(assetInfo(aE)).quantity - assetBalance(this, aE)) | |
240 | 260 | ||
241 | - | func | |
242 | - | then | |
243 | - | else fraction(( | |
261 | + | func bC (bD) = if (aZ) | |
262 | + | then bA | |
263 | + | else fraction((aJ - bD), bA, aJ) | |
244 | 264 | ||
245 | 265 | ||
246 | - | func | |
247 | - | then | |
248 | - | else | |
266 | + | func bE (bF) = if ((aS == bF)) | |
267 | + | then 0 | |
268 | + | else aO | |
249 | 269 | ||
250 | 270 | ||
251 | - | func | |
252 | - | then | |
253 | - | else | |
271 | + | func bG (bD,bF) = if ((aS == bF)) | |
272 | + | then bA | |
273 | + | else bC(bD) | |
254 | 274 | ||
255 | 275 | ||
256 | - | func bx (by,bz,bA,bB,bC,bD) = { | |
257 | - | let bE = fraction(bz, bC, aE) | |
258 | - | let bF = fraction((aE - bD), bE, aE) | |
259 | - | let A = (bE - bF) | |
260 | - | let bG = fraction(bE, aE, bC) | |
261 | - | let bH = (bz - bG) | |
262 | - | if (if ((bB > bz)) | |
263 | - | then (toString(by) != toString(bf)) | |
276 | + | func bH (bD) = if (aZ) | |
277 | + | then bA | |
278 | + | else fraction((aJ + bD), bA, aJ) | |
279 | + | ||
280 | + | ||
281 | + | func bI (bJ,bD) = if (aZ) | |
282 | + | then bJ | |
283 | + | else fraction((aJ + bD), bJ, aJ) | |
284 | + | ||
285 | + | ||
286 | + | func bK (bL,bM,bN,bO,bP,bQ) = { | |
287 | + | let bR = fraction(bM, bP, aJ) | |
288 | + | let bS = fraction(aV, bR, aJ) | |
289 | + | let bT = fraction(bQ, bR, aJ) | |
290 | + | let bU = ((bR - bS) - bT) | |
291 | + | let bV = fraction(bR, aJ, bP) | |
292 | + | let bW = (bM - bV) | |
293 | + | if (if ((bO > bM)) | |
294 | + | then (toString(bL) != toString(bp)) | |
264 | 295 | else false) | |
265 | - | then throw(((((("impossible to issue new " + | |
266 | - | else $Tuple2([IntegerEntry(b(), ( | |
296 | + | then throw(((((("impossible to issue new " + aC) + ": payment=") + toString(bM)) + "is less then min amount=") + toString(bO))) | |
297 | + | else $Tuple2([IntegerEntry(b(), (bt + bV)), StringEntry(f(height, toString(bL), "FINISHED"), t(bM, toBase58String(bN), bA, bU, toBase58String(aE), bR, bT)), Reissue(aE, (bU + bT), true), ScriptTransfer(bL, bU, aE), ScriptTransfer(bL, bW, bN), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))], bW) | |
267 | 298 | } | |
268 | 299 | ||
269 | 300 | ||
270 | - | @Callable( | |
301 | + | @Callable(bX) | |
271 | 302 | func buyAsset () = { | |
272 | - | let bJ = value(bI.payments[0]) | |
273 | - | let bK = value(bJ.assetId) | |
274 | - | if (aO) | |
303 | + | let bY = value(bX.payments[0]) | |
304 | + | let bZ = value(bY.assetId) | |
305 | + | let bF = toBase58String(bX.callerPublicKey) | |
306 | + | if (aY) | |
275 | 307 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
276 | - | else if ( | |
277 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
278 | - | else if (( | |
279 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
280 | - | else | |
308 | + | else if (bk) | |
309 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height))) | |
310 | + | else if ((bZ != aI)) | |
311 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aI)) + " actual=") + toBase58String(bZ))) | |
312 | + | else bK(bX.caller, bY.amount, bZ, aK, bG(aQ, bF), bE(bF))._1 | |
281 | 313 | } | |
282 | 314 | ||
283 | 315 | ||
284 | 316 | ||
285 | - | @Callable( | |
317 | + | @Callable(bX) | |
286 | 318 | func sellAsset () = { | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | if ( | |
319 | + | let bY = value(bX.payments[0]) | |
320 | + | let ca = value(bY.assetId) | |
321 | + | let cb = toString(bX.caller) | |
322 | + | let cc = bH(aQ) | |
323 | + | if (aY) | |
292 | 324 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
293 | - | else if ( | |
294 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
295 | - | else if (( | |
296 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
297 | - | else if (( | |
298 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
325 | + | else if (bk) | |
326 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height))) | |
327 | + | else if ((ca != aE)) | |
328 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(aE)) + " actual=") + toBase58String(ca))) | |
329 | + | else if ((aL > bY.amount)) | |
330 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bY.amount)) + " minAmount=") + toString(aL))) | |
299 | 331 | else { | |
300 | - | let bO = fraction(bJ.amount, aE, bN) | |
301 | - | let bP = if ((bO > bp)) | |
302 | - | then bp | |
303 | - | else bO | |
304 | - | let bQ = fraction(bP, bN, aE) | |
305 | - | let bH = (bJ.amount - bQ) | |
306 | - | let bR = fraction(aK, bQ, aE) | |
307 | - | let bS = (bQ - bR) | |
308 | - | let bT = fraction(bS, aE, bN) | |
309 | - | [IntegerEntry(b(), (bj - bT)), StringEntry(f(height, bM, "FINISHED"), t(bJ.amount, toBase58String(bL), bN, bT, aC, bQ, bR)), Burn(az, bS), ScriptTransfer(bI.caller, bT, aD), ScriptTransfer(bI.caller, bH, az), ScriptTransfer(ae(toString(this)), bR, az), IntegerEntry(a(), (bk + bR))] | |
332 | + | let cd = fraction(bY.amount, aJ, cc) | |
333 | + | let ce = if ((cd > bz)) | |
334 | + | then bz | |
335 | + | else cd | |
336 | + | let cf = fraction(ce, cc, aJ) | |
337 | + | let bW = (bY.amount - cf) | |
338 | + | let bS = fraction(aV, cf, aJ) | |
339 | + | let bT = fraction(aP, cf, aJ) | |
340 | + | let cg = ((cf - bS) - bT) | |
341 | + | let ch = fraction(cg, aJ, cc) | |
342 | + | [IntegerEntry(b(), (bt - ch)), StringEntry(f(height, cb, "FINISHED"), t(bY.amount, toBase58String(ca), cc, ch, aH, cf, bT)), Burn(aE, (cg + bS)), ScriptTransfer(bX.caller, ch, aI), ScriptTransfer(bX.caller, bW, aE), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))] | |
310 | 343 | } | |
311 | 344 | } | |
312 | 345 | ||
313 | 346 | ||
314 | 347 | ||
315 | - | @Callable( | |
316 | - | func crossExchange ( | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if ( | |
348 | + | @Callable(bX) | |
349 | + | func crossExchange (ci,cj) = { | |
350 | + | let bY = value(bX.payments[0]) | |
351 | + | let ca = value(bY.assetId) | |
352 | + | let ck = toBase58String(ca) | |
353 | + | let cl = bY.amount | |
354 | + | let cb = toString(bX.caller) | |
355 | + | let cm = aB | |
356 | + | let cn = ad(cj) | |
357 | + | let co = cn._2 | |
358 | + | let cp = valueOrErrorMessage(addressFromString(cn._1), ("couldn't parse address from string for assetCode=" + cj)) | |
359 | + | let cq = valueOrErrorMessage(parseInt(co[ap]), ("minSellPmt parsing error: rawVal=" + co[ap])) | |
360 | + | let cr = bb(cj) | |
361 | + | let cs = ((cr - cr) > 5) | |
362 | + | if (aY) | |
330 | 363 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
331 | - | else if (( | |
332 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
333 | - | else if (( | |
334 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
335 | - | else if (( | |
336 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
337 | - | else if (( | |
338 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
339 | - | else if ( | |
340 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
341 | - | else if ( | |
342 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
364 | + | else if ((aB[ag] != ci)) | |
365 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aB[ag]) + " BUT buyAssetId=") + ci)) | |
366 | + | else if ((co[ah] != ck)) | |
367 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + co[ah]) + "BUT pmtAsset=") + ck)) | |
368 | + | else if ((aB[ai] != "ISSUED")) | |
369 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + ci) + " BUT status=") + aB[ai])) | |
370 | + | else if ((co[ai] != "ISSUED")) | |
371 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + ck) + " BUT status=") + co[ai])) | |
372 | + | else if (bk) | |
373 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height)) + " buyCode=") + ci)) | |
374 | + | else if (cs) | |
375 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bj)) + " currHeight=") + toString(height)) + " sellCode=") + cj)) | |
343 | 376 | else { | |
344 | - | let cf = bs((aL / 2)) | |
345 | - | let cg = bv(aQ(bV), (aL / 2)) | |
346 | - | let bC = fraction(cf, aE, cg) | |
347 | - | let ch = fraction(bX, aE, cg) | |
348 | - | let ci = valueOrElse(getInteger(this, c()), 0) | |
349 | - | let cj = k(bV) | |
350 | - | let ck = valueOrElse(getInteger(this, cj), 0) | |
351 | - | let cl = parseIntValue(ca[at]) | |
352 | - | let cm = bx(bI.caller, bX, bL, cc, bC, fraction((aJ + cl), 50, 100)) | |
353 | - | ((((cm._1 :+ ScriptTransfer(cb, ch, bm)) :+ ScriptTransfer(cb, (bX - cm._2), bL)) :+ IntegerEntry(cj, (ck + ch))) :+ IntegerEntry(c(), (ci + ch))) | |
377 | + | let ct = bC((aQ / 2)) | |
378 | + | let cu = bI(ba(cj), (aQ / 2)) | |
379 | + | let bP = fraction(ct, aJ, cu) | |
380 | + | let cv = fraction(cl, aJ, cu) | |
381 | + | let cw = valueOrElse(getInteger(this, c()), 0) | |
382 | + | let cx = k(cj) | |
383 | + | let cy = valueOrElse(getInteger(this, cx), 0) | |
384 | + | let cz = parseIntValue(co[at]) | |
385 | + | let cA = fraction((aO + cz), aT, aJ) | |
386 | + | let cB = bK(bX.caller, cl, ca, cq, bP, cA) | |
387 | + | ((((cB._1 :+ ScriptTransfer(cp, cv, bw)) :+ ScriptTransfer(cp, (cl - cB._2), ca)) :+ IntegerEntry(cx, (cy + cv))) :+ IntegerEntry(c(), (cw + cv))) | |
354 | 388 | } | |
355 | 389 | } | |
356 | 390 | ||
357 | 391 | ||
358 | 392 | ||
359 | - | @Callable( | |
393 | + | @Callable(bX) | |
360 | 394 | func rebalanceDebts () = { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let C = | |
368 | - | let | |
369 | - | let | |
370 | - | if ( | |
395 | + | let cC = value(bX.payments[0]) | |
396 | + | let cD = value(cC.assetId) | |
397 | + | let cE = value(bX.payments[1]) | |
398 | + | let cF = value(cE.assetId) | |
399 | + | let cG = toString(bX.caller) | |
400 | + | let cH = ac(cG) | |
401 | + | let C = cH[ag] | |
402 | + | let cx = k(C) | |
403 | + | let cI = valueOrErrorMessage(getInteger(this, cx), ("No debts for " + C)) | |
404 | + | if (aY) | |
371 | 405 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
372 | - | else if (( | |
373 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
374 | - | else if (( | |
375 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
376 | - | else if (( | |
406 | + | else if ((bw != cD)) | |
407 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bw)) + " actual=") + toBase58String(cD))) | |
408 | + | else if ((aI != cF)) | |
409 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aI)) + " actual=") + toBase58String(cF))) | |
410 | + | else if ((cC.amount != cE.amount)) | |
377 | 411 | then throw("first payment amount doesn't match to the second payment amount") | |
378 | - | else if ((0 >= | |
379 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
380 | - | else if ((( | |
381 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
382 | - | else if (( | |
383 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
412 | + | else if ((0 >= cI)) | |
413 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cI))) | |
414 | + | else if (((1 * aJ) >= cC.amount)) | |
415 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cC.amount))) | |
416 | + | else if ((cC.amount > cI)) | |
417 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cC.amount)) + " lendedAmt=") + toString(cI))) | |
384 | 418 | else { | |
385 | - | let | |
386 | - | let G = ( | |
387 | - | [IntegerEntry( | |
419 | + | let cw = valueOrElse(getInteger(this, c()), 0) | |
420 | + | let G = (cI - cC.amount) | |
421 | + | [IntegerEntry(cx, G), IntegerEntry(c(), (cw - cC.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bX.transactionId)), B(C, cC, cE, cI, G))] | |
388 | 422 | } | |
389 | 423 | } | |
390 | 424 | ||
391 | 425 | ||
392 | 426 | ||
393 | - | @Callable( | |
427 | + | @Callable(bX) | |
394 | 428 | func fulfillRedeemRequest (Y) = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if ((0 >= | |
429 | + | let cJ = toString(this) | |
430 | + | let cK = aa(cJ, Y) | |
431 | + | let cL = valueOrElse(getInteger(M, cK), 0) | |
432 | + | if ((0 >= cL)) | |
399 | 433 | then throw("All liquidity request fulfilled") | |
400 | 434 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | if (isDefined(getInteger(this, | |
435 | + | let cM = X(cJ, Y, cL) | |
436 | + | let cN = valueOrErrorMessage(getInteger(M, cM), "Empty poolMakerLiquidityRequestKey at factory acc") | |
437 | + | if (isDefined(getInteger(this, cM))) | |
404 | 438 | then throw("Liquidity request has been already fulfilled") | |
405 | - | else [IntegerEntry( | |
439 | + | else [IntegerEntry(cM, cN), ScriptTransfer(M, cN, aI)] | |
406 | 440 | } | |
407 | 441 | } | |
408 | 442 | ||
409 | 443 | ||
410 | - | @Verifier( | |
411 | - | func | |
412 | - | let | |
413 | - | if ($isInstanceOf( | |
444 | + | @Verifier(cO) | |
445 | + | func cP () = { | |
446 | + | let cQ = cO | |
447 | + | if ($isInstanceOf(cQ, "InvokeScriptTransaction")) | |
414 | 448 | then { | |
415 | - | let | |
416 | - | if (( | |
417 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
418 | - | else if (isDefined( | |
449 | + | let cR = cQ | |
450 | + | if ((cR.fee > (900 * 1000))) | |
451 | + | then throw(("fee amount is greater than max allowed: " + toString(cR.fee))) | |
452 | + | else if (isDefined(cR.feeAssetId)) | |
419 | 453 | then throw("only Waves is allowed as feeAssetId") | |
420 | - | else if (( | |
454 | + | else if ((cR.function == "rebalanceDebts")) | |
421 | 455 | then { | |
422 | - | let | |
423 | - | if ((ac( | |
456 | + | let cS = toString(addressFromRecipient(cR.dApp)) | |
457 | + | if ((ac(cS)[ai] != "ISSUED")) | |
424 | 458 | then throw("only defo dapp is allowed") | |
425 | - | else if (( | |
459 | + | else if ((cS == toString(this))) | |
426 | 460 | then throw("impossible to call self rebealnceDebt") | |
427 | 461 | else true | |
428 | 462 | } | |
429 | - | else if (if (if (( | |
463 | + | else if (if (if ((cR.function == "lockNeutrino")) | |
430 | 464 | then true | |
431 | - | else ( | |
465 | + | else (cR.function == "lockNeutrinoSP")) | |
432 | 466 | then true | |
433 | - | else ( | |
434 | - | then if ((toString( | |
467 | + | else (cR.function == "unlockNeutrino")) | |
468 | + | then if ((toString(bq) != toString(addressFromRecipient(cR.dApp)))) | |
435 | 469 | then throw("invalid neutrino staking dapp address") | |
436 | - | else sigVerify( | |
470 | + | else sigVerify(cO.bodyBytes, cO.proofs[0], af()) | |
437 | 471 | else throw("Not allowed invocation method calls") | |
438 | 472 | } | |
439 | - | else sigVerify( | |
473 | + | else sigVerify(cO.bodyBytes, cO.proofs[0], cO.senderPublicKey) | |
440 | 474 | } | |
441 | 475 |
github/deemru/w8io/169f3d6 147.36 ms ◑