tx · 4cm6n2Y8AQCmEn2JokGEGFNNMNbt4cVBz7LJ25u7ztvy 3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF: -0.42000000 Waves 2023.06.16 15:34 [2625193] smart account 3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF > SELF 0.00000000 Waves
{ "type": 13, "id": "4cm6n2Y8AQCmEn2JokGEGFNNMNbt4cVBz7LJ25u7ztvy", "fee": 42000000, "feeAssetId": null, "timestamp": 1686918849716, "version": 2, "chainId": 84, "sender": "3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF", "senderPublicKey": "3H3jQSMsXpDqwfs2jeMQXJ6JVCBs8MjWRgpeA9LWDFda", "proofs": [ "3YC6qacX5XBWAPV7LykJ1HgFygWRN3jGhStkvMABGuPjTxRnuZrxmJ2cTVgDzNgXCMN5p7oX2t2WKCb3s8hrXw32", "eHQHzDSuDsD2zdV27DCKMV7Qk2Vmw9Doq8hEChwn3mC8NWLT5kPrmNMourneDmPiTNbcXuHnxpfZxyLzywFBFFq" ], "script": "base64:BgJaCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESUwAHdmVyc2lvbgIFMS4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3Nld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kAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnP9Jo0n", "height": 2625193, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 734WmNFnizCPuZdhVFvEirqcDUXbQYcReB9sr1ZAPaoh Next: none Diff:
Old | New | Differences | |
---|---|---|---|
171 | 171 | ||
172 | 172 | func getAssetInfo (assetId) = match assetId { | |
173 | 173 | case id: String|ByteVector => | |
174 | - | let $ | |
174 | + | let $t040794251 = match id { | |
175 | 175 | case aId: ByteVector => | |
176 | 176 | $Tuple2(toBase58String(aId), aId) | |
177 | 177 | case aId: String => | |
179 | 179 | case _ => | |
180 | 180 | throw("Match error") | |
181 | 181 | } | |
182 | - | let stringId = $ | |
183 | - | let bytesId = $ | |
182 | + | let stringId = $t040794251._1 | |
183 | + | let bytesId = $t040794251._2 | |
184 | 184 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
185 | 185 | $Tuple3(stringId, info.name, info.decimals) | |
186 | 186 | case waves: Unit => | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = { | |
304 | - | let $ | |
305 | - | let pmtStrAssetIdA = $ | |
306 | - | let pmtAssetNameA = $ | |
307 | - | let pmtDecimalsA = $ | |
308 | - | let $ | |
309 | - | let pmtStrAssetIdB = $ | |
310 | - | let pmtAssetNameB = $ | |
311 | - | let pmtDecimalsB = $ | |
304 | + | let $t095629634 = getAssetInfo(pmtIdA) | |
305 | + | let pmtStrAssetIdA = $t095629634._1 | |
306 | + | let pmtAssetNameA = $t095629634._2 | |
307 | + | let pmtDecimalsA = $t095629634._3 | |
308 | + | let $t096399711 = getAssetInfo(pmtIdB) | |
309 | + | let pmtStrAssetIdB = $t096399711._1 | |
310 | + | let pmtAssetNameB = $t096399711._2 | |
311 | + | let pmtDecimalsB = $t096399711._3 | |
312 | 312 | let initial = ((balA + balB) == 0) | |
313 | - | let $ | |
313 | + | let $t0975410413 = if (initial) | |
314 | 314 | then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1)) | |
315 | 315 | else { | |
316 | 316 | let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA)) | |
325 | 325 | $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB) | |
326 | 326 | } | |
327 | 327 | } | |
328 | - | let pmtAmountA = $ | |
329 | - | let pmtAmountB = $ | |
330 | - | let change = $ | |
331 | - | let changeAssetId = $ | |
332 | - | let shareTokenRatio = $ | |
328 | + | let pmtAmountA = $t0975410413._1 | |
329 | + | let pmtAmountB = $t0975410413._2 | |
330 | + | let change = $t0975410413._3 | |
331 | + | let changeAssetId = $t0975410413._4 | |
332 | + | let shareTokenRatio = $t0975410413._5 | |
333 | 333 | let shareTokenToPayAmount = if (initial) | |
334 | 334 | then { | |
335 | 335 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
343 | 343 | func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId)) | |
344 | 344 | then { | |
345 | 345 | let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee) | |
346 | - | let $ | |
347 | - | let amountWithoutFee = $ | |
348 | - | let amountWithFee = $ | |
349 | - | let governanceReward = $ | |
350 | - | let tReward = $ | |
346 | + | let $t01127811425 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee) | |
347 | + | let amountWithoutFee = $t01127811425._1 | |
348 | + | let amountWithFee = $t01127811425._2 | |
349 | + | let governanceReward = $t01127811425._3 | |
350 | + | let tReward = $t01127811425._4 | |
351 | 351 | let balanceAVirt = (balA + virtPayAmount) | |
352 | 352 | let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward) | |
353 | 353 | let newBalanceA = (balA + pmtAmount) | |
355 | 355 | let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt)) | |
356 | 356 | let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt)) | |
357 | 357 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
358 | - | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
358 | + | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
359 | 359 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
360 | 360 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss) | |
361 | 361 | } | |
362 | 362 | else { | |
363 | 363 | let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee) | |
364 | - | let $ | |
365 | - | let amountWithoutFee = $ | |
366 | - | let amountWithFee = $ | |
367 | - | let governanceReward = $ | |
368 | - | let tReward = $ | |
364 | + | let $t01246912616 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee) | |
365 | + | let amountWithoutFee = $t01246912616._1 | |
366 | + | let amountWithFee = $t01246912616._2 | |
367 | + | let governanceReward = $t01246912616._3 | |
368 | + | let tReward = $t01246912616._4 | |
369 | 369 | let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward) | |
370 | 370 | let balanceBVirt = (balB + virtPayAmount) | |
371 | 371 | let newBalanceA = ((balA - governanceReward) - tReward) | |
373 | 373 | let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt)) | |
374 | 374 | let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt)) | |
375 | 375 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
376 | - | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
376 | + | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
377 | 377 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
378 | 378 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = { | |
383 | - | let $ | |
384 | - | let lpTwoAmount = $ | |
385 | - | let change = $ | |
386 | - | let changeAssetId = $ | |
387 | - | let pmtAmountA = $ | |
388 | - | let pmtAmountB = $ | |
383 | + | let $t01378313931 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply) | |
384 | + | let lpTwoAmount = $t01378313931._1 | |
385 | + | let change = $t01378313931._2 | |
386 | + | let changeAssetId = $t01378313931._3 | |
387 | + | let pmtAmountA = $t01378313931._4 | |
388 | + | let pmtAmountB = $t01378313931._5 | |
389 | 389 | if ((change > 0)) | |
390 | 390 | then { | |
391 | - | let $ | |
392 | - | let lpOne = $ | |
393 | - | let newBalanceA = $ | |
394 | - | let newBalanceB = $ | |
395 | - | let governanceReward = $ | |
396 | - | let tReward = $ | |
397 | - | let gId = $ | |
398 | - | let loss = $ | |
391 | + | let $t01396314198 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
392 | + | let lpOne = $t01396314198._1 | |
393 | + | let newBalanceA = $t01396314198._2 | |
394 | + | let newBalanceB = $t01396314198._3 | |
395 | + | let governanceReward = $t01396314198._4 | |
396 | + | let tReward = $t01396314198._5 | |
397 | + | let gId = $t01396314198._6 | |
398 | + | let loss = $t01396314198._7 | |
399 | 399 | $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId) | |
400 | 400 | } | |
401 | 401 | else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit) | |
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
407 | - | let $ | |
408 | - | let strAssetIdA = $ | |
409 | - | let strAssetIdB = $ | |
410 | - | let assetIdA = $ | |
411 | - | let assetIdB = $ | |
412 | - | let shareAssetId = $ | |
413 | - | let $ | |
414 | - | let balA = $ | |
415 | - | let balB = $ | |
416 | - | let accBalA = $ | |
417 | - | let accBalB = $ | |
418 | - | let lpSupply = $ | |
407 | + | let $t01453414624 = getPoolAssets(i.caller) | |
408 | + | let strAssetIdA = $t01453414624._1 | |
409 | + | let strAssetIdB = $t01453414624._2 | |
410 | + | let assetIdA = $t01453414624._3 | |
411 | + | let assetIdB = $t01453414624._4 | |
412 | + | let shareAssetId = $t01453414624._5 | |
413 | + | let $t01462914721 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
414 | + | let balA = $t01462914721._1 | |
415 | + | let balB = $t01462914721._2 | |
416 | + | let accBalA = $t01462914721._3 | |
417 | + | let accBalB = $t01462914721._4 | |
418 | + | let lpSupply = $t01462914721._5 | |
419 | 419 | let pmtA = parseIntValue(args[0]) | |
420 | 420 | let pmtB = parseIntValue(args[1]) | |
421 | 421 | let virtGetMinAmount = parseIntValue(args[2]) | |
422 | - | let $ | |
423 | - | let fee = $ | |
424 | - | let govFee = $ | |
425 | - | let teamFee = $ | |
426 | - | let $ | |
427 | - | let lp = $ | |
428 | - | let loss = $ | |
429 | - | let newBalanceA = $ | |
430 | - | let newBalanceB = $ | |
431 | - | let governanceReward = $ | |
432 | - | let tReward = $ | |
433 | - | let aId = $ | |
422 | + | let $t01485514922 = getFeeParams(i.caller, i.originCaller) | |
423 | + | let fee = $t01485514922._1 | |
424 | + | let govFee = $t01485514922._2 | |
425 | + | let teamFee = $t01485514922._3 | |
426 | + | let $t01492715119 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
427 | + | let lp = $t01492715119._1 | |
428 | + | let loss = $t01492715119._2 | |
429 | + | let newBalanceA = $t01492715119._3 | |
430 | + | let newBalanceB = $t01492715119._4 | |
431 | + | let governanceReward = $t01492715119._5 | |
432 | + | let tReward = $t01492715119._6 | |
433 | + | let aId = $t01492715119._7 | |
434 | 434 | $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId])) | |
435 | 435 | } | |
436 | 436 | ||
438 | 438 | ||
439 | 439 | @Callable(i) | |
440 | 440 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
441 | - | let $ | |
442 | - | let strAssetIdA = $ | |
443 | - | let strAssetIdB = $ | |
444 | - | let assetIdA = $ | |
445 | - | let assetIdB = $ | |
446 | - | let shareAssetId = $ | |
447 | - | let $ | |
448 | - | let balanceA = $ | |
449 | - | let balanceB = $ | |
450 | - | let accountBalanceA = $ | |
451 | - | let accountBalanceB = $ | |
452 | - | let shareAssetSupply = $ | |
441 | + | let $t01534615436 = getPoolAssets(i.caller) | |
442 | + | let strAssetIdA = $t01534615436._1 | |
443 | + | let strAssetIdB = $t01534615436._2 | |
444 | + | let assetIdA = $t01534615436._3 | |
445 | + | let assetIdB = $t01534615436._4 | |
446 | + | let shareAssetId = $t01534615436._5 | |
447 | + | let $t01544115565 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
448 | + | let balanceA = $t01544115565._1 | |
449 | + | let balanceB = $t01544115565._2 | |
450 | + | let accountBalanceA = $t01544115565._3 | |
451 | + | let accountBalanceB = $t01544115565._4 | |
452 | + | let shareAssetSupply = $t01544115565._5 | |
453 | 453 | let withdrawAmount = parseIntValue(args[0]) | |
454 | - | let $ | |
454 | + | let $t01561915781 = if ((size(args) == 3)) | |
455 | 455 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
456 | 456 | else $Tuple2(balanceA, balanceB) | |
457 | - | let balA = $ | |
458 | - | let balB = $ | |
457 | + | let balA = $t01561915781._1 | |
458 | + | let balB = $t01561915781._2 | |
459 | 459 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
460 | 460 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
461 | 461 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
466 | 466 | @Callable(i) | |
467 | 467 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
468 | 468 | let caller = Address(callerBytes) | |
469 | - | let $ | |
470 | - | let pmtAmountA = $ | |
471 | - | let pmtAssetIdA = $ | |
472 | - | let $ | |
473 | - | let pmtAmountB = $ | |
474 | - | let pmtAssetIdB = $ | |
469 | + | let $t01613616214 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
470 | + | let pmtAmountA = $t01613616214._1 | |
471 | + | let pmtAssetIdA = $t01613616214._2 | |
472 | + | let $t01621916297 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
473 | + | let pmtAmountB = $t01621916297._1 | |
474 | + | let pmtAssetIdB = $t01621916297._2 | |
475 | 475 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
476 | 476 | then throw("Only admin can call this function") | |
477 | 477 | else if ((size(args) != 1)) | |
481 | 481 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
482 | 482 | then throw("Assets must be different") | |
483 | 483 | else { | |
484 | - | let $ | |
485 | - | let pmtStrAssetIdA = $ | |
486 | - | let pmtAssetNameA = $ | |
487 | - | let pmtDecimalsA = $ | |
488 | - | let $ | |
489 | - | let pmtStrAssetIdB = $ | |
490 | - | let pmtAssetNameB = $ | |
491 | - | let pmtDecimalsB = $ | |
484 | + | let $t01673216809 = getAssetInfo(pmtAssetIdA) | |
485 | + | let pmtStrAssetIdA = $t01673216809._1 | |
486 | + | let pmtAssetNameA = $t01673216809._2 | |
487 | + | let pmtDecimalsA = $t01673216809._3 | |
488 | + | let $t01681816895 = getAssetInfo(pmtAssetIdB) | |
489 | + | let pmtStrAssetIdB = $t01681816895._1 | |
490 | + | let pmtAssetNameB = $t01681816895._2 | |
491 | + | let pmtDecimalsB = $t01681816895._3 | |
492 | 492 | let firstHarvest = (args[0] == "true") | |
493 | 493 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
494 | 494 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
525 | 525 | @Callable(i) | |
526 | 526 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
527 | 527 | let caller = Address(callerBytes) | |
528 | - | let $ | |
529 | - | let amtAssetA = $ | |
530 | - | let amtAssetB = $ | |
531 | - | let assetIdAStr = $ | |
532 | - | let assetIdBStr = $ | |
533 | - | let firstHarvest = $ | |
528 | + | let $t01911619316 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
529 | + | let amtAssetA = $t01911619316._1 | |
530 | + | let amtAssetB = $t01911619316._2 | |
531 | + | let assetIdAStr = $t01911619316._3 | |
532 | + | let assetIdBStr = $t01911619316._4 | |
533 | + | let firstHarvest = $t01911619316._5 | |
534 | 534 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
535 | 535 | then throw("Only admin can call this function") | |
536 | 536 | else if ((size(args) != 5)) | |
540 | 540 | else if ((assetIdAStr == assetIdBStr)) | |
541 | 541 | then throw("Assets must be different") | |
542 | 542 | else { | |
543 | - | let $ | |
544 | - | let pmtStrAssetIdA = $ | |
545 | - | let pmtAssetNameA = $ | |
546 | - | let pmtDecimalsA = $ | |
547 | - | let $ | |
548 | - | let pmtStrAssetIdB = $ | |
549 | - | let pmtAssetNameB = $ | |
550 | - | let pmtDecimalsB = $ | |
543 | + | let $t01975119828 = getAssetInfo(assetIdAStr) | |
544 | + | let pmtStrAssetIdA = $t01975119828._1 | |
545 | + | let pmtAssetNameA = $t01975119828._2 | |
546 | + | let pmtDecimalsA = $t01975119828._3 | |
547 | + | let $t01983719914 = getAssetInfo(assetIdBStr) | |
548 | + | let pmtStrAssetIdB = $t01983719914._1 | |
549 | + | let pmtAssetNameB = $t01983719914._2 | |
550 | + | let pmtDecimalsB = $t01983719914._3 | |
551 | 551 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
552 | 552 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
553 | 553 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
578 | 578 | @Callable(i) | |
579 | 579 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
580 | 580 | let caller = Address(callerBytes) | |
581 | - | let $ | |
582 | - | let pmtAmount = $ | |
583 | - | let pmtAssetId = $ | |
581 | + | let $t02234022416 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
582 | + | let pmtAmount = $t02234022416._1 | |
583 | + | let pmtAssetId = $t02234022416._2 | |
584 | 584 | let minAmountToReceive = parseIntValue(args[0]) | |
585 | - | let $ | |
586 | - | let strAssetIdA = $ | |
587 | - | let strAssetIdB = $ | |
588 | - | let assetIdA = $ | |
589 | - | let assetIdB = $ | |
590 | - | let $ | |
591 | - | let balanceA = $ | |
592 | - | let balanceB = $ | |
593 | - | let accountBalanceA = $ | |
594 | - | let accountBalanceB = $ | |
585 | + | let $t02248122557 = getPoolAssets(i.caller) | |
586 | + | let strAssetIdA = $t02248122557._1 | |
587 | + | let strAssetIdB = $t02248122557._2 | |
588 | + | let assetIdA = $t02248122557._3 | |
589 | + | let assetIdB = $t02248122557._4 | |
590 | + | let $t02256622672 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
591 | + | let balanceA = $t02256622672._1 | |
592 | + | let balanceB = $t02256622672._2 | |
593 | + | let accountBalanceA = $t02256622672._3 | |
594 | + | let accountBalanceB = $t02256622672._4 | |
595 | 595 | if ((size(args) != 1)) | |
596 | 596 | then throw("Wrong args size") | |
597 | 597 | else if (if ((balanceA == 0)) | |
609 | 609 | else (balanceB > accountBalanceB)) | |
610 | 610 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
611 | 611 | else { | |
612 | - | let $ | |
613 | - | let fee = $ | |
614 | - | let govFee = $ | |
615 | - | let teamFee = $ | |
616 | - | let $ | |
612 | + | let $t02357223639 = getFeeParams(i.caller, i.originCaller) | |
613 | + | let fee = $t02357223639._1 | |
614 | + | let govFee = $t02357223639._2 | |
615 | + | let teamFee = $t02357223639._3 | |
616 | + | let $t02365224003 = if ((pmtAssetId == assetIdA)) | |
617 | 617 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
618 | 618 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
619 | - | let amountWithoutFee = $ | |
620 | - | let amountWithFee = $ | |
621 | - | let governanceReward = $ | |
622 | - | let teamReward = $ | |
623 | - | let $ | |
619 | + | let amountWithoutFee = $t02365224003._1 | |
620 | + | let amountWithFee = $t02365224003._2 | |
621 | + | let governanceReward = $t02365224003._3 | |
622 | + | let teamReward = $t02365224003._4 | |
623 | + | let $t02401724352 = if ((pmtAssetId == assetIdA)) | |
624 | 624 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
625 | 625 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
626 | - | let newBalanceA = $ | |
627 | - | let newBalanceB = $ | |
628 | - | let assetIdSend = $ | |
629 | - | let $ | |
626 | + | let newBalanceA = $t02401724352._1 | |
627 | + | let newBalanceB = $t02401724352._2 | |
628 | + | let assetIdSend = $t02401724352._3 | |
629 | + | let $t02436624626 = if ((pmtAssetId == assetIdA)) | |
630 | 630 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
631 | 631 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
632 | - | let stakeAmountA = $ | |
633 | - | let stakeAmountB = $ | |
632 | + | let stakeAmountA = $t02436624626._1 | |
633 | + | let stakeAmountB = $t02436624626._2 | |
634 | 634 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
635 | 635 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
636 | 636 | else 0 | |
656 | 656 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
657 | 657 | let stakeFarming = (args[0] == "true") | |
658 | 658 | let lockType = parseIntValue(args[1]) | |
659 | - | let $ | |
660 | - | let strAssetIdA = $ | |
661 | - | let strAssetIdB = $ | |
662 | - | let assetIdA = $ | |
663 | - | let assetIdB = $ | |
664 | - | let shareAssetId = $ | |
665 | - | let $ | |
666 | - | let balanceA = $ | |
667 | - | let balanceB = $ | |
668 | - | let accountBalanceA = $ | |
669 | - | let accountBalanceB = $ | |
670 | - | let shareAssetSupply = $ | |
659 | + | let $t02594126031 = getPoolAssets(i.caller) | |
660 | + | let strAssetIdA = $t02594126031._1 | |
661 | + | let strAssetIdB = $t02594126031._2 | |
662 | + | let assetIdA = $t02594126031._3 | |
663 | + | let assetIdB = $t02594126031._4 | |
664 | + | let shareAssetId = $t02594126031._5 | |
665 | + | let $t02604026164 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
666 | + | let balanceA = $t02604026164._1 | |
667 | + | let balanceB = $t02604026164._2 | |
668 | + | let accountBalanceA = $t02604026164._3 | |
669 | + | let accountBalanceB = $t02604026164._4 | |
670 | + | let shareAssetSupply = $t02604026164._5 | |
671 | 671 | if ((size(args) != 2)) | |
672 | 672 | then throw("Wrong args size") | |
673 | 673 | else if (if ((size(pAmounts) != 2)) | |
687 | 687 | else pAssetIds[2], pAmounts[2])] | |
688 | 688 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
689 | 689 | else { | |
690 | - | let $ | |
691 | - | let shareTokenToPayAmount = $ | |
692 | - | let change = $ | |
693 | - | let changeAssetId = $ | |
694 | - | let pmtAmountA = $ | |
695 | - | let pmtAmountB = $ | |
690 | + | let $t02710127299 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
691 | + | let shareTokenToPayAmount = $t02710127299._1 | |
692 | + | let change = $t02710127299._2 | |
693 | + | let changeAssetId = $t02710127299._3 | |
694 | + | let pmtAmountA = $t02710127299._4 | |
695 | + | let pmtAmountB = $t02710127299._5 | |
696 | 696 | if ((shareTokenToPayAmount == 0)) | |
697 | 697 | then throw("Too small amount to replenish") | |
698 | 698 | else if ((0 > change)) | |
745 | 745 | let virtGetMinAmount = parseIntValue(args[0]) | |
746 | 746 | let stakeFarming = (args[1] == "true") | |
747 | 747 | let lockType = parseIntValue(args[2]) | |
748 | - | let $ | |
749 | - | let strAssetIdA = $ | |
750 | - | let strAssetIdB = $ | |
751 | - | let assetIdA = $ | |
752 | - | let assetIdB = $ | |
753 | - | let shareAssetId = $ | |
754 | - | let $ | |
755 | - | let balanceA = $ | |
756 | - | let balanceB = $ | |
757 | - | let accountBalanceA = $ | |
758 | - | let accountBalanceB = $ | |
759 | - | let shareAssetSupply = $ | |
748 | + | let $t02955829648 = getPoolAssets(i.caller) | |
749 | + | let strAssetIdA = $t02955829648._1 | |
750 | + | let strAssetIdB = $t02955829648._2 | |
751 | + | let assetIdA = $t02955829648._3 | |
752 | + | let assetIdB = $t02955829648._4 | |
753 | + | let shareAssetId = $t02955829648._5 | |
754 | + | let $t02965329777 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
755 | + | let balanceA = $t02965329777._1 | |
756 | + | let balanceB = $t02965329777._2 | |
757 | + | let accountBalanceA = $t02965329777._3 | |
758 | + | let accountBalanceB = $t02965329777._4 | |
759 | + | let shareAssetSupply = $t02965329777._5 | |
760 | 760 | let initial = ((balanceA + balanceB) == 0) | |
761 | 761 | if ((size(args) != 3)) | |
762 | 762 | then throw("Wrong args size") | |
779 | 779 | else pAssetIds[2], pAmounts[2])] | |
780 | 780 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
781 | 781 | else { | |
782 | - | let $ | |
783 | - | let fee = $ | |
784 | - | let govFee = $ | |
785 | - | let teamFee = $ | |
786 | - | let $ | |
787 | - | let pmtAssetIdStr = $ | |
788 | - | let pmtAssetIdName = $ | |
789 | - | let $ | |
790 | - | let shareTokenToPayAmount = $ | |
791 | - | let newBalanceA = $ | |
792 | - | let newBalanceB = $ | |
793 | - | let govReward = $ | |
794 | - | let teamReward = $ | |
795 | - | let govRewardAsset = $ | |
782 | + | let $t03068930756 = getFeeParams(i.caller, i.originCaller) | |
783 | + | let fee = $t03068930756._1 | |
784 | + | let govFee = $t03068930756._2 | |
785 | + | let teamFee = $t03068930756._3 | |
786 | + | let $t03076530827 = getAssetInfo(pmtAssetId) | |
787 | + | let pmtAssetIdStr = $t03076530827._1 | |
788 | + | let pmtAssetIdName = $t03076530827._2 | |
789 | + | let $t03084531091 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
790 | + | let shareTokenToPayAmount = $t03084531091._1 | |
791 | + | let newBalanceA = $t03084531091._2 | |
792 | + | let newBalanceB = $t03084531091._3 | |
793 | + | let govReward = $t03084531091._4 | |
794 | + | let teamReward = $t03084531091._5 | |
795 | + | let govRewardAsset = $t03084531091._6 | |
796 | 796 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
797 | 797 | then strAssetIdA | |
798 | 798 | else strAssetIdB | |
841 | 841 | @Callable(i) | |
842 | 842 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
843 | 843 | let caller = Address(callerBytes) | |
844 | - | let $ | |
845 | - | let strAssetIdA = $ | |
846 | - | let strAssetIdB = $ | |
847 | - | let assetIdA = $ | |
848 | - | let assetIdB = $ | |
849 | - | let shareAssetId = $ | |
850 | - | let $ | |
851 | - | let balanceA = $ | |
852 | - | let balanceB = $ | |
853 | - | let accountBalanceA = $ | |
854 | - | let accountBalanceB = $ | |
855 | - | let shareAssetSupply = $ | |
856 | - | let $ | |
844 | + | let $t03315933249 = getPoolAssets(i.caller) | |
845 | + | let strAssetIdA = $t03315933249._1 | |
846 | + | let strAssetIdB = $t03315933249._2 | |
847 | + | let assetIdA = $t03315933249._3 | |
848 | + | let assetIdB = $t03315933249._4 | |
849 | + | let shareAssetId = $t03315933249._5 | |
850 | + | let $t03325833382 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
851 | + | let balanceA = $t03325833382._1 | |
852 | + | let balanceB = $t03325833382._2 | |
853 | + | let accountBalanceA = $t03325833382._3 | |
854 | + | let accountBalanceB = $t03325833382._4 | |
855 | + | let shareAssetSupply = $t03325833382._5 | |
856 | + | let $t03339133771 = if ((size(pAmounts) == 1)) | |
857 | 857 | then { | |
858 | 858 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
859 | 859 | if ((pAsset != shareAssetId)) | |
861 | 861 | else $Tuple2(pAmounts[0], pAsset) | |
862 | 862 | } | |
863 | 863 | else $Tuple2(0, shareAssetId) | |
864 | - | let pmtAmount = $ | |
865 | - | let pmtAssetId = $ | |
864 | + | let pmtAmount = $t03339133771._1 | |
865 | + | let pmtAssetId = $t03339133771._2 | |
866 | 866 | if ((size(args) != 1)) | |
867 | 867 | then throw("Wrong args size") | |
868 | 868 | else if ((size(pAmounts) > 1)) | |
907 | 907 | let withdrawAsset = if ((args[0] == "")) | |
908 | 908 | then unit | |
909 | 909 | else fromBase58String(args[0]) | |
910 | - | let $ | |
911 | - | let strAssetIdA = $ | |
912 | - | let strAssetIdB = $ | |
913 | - | let assetIdA = $ | |
914 | - | let assetIdB = $ | |
915 | - | let shareAssetId = $ | |
916 | - | let $ | |
917 | - | let balanceA = $ | |
918 | - | let balanceB = $ | |
919 | - | let accountBalanceA = $ | |
920 | - | let accountBalanceB = $ | |
921 | - | let shareAssetSupply = $ | |
922 | - | let $ | |
910 | + | let $t03598936079 = getPoolAssets(i.caller) | |
911 | + | let strAssetIdA = $t03598936079._1 | |
912 | + | let strAssetIdB = $t03598936079._2 | |
913 | + | let assetIdA = $t03598936079._3 | |
914 | + | let assetIdB = $t03598936079._4 | |
915 | + | let shareAssetId = $t03598936079._5 | |
916 | + | let $t03608836212 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
917 | + | let balanceA = $t03608836212._1 | |
918 | + | let balanceB = $t03608836212._2 | |
919 | + | let accountBalanceA = $t03608836212._3 | |
920 | + | let accountBalanceB = $t03608836212._4 | |
921 | + | let shareAssetSupply = $t03608836212._5 | |
922 | + | let $t03622136573 = if ((size(pAmounts) == 1)) | |
923 | 923 | then { | |
924 | 924 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
925 | 925 | if ((pAsset != shareAssetId)) | |
927 | 927 | else $Tuple2(pAmounts[0], pAsset) | |
928 | 928 | } | |
929 | 929 | else $Tuple2(0, shareAssetId) | |
930 | - | let pmtAmount = $ | |
931 | - | let pmtAssetId = $ | |
930 | + | let pmtAmount = $t03622136573._1 | |
931 | + | let pmtAssetId = $t03622136573._2 | |
932 | 932 | let virtMinToRecive = parseIntValue(args[1]) | |
933 | 933 | if ((size(args) != 3)) | |
934 | 934 | then throw("Wrong args size") | |
952 | 952 | let withdrawAmount = (pmtAmount + unlockAmount) | |
953 | 953 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
954 | 954 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
955 | - | let $ | |
956 | - | let fee = $ | |
957 | - | let govFee = $ | |
958 | - | let teamFee = $ | |
959 | - | let $ | |
955 | + | let $t03784037907 = getFeeParams(i.caller, i.originCaller) | |
956 | + | let fee = $t03784037907._1 | |
957 | + | let govFee = $t03784037907._2 | |
958 | + | let teamFee = $t03784037907._3 | |
959 | + | let $t03792038334 = if ((withdrawAsset == assetIdA)) | |
960 | 960 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
961 | 961 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
962 | - | let amountWithoutFee = $ | |
963 | - | let amountWithFee = $ | |
964 | - | let governanceReward = $ | |
965 | - | let teamReward = $ | |
966 | - | let $ | |
962 | + | let amountWithoutFee = $t03792038334._1 | |
963 | + | let amountWithFee = $t03792038334._2 | |
964 | + | let governanceReward = $t03792038334._3 | |
965 | + | let teamReward = $t03792038334._4 | |
966 | + | let $t03834739657 = if ((withdrawAsset == assetIdA)) | |
967 | 967 | then { | |
968 | 968 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
969 | 969 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
980 | 980 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
981 | 981 | else throw("Strict value is not equal to itself.") | |
982 | 982 | } | |
983 | - | let newBalanceA = $ | |
984 | - | let newBalanceB = $ | |
985 | - | let govRewardAssetId = $ | |
986 | - | let userTransfer = $ | |
983 | + | let newBalanceA = $t03834739657._1 | |
984 | + | let newBalanceB = $t03834739657._2 | |
985 | + | let govRewardAssetId = $t03834739657._3 | |
986 | + | let userTransfer = $t03834739657._4 | |
987 | 987 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
988 | 988 | } | |
989 | 989 | else throw("Strict value is not equal to itself.") | |
994 | 994 | ||
995 | 995 | @Callable(i) | |
996 | 996 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
997 | - | let $ | |
998 | - | let strAssetIdA = $ | |
999 | - | let strAssetIdB = $ | |
1000 | - | let assetIdA = $ | |
1001 | - | let assetIdB = $ | |
997 | + | let $t04041740493 = getPoolAssets(i.caller) | |
998 | + | let strAssetIdA = $t04041740493._1 | |
999 | + | let strAssetIdB = $t04041740493._2 | |
1000 | + | let assetIdA = $t04041740493._3 | |
1001 | + | let assetIdB = $t04041740493._4 | |
1002 | 1002 | let claim = if (if ((assetIdA == USDN)) | |
1003 | 1003 | then true | |
1004 | 1004 | else (assetIdB == USDN)) | |
1006 | 1006 | else 0 | |
1007 | 1007 | if ((claim == claim)) | |
1008 | 1008 | then { | |
1009 | - | let $ | |
1010 | - | let balanceA = $ | |
1011 | - | let balanceB = $ | |
1012 | - | let accountBalanceA = $ | |
1013 | - | let accountBalanceB = $ | |
1009 | + | let $t04065340759 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1010 | + | let balanceA = $t04065340759._1 | |
1011 | + | let balanceB = $t04065340759._2 | |
1012 | + | let accountBalanceA = $t04065340759._3 | |
1013 | + | let accountBalanceB = $t04065340759._4 | |
1014 | 1014 | let amountEnrollA = (accountBalanceA - balanceA) | |
1015 | 1015 | let amountEnrollB = (accountBalanceB - balanceB) | |
1016 | 1016 | if ((size(args) != 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let kVersion = "version" | |
7 | 7 | ||
8 | 8 | let kActive = "active" | |
9 | 9 | ||
10 | 10 | let kDeprecated = "deprecated_" | |
11 | 11 | ||
12 | 12 | let kAssetIdA = "A_asset_id" | |
13 | 13 | ||
14 | 14 | let kAssetIdB = "B_asset_id" | |
15 | 15 | ||
16 | 16 | let kBalanceA = "A_asset_balance" | |
17 | 17 | ||
18 | 18 | let kBalanceB = "B_asset_balance" | |
19 | 19 | ||
20 | 20 | let kBalanceInitA = "A_asset_init" | |
21 | 21 | ||
22 | 22 | let kBalanceInitB = "B_asset_init" | |
23 | 23 | ||
24 | 24 | let kShareAssetId = "share_asset_id" | |
25 | 25 | ||
26 | 26 | let kShareAssetSupply = "share_asset_supply" | |
27 | 27 | ||
28 | 28 | let kFee = "commission" | |
29 | 29 | ||
30 | 30 | let kCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let kFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let kFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let kShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let kBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let kPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let kStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let kUSDNAddress = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | 46 | let kEURNAddress = "staking_eurn_address" | |
47 | 47 | ||
48 | 48 | let kLeasingAmount = "leasing_amount" | |
49 | 49 | ||
50 | 50 | let kUSDNAssetId = "usdn_asset_id" | |
51 | 51 | ||
52 | 52 | let kEURNAssetId = "eurn_asset_id" | |
53 | 53 | ||
54 | 54 | let kStakingAssets = "staking_assets" | |
55 | 55 | ||
56 | 56 | let kOracleActive = "active_all_contracts" | |
57 | 57 | ||
58 | 58 | let kDiscounts = "discounts" | |
59 | 59 | ||
60 | 60 | let kDiscountValues = "discount_values" | |
61 | 61 | ||
62 | 62 | let kUserGSwopInGov = "_GSwop_amount" | |
63 | 63 | ||
64 | 64 | let kUserSwopInGov = "_SWOP_amount" | |
65 | 65 | ||
66 | 66 | let kOraclePool = "pool_" | |
67 | 67 | ||
68 | 68 | let kAdminPubKey1 = "admin_pub_1" | |
69 | 69 | ||
70 | 70 | let kAdminPubKey2 = "admin_pub_2" | |
71 | 71 | ||
72 | 72 | let kAdminPubKey3 = "admin_pub_3" | |
73 | 73 | ||
74 | 74 | let kAdminInvokePubKey = "admin_invoke_pub" | |
75 | 75 | ||
76 | 76 | let kMoneyBoxAddress = "money_box_address" | |
77 | 77 | ||
78 | 78 | let kTeamBoxAddress = "team_box_address" | |
79 | 79 | ||
80 | 80 | let kVotingAddress = "voting_address" | |
81 | 81 | ||
82 | 82 | let kGovAddress = "governance_address" | |
83 | 83 | ||
84 | 84 | let kFarmingAddress = "farming_address" | |
85 | 85 | ||
86 | 86 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
87 | 87 | ||
88 | 88 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
89 | 89 | case string: String => | |
90 | 90 | fromBase58String(string) | |
91 | 91 | case nothing => | |
92 | 92 | throw((key + "is empty")) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
97 | 97 | ||
98 | 98 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
99 | 99 | ||
100 | 100 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
101 | 101 | ||
102 | 102 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
103 | 103 | ||
104 | 104 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
105 | 105 | ||
106 | 106 | let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress)) | |
107 | 107 | ||
108 | 108 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
109 | 109 | ||
110 | 110 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
111 | 111 | ||
112 | 112 | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
113 | 113 | ||
114 | 114 | let USDN = getBase58FromOracle(kUSDNAssetId) | |
115 | 115 | ||
116 | 116 | let EURN = getBase58FromOracle(kEURNAssetId) | |
117 | 117 | ||
118 | 118 | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
119 | 119 | ||
120 | 120 | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
121 | 121 | ||
122 | 122 | let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress)) | |
123 | 123 | ||
124 | 124 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
125 | 125 | ||
126 | 126 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
127 | 127 | ||
128 | 128 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
129 | 129 | ||
130 | 130 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
131 | 131 | ||
132 | 132 | let active = getBooleanValue(oracle, kOracleActive) | |
133 | 133 | ||
134 | 134 | let feeScale6 = 1000000 | |
135 | 135 | ||
136 | 136 | let scale8 = 100000000 | |
137 | 137 | ||
138 | 138 | let scale16 = toBigInt(10000000000000000) | |
139 | 139 | ||
140 | 140 | func accountBalance (assetId,pool) = match assetId { | |
141 | 141 | case id: ByteVector => | |
142 | 142 | assetBalance(pool, id) | |
143 | 143 | case waves: Unit => | |
144 | 144 | wavesBalance(pool).available | |
145 | 145 | case _ => | |
146 | 146 | throw("Match error") | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func stakedAmount (assetId,pool) = { | |
151 | 151 | let stakedAmountCalculated = match assetId { | |
152 | 152 | case aId: ByteVector => | |
153 | 153 | if ((aId == USDN)) | |
154 | 154 | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool))) | |
155 | 155 | else if ((aId == EURN)) | |
156 | 156 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool))) | |
157 | 157 | else 0 | |
158 | 158 | case _: Unit => | |
159 | 159 | valueOrElse(getInteger(pool, kLeasingAmount), 0) | |
160 | 160 | case _ => | |
161 | 161 | throw("Match error") | |
162 | 162 | } | |
163 | 163 | match stakedAmountCalculated { | |
164 | 164 | case i: Int => | |
165 | 165 | i | |
166 | 166 | case _ => | |
167 | 167 | 0 | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getAssetInfo (assetId) = match assetId { | |
173 | 173 | case id: String|ByteVector => | |
174 | - | let $ | |
174 | + | let $t040794251 = match id { | |
175 | 175 | case aId: ByteVector => | |
176 | 176 | $Tuple2(toBase58String(aId), aId) | |
177 | 177 | case aId: String => | |
178 | 178 | $Tuple2(aId, fromBase58String(aId)) | |
179 | 179 | case _ => | |
180 | 180 | throw("Match error") | |
181 | 181 | } | |
182 | - | let stringId = $ | |
183 | - | let bytesId = $ | |
182 | + | let stringId = $t040794251._1 | |
183 | + | let bytesId = $t040794251._2 | |
184 | 184 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
185 | 185 | $Tuple3(stringId, info.name, info.decimals) | |
186 | 186 | case waves: Unit => | |
187 | 187 | $Tuple3("WAVES", "WAVES", 8) | |
188 | 188 | case _ => | |
189 | 189 | throw("Match error") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func calculateFeeDiscount (userAddr) = { | |
197 | 197 | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
198 | 198 | let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount) | |
199 | 199 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
200 | 200 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
201 | 201 | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
202 | 202 | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
203 | 203 | else false) | |
204 | 204 | then (feeScale6 - parseIntValue(discounts[0])) | |
205 | 205 | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
206 | 206 | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
207 | 207 | else false) | |
208 | 208 | then (feeScale6 - parseIntValue(discounts[1])) | |
209 | 209 | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
210 | 210 | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
211 | 211 | else false) | |
212 | 212 | then (feeScale6 - parseIntValue(discounts[2])) | |
213 | 213 | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
214 | 214 | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
215 | 215 | else false) | |
216 | 216 | then (feeScale6 - parseIntValue(discounts[3])) | |
217 | 217 | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
218 | 218 | then (feeScale6 - parseIntValue(discounts[4])) | |
219 | 219 | else feeScale6 | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = { | |
224 | 224 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
225 | 225 | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
226 | 226 | let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6) | |
227 | 227 | let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6) | |
228 | 228 | if ((minAmountToReceive > amountWithFee)) | |
229 | 229 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
230 | 230 | else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward) | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func calculateVirtPay (pmtAmount,balance,fee) = { | |
235 | 235 | let F = (feeScale6 - fee) | |
236 | 236 | let k = fraction(fee, 55, 100) | |
237 | 237 | let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6))) | |
238 | 238 | let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6))) | |
239 | 239 | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
240 | 240 | let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8))) | |
241 | 241 | toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a)))) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
246 | 246 | then unit | |
247 | 247 | else assetId | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB)) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func isActive () = if (active) | |
254 | 254 | then unit | |
255 | 255 | else throw("DApp is inactive at this moment") | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
259 | 259 | then unit | |
260 | 260 | else throw("DApp is not registered pool") | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false))) | |
264 | 264 | then unit | |
265 | 265 | else throw("Pool is deprecated. Only withdraw action allowed.") | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
269 | 269 | let balanceA = getIntegerValue(pool, kBalanceA) | |
270 | 270 | let balanceB = getIntegerValue(pool, kBalanceB) | |
271 | 271 | let stakedAmountA = stakedAmount(assetIdA, pool) | |
272 | 272 | let stakedAmountB = stakedAmount(assetIdB, pool) | |
273 | 273 | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
274 | 274 | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
275 | 275 | let shareSupply = getIntegerValue(pool, kShareAssetSupply) | |
276 | 276 | $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply) | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func getPoolAssets (pool) = { | |
281 | 281 | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
282 | 282 | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
283 | 283 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
284 | 284 | then unit | |
285 | 285 | else fromBase58String(strAssetIdA) | |
286 | 286 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
287 | 287 | then unit | |
288 | 288 | else fromBase58String(strAssetIdB) | |
289 | 289 | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
290 | 290 | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func getFeeParams (pool,caller) = { | |
295 | 295 | let feeDiscount = calculateFeeDiscount(caller) | |
296 | 296 | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
297 | 297 | let govFee = fraction(fee, 35, 100) | |
298 | 298 | let teamFee = fraction(fee, 10, 100) | |
299 | 299 | $Tuple3(fee, govFee, teamFee) | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = { | |
304 | - | let $ | |
305 | - | let pmtStrAssetIdA = $ | |
306 | - | let pmtAssetNameA = $ | |
307 | - | let pmtDecimalsA = $ | |
308 | - | let $ | |
309 | - | let pmtStrAssetIdB = $ | |
310 | - | let pmtAssetNameB = $ | |
311 | - | let pmtDecimalsB = $ | |
304 | + | let $t095629634 = getAssetInfo(pmtIdA) | |
305 | + | let pmtStrAssetIdA = $t095629634._1 | |
306 | + | let pmtAssetNameA = $t095629634._2 | |
307 | + | let pmtDecimalsA = $t095629634._3 | |
308 | + | let $t096399711 = getAssetInfo(pmtIdB) | |
309 | + | let pmtStrAssetIdB = $t096399711._1 | |
310 | + | let pmtAssetNameB = $t096399711._2 | |
311 | + | let pmtDecimalsB = $t096399711._3 | |
312 | 312 | let initial = ((balA + balB) == 0) | |
313 | - | let $ | |
313 | + | let $t0975410413 = if (initial) | |
314 | 314 | then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1)) | |
315 | 315 | else { | |
316 | 316 | let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA)) | |
317 | 317 | let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB)) | |
318 | 318 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
319 | 319 | then { | |
320 | 320 | let pmt = fraction(pmtA, balB, balA) | |
321 | 321 | $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA) | |
322 | 322 | } | |
323 | 323 | else { | |
324 | 324 | let pmt = fraction(pmtB, balA, balB) | |
325 | 325 | $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB) | |
326 | 326 | } | |
327 | 327 | } | |
328 | - | let pmtAmountA = $ | |
329 | - | let pmtAmountB = $ | |
330 | - | let change = $ | |
331 | - | let changeAssetId = $ | |
332 | - | let shareTokenRatio = $ | |
328 | + | let pmtAmountA = $t0975410413._1 | |
329 | + | let pmtAmountB = $t0975410413._2 | |
330 | + | let change = $t0975410413._3 | |
331 | + | let changeAssetId = $t0975410413._4 | |
332 | + | let shareTokenRatio = $t0975410413._5 | |
333 | 333 | let shareTokenToPayAmount = if (initial) | |
334 | 334 | then { | |
335 | 335 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
336 | 336 | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
337 | 337 | } | |
338 | 338 | else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16)) | |
339 | 339 | $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId)) | |
344 | 344 | then { | |
345 | 345 | let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee) | |
346 | - | let $ | |
347 | - | let amountWithoutFee = $ | |
348 | - | let amountWithFee = $ | |
349 | - | let governanceReward = $ | |
350 | - | let tReward = $ | |
346 | + | let $t01127811425 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee) | |
347 | + | let amountWithoutFee = $t01127811425._1 | |
348 | + | let amountWithFee = $t01127811425._2 | |
349 | + | let governanceReward = $t01127811425._3 | |
350 | + | let tReward = $t01127811425._4 | |
351 | 351 | let balanceAVirt = (balA + virtPayAmount) | |
352 | 352 | let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward) | |
353 | 353 | let newBalanceA = (balA + pmtAmount) | |
354 | 354 | let newBalanceB = ((balB - governanceReward) - tReward) | |
355 | 355 | let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt)) | |
356 | 356 | let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt)) | |
357 | 357 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
358 | - | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
358 | + | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
359 | 359 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
360 | 360 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss) | |
361 | 361 | } | |
362 | 362 | else { | |
363 | 363 | let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee) | |
364 | - | let $ | |
365 | - | let amountWithoutFee = $ | |
366 | - | let amountWithFee = $ | |
367 | - | let governanceReward = $ | |
368 | - | let tReward = $ | |
364 | + | let $t01246912616 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee) | |
365 | + | let amountWithoutFee = $t01246912616._1 | |
366 | + | let amountWithFee = $t01246912616._2 | |
367 | + | let governanceReward = $t01246912616._3 | |
368 | + | let tReward = $t01246912616._4 | |
369 | 369 | let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward) | |
370 | 370 | let balanceBVirt = (balB + virtPayAmount) | |
371 | 371 | let newBalanceA = ((balA - governanceReward) - tReward) | |
372 | 372 | let newBalanceB = (balB + pmtAmount) | |
373 | 373 | let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt)) | |
374 | 374 | let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt)) | |
375 | 375 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
376 | - | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
376 | + | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
377 | 377 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
378 | 378 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = { | |
383 | - | let $ | |
384 | - | let lpTwoAmount = $ | |
385 | - | let change = $ | |
386 | - | let changeAssetId = $ | |
387 | - | let pmtAmountA = $ | |
388 | - | let pmtAmountB = $ | |
383 | + | let $t01378313931 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply) | |
384 | + | let lpTwoAmount = $t01378313931._1 | |
385 | + | let change = $t01378313931._2 | |
386 | + | let changeAssetId = $t01378313931._3 | |
387 | + | let pmtAmountA = $t01378313931._4 | |
388 | + | let pmtAmountB = $t01378313931._5 | |
389 | 389 | if ((change > 0)) | |
390 | 390 | then { | |
391 | - | let $ | |
392 | - | let lpOne = $ | |
393 | - | let newBalanceA = $ | |
394 | - | let newBalanceB = $ | |
395 | - | let governanceReward = $ | |
396 | - | let tReward = $ | |
397 | - | let gId = $ | |
398 | - | let loss = $ | |
391 | + | let $t01396314198 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
392 | + | let lpOne = $t01396314198._1 | |
393 | + | let newBalanceA = $t01396314198._2 | |
394 | + | let newBalanceB = $t01396314198._3 | |
395 | + | let governanceReward = $t01396314198._4 | |
396 | + | let tReward = $t01396314198._5 | |
397 | + | let gId = $t01396314198._6 | |
398 | + | let loss = $t01396314198._7 | |
399 | 399 | $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId) | |
400 | 400 | } | |
401 | 401 | else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit) | |
402 | 402 | } | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
407 | - | let $ | |
408 | - | let strAssetIdA = $ | |
409 | - | let strAssetIdB = $ | |
410 | - | let assetIdA = $ | |
411 | - | let assetIdB = $ | |
412 | - | let shareAssetId = $ | |
413 | - | let $ | |
414 | - | let balA = $ | |
415 | - | let balB = $ | |
416 | - | let accBalA = $ | |
417 | - | let accBalB = $ | |
418 | - | let lpSupply = $ | |
407 | + | let $t01453414624 = getPoolAssets(i.caller) | |
408 | + | let strAssetIdA = $t01453414624._1 | |
409 | + | let strAssetIdB = $t01453414624._2 | |
410 | + | let assetIdA = $t01453414624._3 | |
411 | + | let assetIdB = $t01453414624._4 | |
412 | + | let shareAssetId = $t01453414624._5 | |
413 | + | let $t01462914721 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
414 | + | let balA = $t01462914721._1 | |
415 | + | let balB = $t01462914721._2 | |
416 | + | let accBalA = $t01462914721._3 | |
417 | + | let accBalB = $t01462914721._4 | |
418 | + | let lpSupply = $t01462914721._5 | |
419 | 419 | let pmtA = parseIntValue(args[0]) | |
420 | 420 | let pmtB = parseIntValue(args[1]) | |
421 | 421 | let virtGetMinAmount = parseIntValue(args[2]) | |
422 | - | let $ | |
423 | - | let fee = $ | |
424 | - | let govFee = $ | |
425 | - | let teamFee = $ | |
426 | - | let $ | |
427 | - | let lp = $ | |
428 | - | let loss = $ | |
429 | - | let newBalanceA = $ | |
430 | - | let newBalanceB = $ | |
431 | - | let governanceReward = $ | |
432 | - | let tReward = $ | |
433 | - | let aId = $ | |
422 | + | let $t01485514922 = getFeeParams(i.caller, i.originCaller) | |
423 | + | let fee = $t01485514922._1 | |
424 | + | let govFee = $t01485514922._2 | |
425 | + | let teamFee = $t01485514922._3 | |
426 | + | let $t01492715119 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
427 | + | let lp = $t01492715119._1 | |
428 | + | let loss = $t01492715119._2 | |
429 | + | let newBalanceA = $t01492715119._3 | |
430 | + | let newBalanceB = $t01492715119._4 | |
431 | + | let governanceReward = $t01492715119._5 | |
432 | + | let tReward = $t01492715119._6 | |
433 | + | let aId = $t01492715119._7 | |
434 | 434 | $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId])) | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(i) | |
440 | 440 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
441 | - | let $ | |
442 | - | let strAssetIdA = $ | |
443 | - | let strAssetIdB = $ | |
444 | - | let assetIdA = $ | |
445 | - | let assetIdB = $ | |
446 | - | let shareAssetId = $ | |
447 | - | let $ | |
448 | - | let balanceA = $ | |
449 | - | let balanceB = $ | |
450 | - | let accountBalanceA = $ | |
451 | - | let accountBalanceB = $ | |
452 | - | let shareAssetSupply = $ | |
441 | + | let $t01534615436 = getPoolAssets(i.caller) | |
442 | + | let strAssetIdA = $t01534615436._1 | |
443 | + | let strAssetIdB = $t01534615436._2 | |
444 | + | let assetIdA = $t01534615436._3 | |
445 | + | let assetIdB = $t01534615436._4 | |
446 | + | let shareAssetId = $t01534615436._5 | |
447 | + | let $t01544115565 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
448 | + | let balanceA = $t01544115565._1 | |
449 | + | let balanceB = $t01544115565._2 | |
450 | + | let accountBalanceA = $t01544115565._3 | |
451 | + | let accountBalanceB = $t01544115565._4 | |
452 | + | let shareAssetSupply = $t01544115565._5 | |
453 | 453 | let withdrawAmount = parseIntValue(args[0]) | |
454 | - | let $ | |
454 | + | let $t01561915781 = if ((size(args) == 3)) | |
455 | 455 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
456 | 456 | else $Tuple2(balanceA, balanceB) | |
457 | - | let balA = $ | |
458 | - | let balB = $ | |
457 | + | let balA = $t01561915781._1 | |
458 | + | let balB = $t01561915781._2 | |
459 | 459 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
460 | 460 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
461 | 461 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | ||
466 | 466 | @Callable(i) | |
467 | 467 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
468 | 468 | let caller = Address(callerBytes) | |
469 | - | let $ | |
470 | - | let pmtAmountA = $ | |
471 | - | let pmtAssetIdA = $ | |
472 | - | let $ | |
473 | - | let pmtAmountB = $ | |
474 | - | let pmtAssetIdB = $ | |
469 | + | let $t01613616214 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
470 | + | let pmtAmountA = $t01613616214._1 | |
471 | + | let pmtAssetIdA = $t01613616214._2 | |
472 | + | let $t01621916297 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
473 | + | let pmtAmountB = $t01621916297._1 | |
474 | + | let pmtAssetIdB = $t01621916297._2 | |
475 | 475 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
476 | 476 | then throw("Only admin can call this function") | |
477 | 477 | else if ((size(args) != 1)) | |
478 | 478 | then throw("Wrong args size") | |
479 | 479 | else if (isDefined(getBoolean(caller, kActive))) | |
480 | 480 | then throw("DApp is already active") | |
481 | 481 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
482 | 482 | then throw("Assets must be different") | |
483 | 483 | else { | |
484 | - | let $ | |
485 | - | let pmtStrAssetIdA = $ | |
486 | - | let pmtAssetNameA = $ | |
487 | - | let pmtDecimalsA = $ | |
488 | - | let $ | |
489 | - | let pmtStrAssetIdB = $ | |
490 | - | let pmtAssetNameB = $ | |
491 | - | let pmtDecimalsB = $ | |
484 | + | let $t01673216809 = getAssetInfo(pmtAssetIdA) | |
485 | + | let pmtStrAssetIdA = $t01673216809._1 | |
486 | + | let pmtAssetNameA = $t01673216809._2 | |
487 | + | let pmtDecimalsA = $t01673216809._3 | |
488 | + | let $t01681816895 = getAssetInfo(pmtAssetIdB) | |
489 | + | let pmtStrAssetIdB = $t01681816895._1 | |
490 | + | let pmtAssetNameB = $t01681816895._2 | |
491 | + | let pmtDecimalsB = $t01681816895._3 | |
492 | 492 | let firstHarvest = (args[0] == "true") | |
493 | 493 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
494 | 494 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
495 | 495 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
496 | 496 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
497 | 497 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
498 | 498 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
499 | 499 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
500 | 500 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
501 | 501 | let shareIssueId = calculateAssetId(shareIssue) | |
502 | 502 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
503 | 503 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
504 | 504 | else 0 | |
505 | 505 | if ((stake1 == stake1)) | |
506 | 506 | then { | |
507 | 507 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
508 | 508 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
509 | 509 | else 0 | |
510 | 510 | if ((stake2 == stake2)) | |
511 | 511 | then { | |
512 | 512 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)] | |
513 | 513 | if (firstHarvest) | |
514 | 514 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
515 | 515 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
516 | 516 | } | |
517 | 517 | else throw("Strict value is not equal to itself.") | |
518 | 518 | } | |
519 | 519 | else throw("Strict value is not equal to itself.") | |
520 | 520 | } | |
521 | 521 | } | |
522 | 522 | ||
523 | 523 | ||
524 | 524 | ||
525 | 525 | @Callable(i) | |
526 | 526 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
527 | 527 | let caller = Address(callerBytes) | |
528 | - | let $ | |
529 | - | let amtAssetA = $ | |
530 | - | let amtAssetB = $ | |
531 | - | let assetIdAStr = $ | |
532 | - | let assetIdBStr = $ | |
533 | - | let firstHarvest = $ | |
528 | + | let $t01911619316 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
529 | + | let amtAssetA = $t01911619316._1 | |
530 | + | let amtAssetB = $t01911619316._2 | |
531 | + | let assetIdAStr = $t01911619316._3 | |
532 | + | let assetIdBStr = $t01911619316._4 | |
533 | + | let firstHarvest = $t01911619316._5 | |
534 | 534 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
535 | 535 | then throw("Only admin can call this function") | |
536 | 536 | else if ((size(args) != 5)) | |
537 | 537 | then throw("Wrong args size") | |
538 | 538 | else if (isDefined(getBoolean(caller, kActive))) | |
539 | 539 | then throw("DApp is already active") | |
540 | 540 | else if ((assetIdAStr == assetIdBStr)) | |
541 | 541 | then throw("Assets must be different") | |
542 | 542 | else { | |
543 | - | let $ | |
544 | - | let pmtStrAssetIdA = $ | |
545 | - | let pmtAssetNameA = $ | |
546 | - | let pmtDecimalsA = $ | |
547 | - | let $ | |
548 | - | let pmtStrAssetIdB = $ | |
549 | - | let pmtAssetNameB = $ | |
550 | - | let pmtDecimalsB = $ | |
543 | + | let $t01975119828 = getAssetInfo(assetIdAStr) | |
544 | + | let pmtStrAssetIdA = $t01975119828._1 | |
545 | + | let pmtAssetNameA = $t01975119828._2 | |
546 | + | let pmtDecimalsA = $t01975119828._3 | |
547 | + | let $t01983719914 = getAssetInfo(assetIdBStr) | |
548 | + | let pmtStrAssetIdB = $t01983719914._1 | |
549 | + | let pmtAssetNameB = $t01983719914._2 | |
550 | + | let pmtDecimalsB = $t01983719914._3 | |
551 | 551 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
552 | 552 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
553 | 553 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
554 | 554 | let shareInitialSupply = 0 | |
555 | 555 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
556 | 556 | let shareIssueId = calculateAssetId(shareIssue) | |
557 | 557 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)] | |
558 | 558 | if (firstHarvest) | |
559 | 559 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
560 | 560 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(i) | |
567 | 567 | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
568 | 568 | then throw("Only admin can call this function") | |
569 | 569 | else if ((size(args) != 1)) | |
570 | 570 | then throw("Wrong args size") | |
571 | 571 | else { | |
572 | 572 | let shareLimit = parseIntValue(args[0]) | |
573 | 573 | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
574 | 574 | })) | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(i) | |
579 | 579 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
580 | 580 | let caller = Address(callerBytes) | |
581 | - | let $ | |
582 | - | let pmtAmount = $ | |
583 | - | let pmtAssetId = $ | |
581 | + | let $t02234022416 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
582 | + | let pmtAmount = $t02234022416._1 | |
583 | + | let pmtAssetId = $t02234022416._2 | |
584 | 584 | let minAmountToReceive = parseIntValue(args[0]) | |
585 | - | let $ | |
586 | - | let strAssetIdA = $ | |
587 | - | let strAssetIdB = $ | |
588 | - | let assetIdA = $ | |
589 | - | let assetIdB = $ | |
590 | - | let $ | |
591 | - | let balanceA = $ | |
592 | - | let balanceB = $ | |
593 | - | let accountBalanceA = $ | |
594 | - | let accountBalanceB = $ | |
585 | + | let $t02248122557 = getPoolAssets(i.caller) | |
586 | + | let strAssetIdA = $t02248122557._1 | |
587 | + | let strAssetIdB = $t02248122557._2 | |
588 | + | let assetIdA = $t02248122557._3 | |
589 | + | let assetIdB = $t02248122557._4 | |
590 | + | let $t02256622672 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
591 | + | let balanceA = $t02256622672._1 | |
592 | + | let balanceB = $t02256622672._2 | |
593 | + | let accountBalanceA = $t02256622672._3 | |
594 | + | let accountBalanceB = $t02256622672._4 | |
595 | 595 | if ((size(args) != 1)) | |
596 | 596 | then throw("Wrong args size") | |
597 | 597 | else if (if ((balanceA == 0)) | |
598 | 598 | then true | |
599 | 599 | else (balanceB == 0)) | |
600 | 600 | then throw("Can't exchange with zero balance") | |
601 | 601 | else if ((0 >= minAmountToReceive)) | |
602 | 602 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
603 | 603 | else if ((size(pAmounts) != 1)) | |
604 | 604 | then throw("One attached payment expected") | |
605 | 605 | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
606 | 606 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
607 | 607 | else if (if ((balanceA > accountBalanceA)) | |
608 | 608 | then true | |
609 | 609 | else (balanceB > accountBalanceB)) | |
610 | 610 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
611 | 611 | else { | |
612 | - | let $ | |
613 | - | let fee = $ | |
614 | - | let govFee = $ | |
615 | - | let teamFee = $ | |
616 | - | let $ | |
612 | + | let $t02357223639 = getFeeParams(i.caller, i.originCaller) | |
613 | + | let fee = $t02357223639._1 | |
614 | + | let govFee = $t02357223639._2 | |
615 | + | let teamFee = $t02357223639._3 | |
616 | + | let $t02365224003 = if ((pmtAssetId == assetIdA)) | |
617 | 617 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
618 | 618 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
619 | - | let amountWithoutFee = $ | |
620 | - | let amountWithFee = $ | |
621 | - | let governanceReward = $ | |
622 | - | let teamReward = $ | |
623 | - | let $ | |
619 | + | let amountWithoutFee = $t02365224003._1 | |
620 | + | let amountWithFee = $t02365224003._2 | |
621 | + | let governanceReward = $t02365224003._3 | |
622 | + | let teamReward = $t02365224003._4 | |
623 | + | let $t02401724352 = if ((pmtAssetId == assetIdA)) | |
624 | 624 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
625 | 625 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
626 | - | let newBalanceA = $ | |
627 | - | let newBalanceB = $ | |
628 | - | let assetIdSend = $ | |
629 | - | let $ | |
626 | + | let newBalanceA = $t02401724352._1 | |
627 | + | let newBalanceB = $t02401724352._2 | |
628 | + | let assetIdSend = $t02401724352._3 | |
629 | + | let $t02436624626 = if ((pmtAssetId == assetIdA)) | |
630 | 630 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
631 | 631 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
632 | - | let stakeAmountA = $ | |
633 | - | let stakeAmountB = $ | |
632 | + | let stakeAmountA = $t02436624626._1 | |
633 | + | let stakeAmountB = $t02436624626._2 | |
634 | 634 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
635 | 635 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
636 | 636 | else 0 | |
637 | 637 | if ((stake1 == stake1)) | |
638 | 638 | then { | |
639 | 639 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
640 | 640 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
641 | 641 | else 0 | |
642 | 642 | if ((stake2 == stake2)) | |
643 | 643 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
644 | 644 | else throw("Strict value is not equal to itself.") | |
645 | 645 | } | |
646 | 646 | else throw("Strict value is not equal to itself.") | |
647 | 647 | } | |
648 | 648 | }))) | |
649 | 649 | ||
650 | 650 | ||
651 | 651 | ||
652 | 652 | @Callable(i) | |
653 | 653 | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
654 | 654 | let caller = Address(callerBytes) | |
655 | 655 | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
656 | 656 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
657 | 657 | let stakeFarming = (args[0] == "true") | |
658 | 658 | let lockType = parseIntValue(args[1]) | |
659 | - | let $ | |
660 | - | let strAssetIdA = $ | |
661 | - | let strAssetIdB = $ | |
662 | - | let assetIdA = $ | |
663 | - | let assetIdB = $ | |
664 | - | let shareAssetId = $ | |
665 | - | let $ | |
666 | - | let balanceA = $ | |
667 | - | let balanceB = $ | |
668 | - | let accountBalanceA = $ | |
669 | - | let accountBalanceB = $ | |
670 | - | let shareAssetSupply = $ | |
659 | + | let $t02594126031 = getPoolAssets(i.caller) | |
660 | + | let strAssetIdA = $t02594126031._1 | |
661 | + | let strAssetIdB = $t02594126031._2 | |
662 | + | let assetIdA = $t02594126031._3 | |
663 | + | let assetIdB = $t02594126031._4 | |
664 | + | let shareAssetId = $t02594126031._5 | |
665 | + | let $t02604026164 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
666 | + | let balanceA = $t02604026164._1 | |
667 | + | let balanceB = $t02604026164._2 | |
668 | + | let accountBalanceA = $t02604026164._3 | |
669 | + | let accountBalanceB = $t02604026164._4 | |
670 | + | let shareAssetSupply = $t02604026164._5 | |
671 | 671 | if ((size(args) != 2)) | |
672 | 672 | then throw("Wrong args size") | |
673 | 673 | else if (if ((size(pAmounts) != 2)) | |
674 | 674 | then (size(pAmounts) != 3) | |
675 | 675 | else false) | |
676 | 676 | then throw("Two or three payments expected") | |
677 | 677 | else if (if ((pmtAssetIdA != assetIdA)) | |
678 | 678 | then true | |
679 | 679 | else (pmtAssetIdB != assetIdB)) | |
680 | 680 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
681 | 681 | else if (if ((balanceA > accountBalanceA)) | |
682 | 682 | then true | |
683 | 683 | else (balanceB > accountBalanceB)) | |
684 | 684 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3)) | |
685 | 685 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
686 | 686 | then unit | |
687 | 687 | else pAssetIds[2], pAmounts[2])] | |
688 | 688 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
689 | 689 | else { | |
690 | - | let $ | |
691 | - | let shareTokenToPayAmount = $ | |
692 | - | let change = $ | |
693 | - | let changeAssetId = $ | |
694 | - | let pmtAmountA = $ | |
695 | - | let pmtAmountB = $ | |
690 | + | let $t02710127299 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
691 | + | let shareTokenToPayAmount = $t02710127299._1 | |
692 | + | let change = $t02710127299._2 | |
693 | + | let changeAssetId = $t02710127299._3 | |
694 | + | let pmtAmountA = $t02710127299._4 | |
695 | + | let pmtAmountB = $t02710127299._5 | |
696 | 696 | if ((shareTokenToPayAmount == 0)) | |
697 | 697 | then throw("Too small amount to replenish") | |
698 | 698 | else if ((0 > change)) | |
699 | 699 | then throw("Change < 0") | |
700 | 700 | else { | |
701 | 701 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
702 | 702 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil) | |
703 | 703 | else 0 | |
704 | 704 | if ((stake1 == stake1)) | |
705 | 705 | then { | |
706 | 706 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
707 | 707 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil) | |
708 | 708 | else 0 | |
709 | 709 | if ((stake2 == stake2)) | |
710 | 710 | then { | |
711 | 711 | let shareTokenST = if (stakeFarming) | |
712 | 712 | then { | |
713 | 713 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
714 | 714 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
715 | 715 | then unit | |
716 | 716 | else pAssetIds[2], pAmounts[2])] | |
717 | 717 | else nil)) | |
718 | 718 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
719 | 719 | if ((reissue == reissue)) | |
720 | 720 | then { | |
721 | 721 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
722 | 722 | if ((stake3 == stake3)) | |
723 | 723 | then nil | |
724 | 724 | else throw("Strict value is not equal to itself.") | |
725 | 725 | } | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
727 | 727 | } | |
728 | 728 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
729 | 729 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
730 | 730 | } | |
731 | 731 | else throw("Strict value is not equal to itself.") | |
732 | 732 | } | |
733 | 733 | else throw("Strict value is not equal to itself.") | |
734 | 734 | } | |
735 | 735 | } | |
736 | 736 | }))) | |
737 | 737 | ||
738 | 738 | ||
739 | 739 | ||
740 | 740 | @Callable(i) | |
741 | 741 | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
742 | 742 | let caller = Address(callerBytes) | |
743 | 743 | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
744 | 744 | let pmtAmount = pAmounts[0] | |
745 | 745 | let virtGetMinAmount = parseIntValue(args[0]) | |
746 | 746 | let stakeFarming = (args[1] == "true") | |
747 | 747 | let lockType = parseIntValue(args[2]) | |
748 | - | let $ | |
749 | - | let strAssetIdA = $ | |
750 | - | let strAssetIdB = $ | |
751 | - | let assetIdA = $ | |
752 | - | let assetIdB = $ | |
753 | - | let shareAssetId = $ | |
754 | - | let $ | |
755 | - | let balanceA = $ | |
756 | - | let balanceB = $ | |
757 | - | let accountBalanceA = $ | |
758 | - | let accountBalanceB = $ | |
759 | - | let shareAssetSupply = $ | |
748 | + | let $t02955829648 = getPoolAssets(i.caller) | |
749 | + | let strAssetIdA = $t02955829648._1 | |
750 | + | let strAssetIdB = $t02955829648._2 | |
751 | + | let assetIdA = $t02955829648._3 | |
752 | + | let assetIdB = $t02955829648._4 | |
753 | + | let shareAssetId = $t02955829648._5 | |
754 | + | let $t02965329777 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
755 | + | let balanceA = $t02965329777._1 | |
756 | + | let balanceB = $t02965329777._2 | |
757 | + | let accountBalanceA = $t02965329777._3 | |
758 | + | let accountBalanceB = $t02965329777._4 | |
759 | + | let shareAssetSupply = $t02965329777._5 | |
760 | 760 | let initial = ((balanceA + balanceB) == 0) | |
761 | 761 | if ((size(args) != 3)) | |
762 | 762 | then throw("Wrong args size") | |
763 | 763 | else if (if ((size(pAmounts) != 1)) | |
764 | 764 | then (size(pAmounts) != 2) | |
765 | 765 | else false) | |
766 | 766 | then throw("Two or one attached assets expected") | |
767 | 767 | else if (if ((pmtAssetId != assetIdA)) | |
768 | 768 | then (pmtAssetId != assetIdB) | |
769 | 769 | else false) | |
770 | 770 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
771 | 771 | else if (initial) | |
772 | 772 | then throw("For initial exchanger you need to use two tokens") | |
773 | 773 | else if (if ((balanceA > accountBalanceA)) | |
774 | 774 | then true | |
775 | 775 | else (balanceB > accountBalanceB)) | |
776 | 776 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2)) | |
777 | 777 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
778 | 778 | then unit | |
779 | 779 | else pAssetIds[2], pAmounts[2])] | |
780 | 780 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
781 | 781 | else { | |
782 | - | let $ | |
783 | - | let fee = $ | |
784 | - | let govFee = $ | |
785 | - | let teamFee = $ | |
786 | - | let $ | |
787 | - | let pmtAssetIdStr = $ | |
788 | - | let pmtAssetIdName = $ | |
789 | - | let $ | |
790 | - | let shareTokenToPayAmount = $ | |
791 | - | let newBalanceA = $ | |
792 | - | let newBalanceB = $ | |
793 | - | let govReward = $ | |
794 | - | let teamReward = $ | |
795 | - | let govRewardAsset = $ | |
782 | + | let $t03068930756 = getFeeParams(i.caller, i.originCaller) | |
783 | + | let fee = $t03068930756._1 | |
784 | + | let govFee = $t03068930756._2 | |
785 | + | let teamFee = $t03068930756._3 | |
786 | + | let $t03076530827 = getAssetInfo(pmtAssetId) | |
787 | + | let pmtAssetIdStr = $t03076530827._1 | |
788 | + | let pmtAssetIdName = $t03076530827._2 | |
789 | + | let $t03084531091 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
790 | + | let shareTokenToPayAmount = $t03084531091._1 | |
791 | + | let newBalanceA = $t03084531091._2 | |
792 | + | let newBalanceB = $t03084531091._3 | |
793 | + | let govReward = $t03084531091._4 | |
794 | + | let teamReward = $t03084531091._5 | |
795 | + | let govRewardAsset = $t03084531091._6 | |
796 | 796 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
797 | 797 | then strAssetIdA | |
798 | 798 | else strAssetIdB | |
799 | 799 | if ((shareTokenToPayAmount == 0)) | |
800 | 800 | then throw("Too small amount to replenish") | |
801 | 801 | else { | |
802 | 802 | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
803 | 803 | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
804 | 804 | else 0 | |
805 | 805 | if ((stake1 == stake1)) | |
806 | 806 | then { | |
807 | 807 | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
808 | 808 | then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil) | |
809 | 809 | else 0 | |
810 | 810 | if ((stake2 == stake2)) | |
811 | 811 | then { | |
812 | 812 | let shareTokenST = if (stakeFarming) | |
813 | 813 | then { | |
814 | 814 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
815 | 815 | then [AttachedPayment(if ((pAssetIds[1] == base58'')) | |
816 | 816 | then unit | |
817 | 817 | else pAssetIds[1], pAmounts[1])] | |
818 | 818 | else nil)) | |
819 | 819 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
820 | 820 | if ((reissue == reissue)) | |
821 | 821 | then { | |
822 | 822 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
823 | 823 | if ((stake3 == stake3)) | |
824 | 824 | then nil | |
825 | 825 | else throw("Strict value is not equal to itself.") | |
826 | 826 | } | |
827 | 827 | else throw("Strict value is not equal to itself.") | |
828 | 828 | } | |
829 | 829 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
830 | 830 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil)) | |
831 | 831 | } | |
832 | 832 | else throw("Strict value is not equal to itself.") | |
833 | 833 | } | |
834 | 834 | else throw("Strict value is not equal to itself.") | |
835 | 835 | } | |
836 | 836 | } | |
837 | 837 | }))) | |
838 | 838 | ||
839 | 839 | ||
840 | 840 | ||
841 | 841 | @Callable(i) | |
842 | 842 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
843 | 843 | let caller = Address(callerBytes) | |
844 | - | let $ | |
845 | - | let strAssetIdA = $ | |
846 | - | let strAssetIdB = $ | |
847 | - | let assetIdA = $ | |
848 | - | let assetIdB = $ | |
849 | - | let shareAssetId = $ | |
850 | - | let $ | |
851 | - | let balanceA = $ | |
852 | - | let balanceB = $ | |
853 | - | let accountBalanceA = $ | |
854 | - | let accountBalanceB = $ | |
855 | - | let shareAssetSupply = $ | |
856 | - | let $ | |
844 | + | let $t03315933249 = getPoolAssets(i.caller) | |
845 | + | let strAssetIdA = $t03315933249._1 | |
846 | + | let strAssetIdB = $t03315933249._2 | |
847 | + | let assetIdA = $t03315933249._3 | |
848 | + | let assetIdB = $t03315933249._4 | |
849 | + | let shareAssetId = $t03315933249._5 | |
850 | + | let $t03325833382 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
851 | + | let balanceA = $t03325833382._1 | |
852 | + | let balanceB = $t03325833382._2 | |
853 | + | let accountBalanceA = $t03325833382._3 | |
854 | + | let accountBalanceB = $t03325833382._4 | |
855 | + | let shareAssetSupply = $t03325833382._5 | |
856 | + | let $t03339133771 = if ((size(pAmounts) == 1)) | |
857 | 857 | then { | |
858 | 858 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
859 | 859 | if ((pAsset != shareAssetId)) | |
860 | 860 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
861 | 861 | else $Tuple2(pAmounts[0], pAsset) | |
862 | 862 | } | |
863 | 863 | else $Tuple2(0, shareAssetId) | |
864 | - | let pmtAmount = $ | |
865 | - | let pmtAssetId = $ | |
864 | + | let pmtAmount = $t03339133771._1 | |
865 | + | let pmtAssetId = $t03339133771._2 | |
866 | 866 | if ((size(args) != 1)) | |
867 | 867 | then throw("Wrong args size") | |
868 | 868 | else if ((size(pAmounts) > 1)) | |
869 | 869 | then throw("One attached payment expected") | |
870 | 870 | else if (if ((balanceA > accountBalanceA)) | |
871 | 871 | then true | |
872 | 872 | else (balanceB > accountBalanceB)) | |
873 | 873 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
874 | 874 | else { | |
875 | 875 | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
876 | 876 | let unlock = if ((unlockAmount > 0)) | |
877 | 877 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
878 | 878 | else 0 | |
879 | 879 | if ((unlock == unlock)) | |
880 | 880 | then { | |
881 | 881 | let withdrawAmount = (pmtAmount + unlockAmount) | |
882 | 882 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
883 | 883 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
884 | 884 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
885 | 885 | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
886 | 886 | else 0 | |
887 | 887 | if ((stake1 == stake1)) | |
888 | 888 | then { | |
889 | 889 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
890 | 890 | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
891 | 891 | else 0 | |
892 | 892 | if ((stake2 == stake2)) | |
893 | 893 | then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil)) | |
894 | 894 | else throw("Strict value is not equal to itself.") | |
895 | 895 | } | |
896 | 896 | else throw("Strict value is not equal to itself.") | |
897 | 897 | } | |
898 | 898 | else throw("Strict value is not equal to itself.") | |
899 | 899 | } | |
900 | 900 | })) | |
901 | 901 | ||
902 | 902 | ||
903 | 903 | ||
904 | 904 | @Callable(i) | |
905 | 905 | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
906 | 906 | let caller = Address(callerBytes) | |
907 | 907 | let withdrawAsset = if ((args[0] == "")) | |
908 | 908 | then unit | |
909 | 909 | else fromBase58String(args[0]) | |
910 | - | let $ | |
911 | - | let strAssetIdA = $ | |
912 | - | let strAssetIdB = $ | |
913 | - | let assetIdA = $ | |
914 | - | let assetIdB = $ | |
915 | - | let shareAssetId = $ | |
916 | - | let $ | |
917 | - | let balanceA = $ | |
918 | - | let balanceB = $ | |
919 | - | let accountBalanceA = $ | |
920 | - | let accountBalanceB = $ | |
921 | - | let shareAssetSupply = $ | |
922 | - | let $ | |
910 | + | let $t03598936079 = getPoolAssets(i.caller) | |
911 | + | let strAssetIdA = $t03598936079._1 | |
912 | + | let strAssetIdB = $t03598936079._2 | |
913 | + | let assetIdA = $t03598936079._3 | |
914 | + | let assetIdB = $t03598936079._4 | |
915 | + | let shareAssetId = $t03598936079._5 | |
916 | + | let $t03608836212 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
917 | + | let balanceA = $t03608836212._1 | |
918 | + | let balanceB = $t03608836212._2 | |
919 | + | let accountBalanceA = $t03608836212._3 | |
920 | + | let accountBalanceB = $t03608836212._4 | |
921 | + | let shareAssetSupply = $t03608836212._5 | |
922 | + | let $t03622136573 = if ((size(pAmounts) == 1)) | |
923 | 923 | then { | |
924 | 924 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
925 | 925 | if ((pAsset != shareAssetId)) | |
926 | 926 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
927 | 927 | else $Tuple2(pAmounts[0], pAsset) | |
928 | 928 | } | |
929 | 929 | else $Tuple2(0, shareAssetId) | |
930 | - | let pmtAmount = $ | |
931 | - | let pmtAssetId = $ | |
930 | + | let pmtAmount = $t03622136573._1 | |
931 | + | let pmtAssetId = $t03622136573._2 | |
932 | 932 | let virtMinToRecive = parseIntValue(args[1]) | |
933 | 933 | if ((size(args) != 3)) | |
934 | 934 | then throw("Wrong args size") | |
935 | 935 | else if ((size(pAmounts) > 1)) | |
936 | 936 | then throw("One attached payment expected") | |
937 | 937 | else if ((pmtAssetId != shareAssetId)) | |
938 | 938 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
939 | 939 | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
940 | 940 | then throw("Incorrect withdraw asset.") | |
941 | 941 | else if (if ((balanceA > accountBalanceA)) | |
942 | 942 | then true | |
943 | 943 | else (balanceB > accountBalanceB)) | |
944 | 944 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
945 | 945 | else { | |
946 | 946 | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
947 | 947 | let unlock = if ((unlockAmount > 0)) | |
948 | 948 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
949 | 949 | else 0 | |
950 | 950 | if ((unlock == unlock)) | |
951 | 951 | then { | |
952 | 952 | let withdrawAmount = (pmtAmount + unlockAmount) | |
953 | 953 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
954 | 954 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
955 | - | let $ | |
956 | - | let fee = $ | |
957 | - | let govFee = $ | |
958 | - | let teamFee = $ | |
959 | - | let $ | |
955 | + | let $t03784037907 = getFeeParams(i.caller, i.originCaller) | |
956 | + | let fee = $t03784037907._1 | |
957 | + | let govFee = $t03784037907._2 | |
958 | + | let teamFee = $t03784037907._3 | |
959 | + | let $t03792038334 = if ((withdrawAsset == assetIdA)) | |
960 | 960 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
961 | 961 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
962 | - | let amountWithoutFee = $ | |
963 | - | let amountWithFee = $ | |
964 | - | let governanceReward = $ | |
965 | - | let teamReward = $ | |
966 | - | let $ | |
962 | + | let amountWithoutFee = $t03792038334._1 | |
963 | + | let amountWithFee = $t03792038334._2 | |
964 | + | let governanceReward = $t03792038334._3 | |
965 | + | let teamReward = $t03792038334._4 | |
966 | + | let $t03834739657 = if ((withdrawAsset == assetIdA)) | |
967 | 967 | then { | |
968 | 968 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
969 | 969 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
970 | 970 | else 0 | |
971 | 971 | if ((unstake == unstake)) | |
972 | 972 | then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
973 | 973 | else throw("Strict value is not equal to itself.") | |
974 | 974 | } | |
975 | 975 | else { | |
976 | 976 | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
977 | 977 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil) | |
978 | 978 | else 0 | |
979 | 979 | if ((unstake == unstake)) | |
980 | 980 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
981 | 981 | else throw("Strict value is not equal to itself.") | |
982 | 982 | } | |
983 | - | let newBalanceA = $ | |
984 | - | let newBalanceB = $ | |
985 | - | let govRewardAssetId = $ | |
986 | - | let userTransfer = $ | |
983 | + | let newBalanceA = $t03834739657._1 | |
984 | + | let newBalanceB = $t03834739657._2 | |
985 | + | let govRewardAssetId = $t03834739657._3 | |
986 | + | let userTransfer = $t03834739657._4 | |
987 | 987 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
988 | 988 | } | |
989 | 989 | else throw("Strict value is not equal to itself.") | |
990 | 990 | } | |
991 | 991 | }))) | |
992 | 992 | ||
993 | 993 | ||
994 | 994 | ||
995 | 995 | @Callable(i) | |
996 | 996 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
997 | - | let $ | |
998 | - | let strAssetIdA = $ | |
999 | - | let strAssetIdB = $ | |
1000 | - | let assetIdA = $ | |
1001 | - | let assetIdB = $ | |
997 | + | let $t04041740493 = getPoolAssets(i.caller) | |
998 | + | let strAssetIdA = $t04041740493._1 | |
999 | + | let strAssetIdB = $t04041740493._2 | |
1000 | + | let assetIdA = $t04041740493._3 | |
1001 | + | let assetIdB = $t04041740493._4 | |
1002 | 1002 | let claim = if (if ((assetIdA == USDN)) | |
1003 | 1003 | then true | |
1004 | 1004 | else (assetIdB == USDN)) | |
1005 | 1005 | then invoke(i.caller, "claimNetrinoRewards", nil, nil) | |
1006 | 1006 | else 0 | |
1007 | 1007 | if ((claim == claim)) | |
1008 | 1008 | then { | |
1009 | - | let $ | |
1010 | - | let balanceA = $ | |
1011 | - | let balanceB = $ | |
1012 | - | let accountBalanceA = $ | |
1013 | - | let accountBalanceB = $ | |
1009 | + | let $t04065340759 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1010 | + | let balanceA = $t04065340759._1 | |
1011 | + | let balanceB = $t04065340759._2 | |
1012 | + | let accountBalanceA = $t04065340759._3 | |
1013 | + | let accountBalanceB = $t04065340759._4 | |
1014 | 1014 | let amountEnrollA = (accountBalanceA - balanceA) | |
1015 | 1015 | let amountEnrollB = (accountBalanceB - balanceB) | |
1016 | 1016 | if ((size(args) != 0)) | |
1017 | 1017 | then throw("Wrong args size") | |
1018 | 1018 | else if ((moneyBoxAddress != i.originCaller)) | |
1019 | 1019 | then throw("Only the wallet can call this function") | |
1020 | 1020 | else if (if ((0 > amountEnrollA)) | |
1021 | 1021 | then true | |
1022 | 1022 | else (0 > amountEnrollB)) | |
1023 | 1023 | then suspend("Enroll amount negative") | |
1024 | 1024 | else if (if ((amountEnrollA == 0)) | |
1025 | 1025 | then (amountEnrollB == 0) | |
1026 | 1026 | else false) | |
1027 | 1027 | then throw("No money to take") | |
1028 | 1028 | else { | |
1029 | 1029 | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
1030 | 1030 | then (amountEnrollA > 0) | |
1031 | 1031 | else false) | |
1032 | 1032 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
1033 | 1033 | else 0 | |
1034 | 1034 | if ((stake1 == stake1)) | |
1035 | 1035 | then { | |
1036 | 1036 | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
1037 | 1037 | then (amountEnrollB > 0) | |
1038 | 1038 | else false) | |
1039 | 1039 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
1040 | 1040 | else 0 | |
1041 | 1041 | if ((stake2 == stake2)) | |
1042 | 1042 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
1043 | 1043 | else throw("Strict value is not equal to itself.") | |
1044 | 1044 | } | |
1045 | 1045 | else throw("Strict value is not equal to itself.") | |
1046 | 1046 | } | |
1047 | 1047 | } | |
1048 | 1048 | else throw("Strict value is not equal to itself.") | |
1049 | 1049 | })) | |
1050 | 1050 | ||
1051 | 1051 | ||
1052 | 1052 | @Verifier(tx) | |
1053 | 1053 | func verify () = { | |
1054 | 1054 | let multiSignedByAdmins = { | |
1055 | 1055 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1056 | 1056 | then 1 | |
1057 | 1057 | else 0 | |
1058 | 1058 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
1059 | 1059 | then 1 | |
1060 | 1060 | else 0 | |
1061 | 1061 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
1062 | 1062 | then 1 | |
1063 | 1063 | else 0 | |
1064 | 1064 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
1065 | 1065 | } | |
1066 | 1066 | multiSignedByAdmins | |
1067 | 1067 | } | |
1068 | 1068 |
github/deemru/w8io/026f985 487.48 ms ◑