tx · 2ncKbJVSaCNdMSyEP1LDW2uUiZ1Vr9UDobW9P9wvBZNh

3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA:  -0.03500000 Waves

2023.02.09 10:24 [2441796] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves

{ "type": 13, "id": "2ncKbJVSaCNdMSyEP1LDW2uUiZ1Vr9UDobW9P9wvBZNh", "fee": 3500000, "feeAssetId": null, "timestamp": 1675927496219, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "2zGKKzwMXcTRfqLNah3XLxmBuQcqj6Vf1ZcjdjRwBdSbZnewYxT9z5Fja2X51X5FjN1T2qbvYCfharxZLBpAChfa" ], "script": "base64:BgL2IwgCEgQKAgEEEgYKBAEEAQgSAwoBCBIDCgEIEgASBAoCAQQSBAoCAQQSAwoBARIAEgQKAggBEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJU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GQJYm9keUJ5dGVzCQCRAwIIBQJoZAZwcm9vZnMAAAUCaGYJAPQDAwgFAmhkCWJvZHlCeXRlcwkAkQMCCAUCaGQGcHJvb2ZzAAAFAmhm5gaJ+g==", "chainId": 84, "height": 2441796, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AeNiMkjVTU721fe1dH2THoSMPmvKkC4aHcHLj8ArnUeD Next: 5N6Nupq41km5BSEUTFgE2kbGessS7ZnNh5CR5ZiqoXJM Diff:
OldNewDifferences
545545 }
546546 }
547547
548- let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
549- let $t02294322990 = {
548+ let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
549+ let $t02298323030 = {
550550 let $l = arr
551551 let $s = size($l)
552552 let $acc0 = $Tuple2(s, unit)
556556
557557 func $f0_2 ($a,$i) = if (($i >= $s))
558558 then $a
559- else throw("List size exceeds 15")
559+ else throw("List size exceeds 25")
560560
561- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
561+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25)
562562 }
563- let d = $t02294322990._1
564- let found = $t02294322990._2
563+ let d = $t02298323030._1
564+ let found = $t02298323030._2
565565 if ((found != unit))
566566 then d
567567 else throw(("D calculation error, D = " + toString(d)))
581581 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
582582 let b = ((s + ((D * aPrecision) / ann)) - D)
583583 func calc (acc,cur) = {
584- let $t02349023510 = acc
585- let y = $t02349023510._1
586- let found = $t02349023510._2
584+ let $t02353023550 = acc
585+ let y = $t02353023550._1
586+ let found = $t02353023550._2
587587 if ((found != unit))
588588 then acc
589589 else {
596596 }
597597
598598 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
599- let $t02381723864 = {
599+ let $t02385723904 = {
600600 let $l = arr
601601 let $s = size($l)
602602 let $acc0 = $Tuple2(D, unit)
610610
611611 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
612612 }
613- let y = $t02381723864._1
614- let found = $t02381723864._2
613+ let y = $t02385723904._1
614+ let found = $t02385723904._2
615615 if ((found != unit))
616616 then y
617617 else throw(("Y calculation error, Y = " + toString(y)))
633633 then {
634634 let amBalance = getAccBalance(amId)
635635 let prBalance = getAccBalance(prId)
636- let $t02464725109 = if ((txId == ""))
636+ let $t02468725149 = if ((txId == ""))
637637 then $Tuple2(amBalance, prBalance)
638638 else if ((pmtAssetId == amId))
639639 then if ((pmtAmtRaw > amBalance))
644644 then throw("invalid payment amount")
645645 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
646646 else throw("wrong pmtAssetId")
647- let amBalanceOld = $t02464725109._1
648- let prBalanceOld = $t02464725109._2
649- let $t02511525291 = if ((pmtAssetId == amId))
647+ let amBalanceOld = $t02468725149._1
648+ let prBalanceOld = $t02468725149._2
649+ let $t02515525331 = if ((pmtAssetId == amId))
650650 then $Tuple2(pmtAmtRaw, 0)
651651 else if ((pmtAssetId == prId))
652652 then $Tuple2(0, pmtAmtRaw)
653653 else throw("invalid payment")
654- let amAmountRaw = $t02511525291._1
655- let prAmountRaw = $t02511525291._2
656- let $t02529525549 = if (withTakeFee)
654+ let amAmountRaw = $t02515525331._1
655+ let prAmountRaw = $t02515525331._2
656+ let $t02533525589 = if (withTakeFee)
657657 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
658658 else $Tuple3(amAmountRaw, prAmountRaw, 0)
659- let amAmount = $t02529525549._1
660- let prAmount = $t02529525549._2
661- let feeAmount = $t02529525549._3
659+ let amAmount = $t02533525589._1
660+ let prAmount = $t02533525589._2
661+ let feeAmount = $t02533525589._3
662662 let amBalanceNew = (amBalanceOld + amAmount)
663663 let prBalanceNew = (prBalanceOld + prAmount)
664664 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
704704 else {
705705 let amBalance = getAccBalance(amId)
706706 let prBalance = getAccBalance(prId)
707- let $t02755127662 = {
707+ let $t02759127702 = {
708708 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
709709 if ($isInstanceOf(@, "(Int, Int)"))
710710 then @
711711 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
712712 }
713- if (($t02755127662 == $t02755127662))
713+ if (($t02759127702 == $t02759127702))
714714 then {
715- let feeAmount = $t02755127662._2
716- let totalGet = $t02755127662._1
715+ let feeAmount = $t02759127702._2
716+ let totalGet = $t02759127702._1
717717 let totalAmount = if (if ((minOutAmount > 0))
718718 then (minOutAmount > totalGet)
719719 else false)
720720 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
721721 else totalGet
722- let $t02785228159 = if ((outAssetId == amId))
722+ let $t02789228199 = if ((outAssetId == amId))
723723 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
724724 else if ((outAssetId == prId))
725725 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
726726 else throw("invalid out asset id")
727- let outAm = $t02785228159._1
728- let outPr = $t02785228159._2
729- let amBalanceNew = $t02785228159._3
730- let prBalanceNew = $t02785228159._4
727+ let outAm = $t02789228199._1
728+ let outPr = $t02789228199._2
729+ let amBalanceNew = $t02789228199._3
730+ let prBalanceNew = $t02789228199._4
731731 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
732732 let curPr = f1(curPrX18, scale8)
733733 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
813813 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
814814 let b = ((s + ((D * aPrecision) / ann)) - D)
815815 func calc (acc,cur) = {
816- let $t03053130551 = acc
817- let y = $t03053130551._1
818- let found = $t03053130551._2
816+ let $t03057130591 = acc
817+ let y = $t03057130591._1
818+ let found = $t03057130591._2
819819 if ((found != unit))
820820 then acc
821821 else {
828828 }
829829
830830 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
831- let $t03088230929 = {
831+ let $t03092230969 = {
832832 let $l = arr
833833 let $s = size($l)
834834 let $acc0 = $Tuple2(D, unit)
842842
843843 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
844844 }
845- let y = $t03088230929._1
846- let found = $t03088230929._2
845+ let y = $t03092230969._1
846+ let found = $t03092230969._2
847847 if ((found != unit))
848848 then y
849849 else throw(("Y calculation error, Y = " + toString(y)))
852852
853853 @Callable(i)
854854 func calculateAmountOutForSwapREADONLY (cleanAmountIn,isReverse) = {
855- let $t03115031574 = if ((isReverse == false))
855+ let $t03119031614 = if ((isReverse == false))
856856 then {
857857 let assetOut = strf(this, pa())
858858 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, aa()))) + toBigInt(cleanAmountIn))
863863 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, pa()))) + toBigInt(cleanAmountIn))
864864 $Tuple2(assetOut, poolAmountInBalance)
865865 }
866- let assetOut = $t03115031574._1
867- let poolAmountInBalance = $t03115031574._2
866+ let assetOut = $t03119031614._1
867+ let poolAmountInBalance = $t03119031614._2
868868 let poolConfig = gpc()
869869 let amId = poolConfig[idxAmAsId]
870870 let prId = poolConfig[idxPrAsId]
900900 let assetIn = if ((pmt.assetId == unit))
901901 then toBase58String(toBytes("WAVES"))
902902 else toBase58String(value(pmt.assetId))
903- let $t03297633370 = if ((isReverse == false))
903+ let $t03301633410 = if ((isReverse == false))
904904 then {
905905 let assetOut = strf(this, pa())
906906 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
911911 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
912912 $Tuple2(assetOut, poolAmountInBalance)
913913 }
914- let assetOut = $t03297633370._1
915- let poolAmountInBalance = $t03297633370._2
914+ let assetOut = $t03301633410._1
915+ let poolAmountInBalance = $t03301633410._2
916916 let poolConfig = gpc()
917917 let amId = poolConfig[idxAmAsId]
918918 let prId = poolConfig[idxPrAsId]
10901090 let pmt = value(i.payments[0])
10911091 let pmtAssetId = toBase58String(value(pmt.assetId))
10921092 let pmtAmt = pmt.amount
1093- let $t03877738935 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1094- if (($t03877738935 == $t03877738935))
1093+ let $t03881738975 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1094+ if (($t03881738975 == $t03881738975))
10951095 then {
1096- let feeAmount = $t03877738935._3
1097- let state = $t03877738935._2
1098- let estimLP = $t03877738935._1
1096+ let feeAmount = $t03881738975._3
1097+ let state = $t03881738975._2
1098+ let estimLP = $t03881738975._1
10991099 let emitLpAmt = if (if ((minOutAmount > 0))
11001100 then (minOutAmount > estimLP)
11011101 else false)
11861186 else throwErr("exactly 1 payment are expected")]
11871187 if ((checks == checks))
11881188 then {
1189- let $t04155741712 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1190- let state = $t04155741712._1
1191- let totalAmount = $t04155741712._2
1189+ let $t04159741752 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1190+ let state = $t04159741752._1
1191+ let totalAmount = $t04159741752._2
11921192 $Tuple2(state, totalAmount)
11931193 }
11941194 else throw("Strict value is not equal to itself.")
12141214 let newY = getYD(xp, index, D1)
12151215 let dy = (xp[index] - newY)
12161216 let totalGetRaw = max([0, toInt((dy - big1))])
1217- let $t04258242637 = takeFee(totalGetRaw, outFee)
1218- let totalGet = $t04258242637._1
1219- let feeAmount = $t04258242637._2
1217+ let $t04262242677 = takeFee(totalGetRaw, outFee)
1218+ let totalGet = $t04262242677._1
1219+ let feeAmount = $t04262242677._2
12201220 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12211221 }
12221222
12301230 let lpId = poolConfig[idxLPAsId]
12311231 let amBalance = getAccBalance(amId)
12321232 let prBalance = getAccBalance(prId)
1233- let $t04298243097 = {
1233+ let $t04302243137 = {
12341234 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12351235 if ($isInstanceOf(@, "(Int, Int)"))
12361236 then @
12371237 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12381238 }
1239- let totalGet = $t04298243097._1
1240- let feeAmount = $t04298243097._2
1239+ let totalGet = $t04302243137._1
1240+ let feeAmount = $t04302243137._2
12411241 let r = ego("", lpId, lpAssetAmount, this)
12421242 let outAmAmt = r._1
12431243 let outPrAmt = r._2
13811381 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
13821382 if ((unstakeInv == unstakeInv))
13831383 then {
1384- let $t04693547123 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1385- let state = $t04693547123._1
1386- let totalAmount = $t04693547123._2
1384+ let $t04697547163 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1385+ let state = $t04697547163._1
1386+ let totalAmount = $t04697547163._2
13871387 $Tuple2(state, totalAmount)
13881388 }
13891389 else throw("Strict value is not equal to itself.")
13991399 let amId = poolConfig[idxAmAsId]
14001400 let prId = poolConfig[idxPrAsId]
14011401 let lpId = poolConfig[idxLPAsId]
1402- let $t04738247485 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1403- let lpAmount = $t04738247485._1
1404- let state = $t04738247485._2
1405- let feeAmount = $t04738247485._3
1406- let bonus = $t04738247485._4
1402+ let $t04742247525 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1403+ let lpAmount = $t04742247525._1
1404+ let state = $t04742247525._2
1405+ let feeAmount = $t04742247525._3
1406+ let bonus = $t04742247525._4
14071407 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14081408 }
14091409
14151415 let amId = poolConfig[idxAmAsId]
14161416 let prId = poolConfig[idxPrAsId]
14171417 let lpId = poolConfig[idxLPAsId]
1418- let $t04776447868 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1419- let lpAmount = $t04776447868._1
1420- let state = $t04776447868._2
1421- let feeAmount = $t04776447868._3
1422- let bonus = $t04776447868._4
1418+ let $t04780447908 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1419+ let lpAmount = $t04780447908._1
1420+ let state = $t04780447908._2
1421+ let feeAmount = $t04780447908._3
1422+ let bonus = $t04780447908._4
14231423 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14241424 }
14251425
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let scale8 = 100000000
55
66 let scale8BigInt = toBigInt(100000000)
77
88 let scale18 = toBigInt(1000000000000000000)
99
1010 let zeroBigInt = toBigInt(0)
1111
1212 let big0 = toBigInt(0)
1313
1414 let big1 = toBigInt(1)
1515
1616 let big2 = toBigInt(2)
1717
1818 let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8)))
1919
2020 let wavesString = "WAVES"
2121
2222 let Amult = "100"
2323
2424 let Dconv = "1"
2525
2626 let SEP = "__"
2727
2828 let EMPTY = ""
2929
3030 let PoolActive = 1
3131
3232 let PoolPutDis = 2
3333
3434 let PoolMatcherDis = 3
3535
3636 let PoolShutdown = 4
3737
3838 let idxPoolAddress = 1
3939
4040 let idxPoolSt = 2
4141
4242 let idxLPAsId = 3
4343
4444 let idxAmAsId = 4
4545
4646 let idxPrAsId = 5
4747
4848 let idxAmtAsDcm = 6
4949
5050 let idxPriceAsDcm = 7
5151
5252 let idxIAmtAsId = 8
5353
5454 let idxIPriceAsId = 9
5555
5656 let idxFactStakCntr = 1
5757
5858 let idxFactoryRestCntr = 6
5959
6060 let idxFactSlippCntr = 7
6161
6262 let idxFactGwxRewCntr = 10
6363
6464 let feeDefault = fraction(10, scale8, 10000)
6565
6666 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
6767
6868
6969 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
7070
7171
7272 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
7373
7474
7575 func abs (val) = if ((zeroBigInt > val))
7676 then -(val)
7777 else val
7878
7979
8080 func absBigInt (val) = if ((zeroBigInt > val))
8181 then -(val)
8282 else val
8383
8484
8585 func fc () = "%s__factoryContract"
8686
8787
8888 func mpk () = "%s__managerPublicKey"
8989
9090
9191 func pmpk () = "%s__pendingManagerPublicKey"
9292
9393
9494 func pl () = "%s%s__price__last"
9595
9696
9797 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
9898
9999
100100 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
101101
102102
103103 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
104104
105105
106106 func aa () = "%s__amountAsset"
107107
108108
109109 func pa () = "%s__priceAsset"
110110
111111
112112 func amp () = "%s__amp"
113113
114114
115115 func ada () = "%s__addonAddr"
116116
117117
118118 func swapContract () = "%s__swapContract"
119119
120120
121121 func fcfg () = "%s__factoryConfig"
122122
123123
124124 func mtpk () = "%s%s__matcher__publicKey"
125125
126126
127127 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
128128
129129
130130 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
131131
132132
133133 func aps () = "%s__shutdown"
134134
135135
136136 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
137137
138138
139139 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
140140
141141
142142 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
143143
144144
145145 func str (val) = match val {
146146 case valStr: String =>
147147 valStr
148148 case _ =>
149149 throw("fail cast to String")
150150 }
151151
152152
153153 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
154154
155155
156156 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
157157
158158
159159 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
160160
161161
162162 let fca = addressFromStringValue(strf(this, fc()))
163163
164164 let inFee = {
165165 let @ = invoke(fca, "getInFeeREADONLY", [toString(this)], nil)
166166 if ($isInstanceOf(@, "Int"))
167167 then @
168168 else throw(($getType(@) + " couldn't be cast to Int"))
169169 }
170170
171171 let outFee = {
172172 let @ = invoke(fca, "getOutFeeREADONLY", [toString(this)], nil)
173173 if ($isInstanceOf(@, "Int"))
174174 then @
175175 else throw(($getType(@) + " couldn't be cast to Int"))
176176 }
177177
178178 let A = strf(this, amp())
179179
180180 func igs () = valueOrElse(getBoolean(fca, aps()), false)
181181
182182
183183 func mp () = fromBase58String(strf(fca, mtpk()))
184184
185185
186186 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
187187
188188 func gpc () = {
189189 let amtAs = strf(this, aa())
190190 let priceAs = strf(this, pa())
191191 let iPriceAs = intf(fca, mba(priceAs))
192192 let iAmtAs = intf(fca, mba(amtAs))
193193 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
194194 }
195195
196196
197197 func parseAssetId (input) = if ((input == wavesString))
198198 then unit
199199 else fromBase58String(input)
200200
201201
202202 func assetIdToString (input) = if ((input == unit))
203203 then wavesString
204204 else toBase58String(value(input))
205205
206206
207207 func parsePoolConfig (poolConfig) = $Tuple7(addressFromStringValue(poolConfig[idxPoolAddress]), parseIntValue(poolConfig[idxPoolSt]), fromBase58String(poolConfig[idxLPAsId]), parseAssetId(poolConfig[idxAmAsId]), parseAssetId(poolConfig[idxPrAsId]), parseIntValue(poolConfig[idxAmtAsDcm]), parseIntValue(poolConfig[idxPriceAsDcm]))
208208
209209
210210 let poolConfigParsed = parsePoolConfig(gpc())
211211
212212 let $t069527138 = poolConfigParsed
213213
214214 let cfgPoolAddress = $t069527138._1
215215
216216 let cfgPoolStatus = $t069527138._2
217217
218218 let cfgLpAssetId = $t069527138._3
219219
220220 let cfgAmountAssetId = $t069527138._4
221221
222222 let cfgPriceAssetId = $t069527138._5
223223
224224 let cfgAmountAssetDecimals = $t069527138._6
225225
226226 let cfgPriceAssetDecimals = $t069527138._7
227227
228228 func gfc () = split(strf(fca, fcfg()), SEP)
229229
230230
231231 let factoryConfig = gfc()
232232
233233 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
234234
235235 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
236236
237237 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
238238
239239 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
240240
241241 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP)
242242
243243
244244 func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP)
245245
246246
247247 func getAccBalance (assetId) = if ((assetId == "WAVES"))
248248 then wavesBalance(this).available
249249 else assetBalance(this, fromBase58String(assetId))
250250
251251
252252 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
253253
254254
255255 func vad (A1,A2,slippage) = {
256256 let diff = fraction((A1 - A2), scale8BigInt, A2)
257257 let pass = ((slippage - abs(diff)) > zeroBigInt)
258258 if (!(pass))
259259 then throw(("Big slpg: " + toString(diff)))
260260 else $Tuple2(pass, min([A1, A2]))
261261 }
262262
263263
264264 func vd (D1,D0,slpg) = {
265265 let diff = fraction(D0, scale8BigInt, D1)
266266 let fail = (slpg > diff)
267267 if (if (fail)
268268 then true
269269 else (D0 > D1))
270270 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
271271 else fail
272272 }
273273
274274
275275 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
276276 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
277277 let prAsAmtX18 = t1(prAmt, prAssetDcm)
278278 cpbi(prAsAmtX18, amtAsAmtX18)
279279 }
280280
281281
282282 func calcPrices (amAmt,prAmt,lpAmt) = {
283283 let cfg = gpc()
284284 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
285285 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
286286 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
287287 let amAmtX18 = t1(amAmt, amtAsDcm)
288288 let prAmtX18 = t1(prAmt, prAsDcm)
289289 let lpAmtX18 = t1(lpAmt, scale8)
290290 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
291291 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
292292 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
293293 }
294294
295295
296296 func calculatePrices (amAmt,prAmt,lpAmt) = {
297297 let p = calcPrices(amAmt, prAmt, lpAmt)
298298 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
299299 }
300300
301301
302302 func takeFee (amount,fee) = {
303303 let feeAmount = if ((fee == 0))
304304 then 0
305305 else fraction(amount, fee, scale8)
306306 $Tuple2((amount - feeAmount), feeAmount)
307307 }
308308
309309
310310 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
311311 let cfg = gpc()
312312 let lpId = cfg[idxLPAsId]
313313 let amId = cfg[idxAmAsId]
314314 let prId = cfg[idxPrAsId]
315315 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
316316 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
317317 let sts = cfg[idxPoolSt]
318318 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
319319 if ((lpId != pmtAssetId))
320320 then throw("Wrong pmt asset")
321321 else {
322322 let amBalance = getAccBalance(amId)
323323 let amBalanceX18 = t1(amBalance, amDcm)
324324 let prBalance = getAccBalance(prId)
325325 let prBalanceX18 = t1(prBalance, prDcm)
326326 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
327327 let curPrice = f1(curPriceX18, scale8)
328328 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
329329 let lpEmissX18 = t1(lpEmiss, scale8)
330330 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
331331 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
332332 let outAmAmt = f1(outAmAmtX18, amDcm)
333333 let outPrAmt = f1(outPrAmtX18, prDcm)
334334 let state = if ((txId58 == ""))
335335 then nil
336336 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
337337 then unit
338338 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
339339 then unit
340340 else fromBase58String(prId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)]
341341 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
342342 }
343343 }
344344
345345
346346 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
347347 let cfg = gpc()
348348 let lpId = fromBase58String(cfg[idxLPAsId])
349349 let amIdStr = cfg[idxAmAsId]
350350 let prIdStr = cfg[idxPrAsId]
351351 let inAmIdStr = cfg[idxIAmtAsId]
352352 let inPrIdStr = cfg[idxIPriceAsId]
353353 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
354354 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
355355 let sts = cfg[idxPoolSt]
356356 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
357357 let amBalance = if (isEval)
358358 then getAccBalance(amIdStr)
359359 else if (if (isOneAsset)
360360 then (pmtId == amIdStr)
361361 else false)
362362 then (getAccBalance(amIdStr) - pmtAmt)
363363 else if (isOneAsset)
364364 then getAccBalance(amIdStr)
365365 else (getAccBalance(amIdStr) - inAmAmt)
366366 let prBalance = if (isEval)
367367 then getAccBalance(prIdStr)
368368 else if (if (isOneAsset)
369369 then (pmtId == prIdStr)
370370 else false)
371371 then (getAccBalance(prIdStr) - pmtAmt)
372372 else if (isOneAsset)
373373 then getAccBalance(prIdStr)
374374 else (getAccBalance(prIdStr) - inPrAmt)
375375 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
376376 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
377377 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
378378 let amBalanceX18 = t1(amBalance, amtDcm)
379379 let prBalanceX18 = t1(prBalance, priceDcm)
380380 let r = if ((lpEm == 0))
381381 then {
382382 let curPriceX18 = zeroBigInt
383383 let slippageX18 = zeroBigInt
384384 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
385385 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
386386 }
387387 else {
388388 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
389389 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
390390 let slippageX18 = t1(slippage, scale8)
391391 if (if (if (validateSlippage)
392392 then (curPriceX18 != zeroBigInt)
393393 else false)
394394 then (slippageRealX18 > slippageX18)
395395 else false)
396396 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
397397 else {
398398 let lpEmissionX18 = t1(lpEm, scale8)
399399 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
400400 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
401401 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
402402 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
403403 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
404404 let expAmtAssetAmtX18 = expectedAmts._1
405405 let expPriceAssetAmtX18 = expectedAmts._2
406406 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
407407 $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
408408 }
409409 }
410410 let calcLpAmt = r._1
411411 let calcAmAssetPmt = r._2
412412 let calcPrAssetPmt = r._3
413413 let curPrice = f1(r._4, scale8)
414414 let slippageCalc = f1(r._5, scale8)
415415 if ((0 >= calcLpAmt))
416416 then throw("LP <= 0")
417417 else {
418418 let emitLpAmt = if (!(emitLp))
419419 then 0
420420 else calcLpAmt
421421 let amDiff = (inAmAmt - calcAmAssetPmt)
422422 let prDiff = (inPrAmt - calcPrAssetPmt)
423423 let $t01760517950 = if (if (isOneAsset)
424424 then (pmtId == amIdStr)
425425 else false)
426426 then $Tuple2(pmtAmt, 0)
427427 else if (if (isOneAsset)
428428 then (pmtId == prIdStr)
429429 else false)
430430 then $Tuple2(0, pmtAmt)
431431 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
432432 let writeAmAmt = $t01760517950._1
433433 let writePrAmt = $t01760517950._2
434434 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
435435 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
436436 }
437437 }
438438
439439
440440 func moa (order) = {
441441 let cfg = gpc()
442442 let amtAsId = cfg[idxAmAsId]
443443 let prAsId = cfg[idxPrAsId]
444444 let sts = parseIntValue(cfg[idxPoolSt])
445445 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
446446 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
447447 let accAmtAsBalance = getAccBalance(amtAsId)
448448 let accPrAsBalance = getAccBalance(prAsId)
449449 let curPriceX18 = if ((order.orderType == Buy))
450450 then pcp(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance)
451451 else pcp(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance)
452452 let curPrice = f1(curPriceX18, scale8)
453453 if (if (if (igs())
454454 then true
455455 else (sts == PoolMatcherDis))
456456 then true
457457 else (sts == PoolShutdown))
458458 then throw("Admin blocked")
459459 else {
460460 let orAmtAsset = order.assetPair.amountAsset
461461 let orAmtAsStr = if ((orAmtAsset == unit))
462462 then "WAVES"
463463 else toBase58String(value(orAmtAsset))
464464 let orPrAsset = order.assetPair.priceAsset
465465 let orPrAsStr = if ((orPrAsset == unit))
466466 then "WAVES"
467467 else toBase58String(value(orPrAsset))
468468 if (if ((orAmtAsStr != amtAsId))
469469 then true
470470 else (orPrAsStr != prAsId))
471471 then throw("Wr assets")
472472 else {
473473 let orderPrice = order.price
474474 let priceDcm = fraction(scale8, prAsDcm, amtAsDcm)
475475 let castOrderPrice = ts(orderPrice, scale8, priceDcm)
476476 let isOrderPriceValid = if ((order.orderType == Buy))
477477 then (curPrice >= castOrderPrice)
478478 else (castOrderPrice >= curPrice)
479479 true
480480 }
481481 }
482482 }
483483
484484
485485 func cg (i) = if ((size(i.payments) != 1))
486486 then throw("1 pmnt exp")
487487 else {
488488 let pmt = value(i.payments[0])
489489 let pmtAssetId = value(pmt.assetId)
490490 let pmtAmt = pmt.amount
491491 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
492492 let outAmAmt = r._1
493493 let outPrAmt = r._2
494494 let sts = parseIntValue(r._9)
495495 let state = r._10
496496 if (if (igs())
497497 then true
498498 else (sts == PoolShutdown))
499499 then throw(("Admin blocked: " + toString(sts)))
500500 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
501501 }
502502
503503
504504 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
505505 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
506506 let sts = parseIntValue(r._8)
507507 if (if (if (igs())
508508 then true
509509 else (sts == PoolPutDis))
510510 then true
511511 else (sts == PoolShutdown))
512512 then throw(("Blocked:" + toString(sts)))
513513 else r
514514 }
515515
516516
517517 func getD (xp) = {
518518 let n = big2
519519 let xp0 = xp[0]
520520 let xp1 = xp[1]
521521 let aPrecision = parseBigIntValue(Amult)
522522 let a = (parseBigIntValue(A) * aPrecision)
523523 let s = (xp0 + xp1)
524524 if ((s == big0))
525525 then big0
526526 else {
527527 let ann = (a * n)
528528 let xp0_xp1_n_n = (((xp0 * xp1) * n) * n)
529529 let ann_s_aPrecision = ((ann * s) / aPrecision)
530530 let ann_aPrecision = (ann - aPrecision)
531531 let n1 = (n + big1)
532532 func calc (acc,cur) = {
533533 let $t02250222522 = acc
534534 let d = $t02250222522._1
535535 let found = $t02250222522._2
536536 if ((found != unit))
537537 then acc
538538 else {
539539 let dp = (((d * d) * d) / xp0_xp1_n_n)
540540 let dNext = (((ann_s_aPrecision + (dp * n)) * d) / (((ann_aPrecision * d) / aPrecision) + (n1 * dp)))
541541 let dDiff = absBigInt((dNext - value(d)))
542542 if ((big1 >= dDiff))
543543 then $Tuple2(dNext, cur)
544544 else $Tuple2(dNext, unit)
545545 }
546546 }
547547
548- let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
549- let $t02294322990 = {
548+ let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
549+ let $t02298323030 = {
550550 let $l = arr
551551 let $s = size($l)
552552 let $acc0 = $Tuple2(s, unit)
553553 func $f0_1 ($a,$i) = if (($i >= $s))
554554 then $a
555555 else calc($a, $l[$i])
556556
557557 func $f0_2 ($a,$i) = if (($i >= $s))
558558 then $a
559- else throw("List size exceeds 15")
559+ else throw("List size exceeds 25")
560560
561- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
561+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25)
562562 }
563- let d = $t02294322990._1
564- let found = $t02294322990._2
563+ let d = $t02298323030._1
564+ let found = $t02298323030._2
565565 if ((found != unit))
566566 then d
567567 else throw(("D calculation error, D = " + toString(d)))
568568 }
569569 }
570570
571571
572572 func getYD (xp,i,D) = {
573573 let n = big2
574574 let x = xp[if ((i == 0))
575575 then 1
576576 else 0]
577577 let aPrecision = parseBigIntValue(Amult)
578578 let a = (parseBigIntValue(A) * aPrecision)
579579 let s = x
580580 let ann = (a * n)
581581 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
582582 let b = ((s + ((D * aPrecision) / ann)) - D)
583583 func calc (acc,cur) = {
584- let $t02349023510 = acc
585- let y = $t02349023510._1
586- let found = $t02349023510._2
584+ let $t02353023550 = acc
585+ let y = $t02353023550._1
586+ let found = $t02353023550._2
587587 if ((found != unit))
588588 then acc
589589 else {
590590 let yNext = (((y * y) + c) / ((big2 * y) + b))
591591 let yDiff = absBigInt((yNext - value(y)))
592592 if ((big1 >= yDiff))
593593 then $Tuple2(yNext, cur)
594594 else $Tuple2(yNext, unit)
595595 }
596596 }
597597
598598 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
599- let $t02381723864 = {
599+ let $t02385723904 = {
600600 let $l = arr
601601 let $s = size($l)
602602 let $acc0 = $Tuple2(D, unit)
603603 func $f0_1 ($a,$i) = if (($i >= $s))
604604 then $a
605605 else calc($a, $l[$i])
606606
607607 func $f0_2 ($a,$i) = if (($i >= $s))
608608 then $a
609609 else throw("List size exceeds 15")
610610
611611 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
612612 }
613- let y = $t02381723864._1
614- let found = $t02381723864._2
613+ let y = $t02385723904._1
614+ let found = $t02385723904._2
615615 if ((found != unit))
616616 then y
617617 else throw(("Y calculation error, Y = " + toString(y)))
618618 }
619619
620620
621621 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
622622 let poolConfig = gpc()
623623 let amId = poolConfig[idxAmAsId]
624624 let prId = poolConfig[idxPrAsId]
625625 let lpId = poolConfig[idxLPAsId]
626626 let amtDcm = parseIntValue(poolConfig[idxAmtAsDcm])
627627 let priceDcm = parseIntValue(poolConfig[idxPriceAsDcm])
628628 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
629629 let chechEmission = if ((lpAssetEmission > big0))
630630 then true
631631 else throw("initial deposit requires all coins")
632632 if ((chechEmission == chechEmission))
633633 then {
634634 let amBalance = getAccBalance(amId)
635635 let prBalance = getAccBalance(prId)
636- let $t02464725109 = if ((txId == ""))
636+ let $t02468725149 = if ((txId == ""))
637637 then $Tuple2(amBalance, prBalance)
638638 else if ((pmtAssetId == amId))
639639 then if ((pmtAmtRaw > amBalance))
640640 then throw("invalid payment amount")
641641 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
642642 else if ((pmtAssetId == prId))
643643 then if ((pmtAmtRaw > prBalance))
644644 then throw("invalid payment amount")
645645 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
646646 else throw("wrong pmtAssetId")
647- let amBalanceOld = $t02464725109._1
648- let prBalanceOld = $t02464725109._2
649- let $t02511525291 = if ((pmtAssetId == amId))
647+ let amBalanceOld = $t02468725149._1
648+ let prBalanceOld = $t02468725149._2
649+ let $t02515525331 = if ((pmtAssetId == amId))
650650 then $Tuple2(pmtAmtRaw, 0)
651651 else if ((pmtAssetId == prId))
652652 then $Tuple2(0, pmtAmtRaw)
653653 else throw("invalid payment")
654- let amAmountRaw = $t02511525291._1
655- let prAmountRaw = $t02511525291._2
656- let $t02529525549 = if (withTakeFee)
654+ let amAmountRaw = $t02515525331._1
655+ let prAmountRaw = $t02515525331._2
656+ let $t02533525589 = if (withTakeFee)
657657 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
658658 else $Tuple3(amAmountRaw, prAmountRaw, 0)
659- let amAmount = $t02529525549._1
660- let prAmount = $t02529525549._2
661- let feeAmount = $t02529525549._3
659+ let amAmount = $t02533525589._1
660+ let prAmount = $t02533525589._2
661+ let feeAmount = $t02533525589._3
662662 let amBalanceNew = (amBalanceOld + amAmount)
663663 let prBalanceNew = (prBalanceOld + prAmount)
664664 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
665665 let D1 = getD([toBigInt(amBalanceNew), toBigInt(prBalanceNew)])
666666 let checkD = if ((D1 > D0))
667667 then true
668668 else throw()
669669 if ((checkD == checkD))
670670 then {
671671 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0)
672672 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
673673 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId), dataPutActionInfo(amAmountRaw, prAmountRaw, toInt(lpAmount), curPrice, 0, 0, height, lastBlock.timestamp, 0, 0))]
674674 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
675675 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
676676 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
677677 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
678678 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
679679 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
680680 }
681681 else throw("Strict value is not equal to itself.")
682682 }
683683 else throw("Strict value is not equal to itself.")
684684 }
685685
686686
687687 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
688688 let poolConfig = gpc()
689689 let lpId = poolConfig[idxLPAsId]
690690 let amId = poolConfig[idxAmAsId]
691691 let prId = poolConfig[idxPrAsId]
692692 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
693693 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
694694 let poolStatus = poolConfig[idxPoolSt]
695695 let userAddress = if ((caller == restContract))
696696 then originCaller
697697 else caller
698698 let pmt = value(payments[0])
699699 let pmtAssetId = value(pmt.assetId)
700700 let pmtAmt = pmt.amount
701701 let txId58 = toBase58String(transactionId)
702702 if ((lpId != toBase58String(pmtAssetId)))
703703 then throw("Wrong LP")
704704 else {
705705 let amBalance = getAccBalance(amId)
706706 let prBalance = getAccBalance(prId)
707- let $t02755127662 = {
707+ let $t02759127702 = {
708708 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
709709 if ($isInstanceOf(@, "(Int, Int)"))
710710 then @
711711 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
712712 }
713- if (($t02755127662 == $t02755127662))
713+ if (($t02759127702 == $t02759127702))
714714 then {
715- let feeAmount = $t02755127662._2
716- let totalGet = $t02755127662._1
715+ let feeAmount = $t02759127702._2
716+ let totalGet = $t02759127702._1
717717 let totalAmount = if (if ((minOutAmount > 0))
718718 then (minOutAmount > totalGet)
719719 else false)
720720 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
721721 else totalGet
722- let $t02785228159 = if ((outAssetId == amId))
722+ let $t02789228199 = if ((outAssetId == amId))
723723 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
724724 else if ((outAssetId == prId))
725725 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
726726 else throw("invalid out asset id")
727- let outAm = $t02785228159._1
728- let outPr = $t02785228159._2
729- let amBalanceNew = $t02785228159._3
730- let prBalanceNew = $t02785228159._4
727+ let outAm = $t02789228199._1
728+ let outPr = $t02789228199._2
729+ let amBalanceNew = $t02789228199._3
730+ let prBalanceNew = $t02789228199._4
731731 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
732732 let curPr = f1(curPrX18, scale8)
733733 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
734734 then unit
735735 else fromBase58String(outAssetId)
736736 let sendFeeToMatcher = if ((feeAmount > 0))
737737 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
738738 else nil
739739 let state = ([ScriptTransfer(userAddress, totalAmount, outAssetIdOrWaves), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(pl(), curPr), IntegerEntry(ph(height, lastBlock.timestamp), curPr)] ++ sendFeeToMatcher)
740740 if ((state == state))
741741 then {
742742 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
743743 if ((burn == burn))
744744 then $Tuple2(state, totalAmount)
745745 else throw("Strict value is not equal to itself.")
746746 }
747747 else throw("Strict value is not equal to itself.")
748748 }
749749 else throw("Strict value is not equal to itself.")
750750 }
751751 }
752752
753753
754754 func m () = match getString(mpk()) {
755755 case s: String =>
756756 fromBase58String(s)
757757 case _: Unit =>
758758 unit
759759 case _ =>
760760 throw("Match error")
761761 }
762762
763763
764764 func pm () = match getString(pmpk()) {
765765 case s: String =>
766766 fromBase58String(s)
767767 case _: Unit =>
768768 unit
769769 case _ =>
770770 throw("Match error")
771771 }
772772
773773
774774 let pd = throw("Permission denied")
775775
776776 func isManager (i) = match m() {
777777 case pk: ByteVector =>
778778 (i.callerPublicKey == pk)
779779 case _: Unit =>
780780 (i.caller == this)
781781 case _ =>
782782 throw("Match error")
783783 }
784784
785785
786786 func mm (i) = match m() {
787787 case pk: ByteVector =>
788788 if ((i.callerPublicKey == pk))
789789 then true
790790 else pd
791791 case _: Unit =>
792792 if ((i.caller == this))
793793 then true
794794 else pd
795795 case _ =>
796796 throw("Match error")
797797 }
798798
799799
800800 func getY (isReverse,D,poolAmountInBalance) = {
801801 let poolConfig = gpc()
802802 let amId = poolConfig[idxAmAsId]
803803 let prId = poolConfig[idxPrAsId]
804804 let n = big2
805805 let aPrecision = parseBigIntValue(Amult)
806806 let a = (parseBigIntValue(A) * aPrecision)
807807 let xp = if ((isReverse == false))
808808 then [(toBigInt(getAccBalance(amId)) + poolAmountInBalance), toBigInt(getAccBalance(prId))]
809809 else [(toBigInt(getAccBalance(prId)) + poolAmountInBalance), toBigInt(getAccBalance(amId))]
810810 let x = xp[0]
811811 let s = x
812812 let ann = (a * n)
813813 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
814814 let b = ((s + ((D * aPrecision) / ann)) - D)
815815 func calc (acc,cur) = {
816- let $t03053130551 = acc
817- let y = $t03053130551._1
818- let found = $t03053130551._2
816+ let $t03057130591 = acc
817+ let y = $t03057130591._1
818+ let found = $t03057130591._2
819819 if ((found != unit))
820820 then acc
821821 else {
822822 let yNext = (((y * y) + c) / ((big2 * y) + b))
823823 let yDiff = absBigInt((yNext - value(y)))
824824 if ((big1 >= yDiff))
825825 then $Tuple2(yNext, cur)
826826 else $Tuple2(yNext, unit)
827827 }
828828 }
829829
830830 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
831- let $t03088230929 = {
831+ let $t03092230969 = {
832832 let $l = arr
833833 let $s = size($l)
834834 let $acc0 = $Tuple2(D, unit)
835835 func $f0_1 ($a,$i) = if (($i >= $s))
836836 then $a
837837 else calc($a, $l[$i])
838838
839839 func $f0_2 ($a,$i) = if (($i >= $s))
840840 then $a
841841 else throw("List size exceeds 15")
842842
843843 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
844844 }
845- let y = $t03088230929._1
846- let found = $t03088230929._2
845+ let y = $t03092230969._1
846+ let found = $t03092230969._2
847847 if ((found != unit))
848848 then y
849849 else throw(("Y calculation error, Y = " + toString(y)))
850850 }
851851
852852
853853 @Callable(i)
854854 func calculateAmountOutForSwapREADONLY (cleanAmountIn,isReverse) = {
855- let $t03115031574 = if ((isReverse == false))
855+ let $t03119031614 = if ((isReverse == false))
856856 then {
857857 let assetOut = strf(this, pa())
858858 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, aa()))) + toBigInt(cleanAmountIn))
859859 $Tuple2(assetOut, poolAmountInBalance)
860860 }
861861 else {
862862 let assetOut = strf(this, aa())
863863 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, pa()))) + toBigInt(cleanAmountIn))
864864 $Tuple2(assetOut, poolAmountInBalance)
865865 }
866- let assetOut = $t03115031574._1
867- let poolAmountInBalance = $t03115031574._2
866+ let assetOut = $t03119031614._1
867+ let poolAmountInBalance = $t03119031614._2
868868 let poolConfig = gpc()
869869 let amId = poolConfig[idxAmAsId]
870870 let prId = poolConfig[idxPrAsId]
871871 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
872872 let D = getD(xp)
873873 let y = getY(isReverse, D, toBigInt(cleanAmountIn))
874874 let dy = ((toBigInt(getAccBalance(assetOut)) - y) - toBigInt(1))
875875 let totalGetRaw = max([0, toInt(dy)])
876876 let newXp = if ((isReverse == false))
877877 then [(toBigInt(getAccBalance(amId)) + toBigInt(cleanAmountIn)), (toBigInt(getAccBalance(prId)) - dy)]
878878 else [(toBigInt(getAccBalance(amId)) - dy), (toBigInt(getAccBalance(prId)) + toBigInt(cleanAmountIn))]
879879 let newD = getD(newXp)
880880 let checkD = if ((newD >= D))
881881 then true
882882 else throw(makeString(["new D is fewer error", toString(D), toString(newD)], "__"))
883883 if ((checkD == checkD))
884884 then $Tuple2(nil, totalGetRaw)
885885 else throw("Strict value is not equal to itself.")
886886 }
887887
888888
889889
890890 @Callable(i)
891891 func calculateAmountOutForSwapAndSendTokens (cleanAmountIn,isReverse,amountOutMin,addressTo) = {
892892 let checks = [if ((value(i.payments[0]).amount >= cleanAmountIn))
893893 then true
894894 else throwErr("Wrong amount"), if ((i.caller == addressFromStringValue(strf(this, swapContract()))))
895895 then true
896896 else throwErr("Permission denied")]
897897 if ((checks == checks))
898898 then {
899899 let pmt = value(i.payments[0])
900900 let assetIn = if ((pmt.assetId == unit))
901901 then toBase58String(toBytes("WAVES"))
902902 else toBase58String(value(pmt.assetId))
903- let $t03297633370 = if ((isReverse == false))
903+ let $t03301633410 = if ((isReverse == false))
904904 then {
905905 let assetOut = strf(this, pa())
906906 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
907907 $Tuple2(assetOut, poolAmountInBalance)
908908 }
909909 else {
910910 let assetOut = strf(this, aa())
911911 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
912912 $Tuple2(assetOut, poolAmountInBalance)
913913 }
914- let assetOut = $t03297633370._1
915- let poolAmountInBalance = $t03297633370._2
914+ let assetOut = $t03301633410._1
915+ let poolAmountInBalance = $t03301633410._2
916916 let poolConfig = gpc()
917917 let amId = poolConfig[idxAmAsId]
918918 let prId = poolConfig[idxPrAsId]
919919 let xp = if ((isReverse == false))
920920 then [(toBigInt(getAccBalance(amId)) - toBigInt(value(i.payments[0]).amount)), toBigInt(getAccBalance(prId))]
921921 else [toBigInt(getAccBalance(amId)), (toBigInt(getAccBalance(prId)) - toBigInt(value(i.payments[0]).amount))]
922922 let D = getD(xp)
923923 let y = getY(isReverse, D, toBigInt(poolAmountInBalance))
924924 let dy = ((toBigInt(getAccBalance(assetOut)) - y) - toBigInt(1))
925925 let totalGetRaw = max([0, toInt(dy)])
926926 let checkMin = if ((totalGetRaw >= amountOutMin))
927927 then true
928928 else throw("Exchange result is fewer coins than expected")
929929 if ((checkMin == checkMin))
930930 then {
931931 let newXp = if ((isReverse == false))
932932 then [toBigInt(getAccBalance(amId)), (toBigInt(getAccBalance(prId)) - dy)]
933933 else [(toBigInt(getAccBalance(amId)) - dy), toBigInt(getAccBalance(prId))]
934934 let newD = getD(newXp)
935935 let checkD = if ((newD >= D))
936936 then true
937937 else throw("new D is fewer error")
938938 if ((checkD == checkD))
939939 then [ScriptTransfer(addressFromStringValue(addressTo), totalGetRaw, if ((assetIn == "WAVES"))
940940 then unit
941941 else fromBase58String(assetOut))]
942942 else throw("Strict value is not equal to itself.")
943943 }
944944 else throw("Strict value is not equal to itself.")
945945 }
946946 else throw("Strict value is not equal to itself.")
947947 }
948948
949949
950950
951951 @Callable(i)
952952 func constructor (fc) = {
953953 let c = mm(i)
954954 if ((c == c))
955955 then [StringEntry(fc(), fc)]
956956 else throw("Strict value is not equal to itself.")
957957 }
958958
959959
960960
961961 @Callable(i)
962962 func setManager (pendingManagerPublicKey) = {
963963 let c = mm(i)
964964 if ((c == c))
965965 then {
966966 let cm = fromBase58String(pendingManagerPublicKey)
967967 if ((cm == cm))
968968 then [StringEntry(pmpk(), pendingManagerPublicKey)]
969969 else throw("Strict value is not equal to itself.")
970970 }
971971 else throw("Strict value is not equal to itself.")
972972 }
973973
974974
975975
976976 @Callable(i)
977977 func confirmManager () = {
978978 let p = pm()
979979 let hpm = if (isDefined(p))
980980 then true
981981 else throw("No pending manager")
982982 if ((hpm == hpm))
983983 then {
984984 let cpm = if ((i.callerPublicKey == value(p)))
985985 then true
986986 else throw("You are not pending manager")
987987 if ((cpm == cpm))
988988 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
989989 else throw("Strict value is not equal to itself.")
990990 }
991991 else throw("Strict value is not equal to itself.")
992992 }
993993
994994
995995
996996 @Callable(i)
997997 func put (slip,autoStake) = {
998998 let factCfg = gfc()
999999 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
10001000 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
10011001 if ((0 > slip))
10021002 then throw("Wrong slippage")
10031003 else if ((size(i.payments) != 2))
10041004 then throw("2 pmnts expd")
10051005 else {
10061006 let e = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, true, 0, "")
10071007 let emitLpAmt = e._2
10081008 let lpAssetId = e._7
10091009 let state = e._9
10101010 let amDiff = e._10
10111011 let prDiff = e._11
10121012 let amId = e._12
10131013 let prId = e._13
10141014 let r = invoke(fca, "emit", [emitLpAmt], nil)
10151015 if ((r == r))
10161016 then {
10171017 let el = match r {
10181018 case legacy: Address =>
10191019 invoke(legacy, "emit", [emitLpAmt], nil)
10201020 case _ =>
10211021 unit
10221022 }
10231023 if ((el == el))
10241024 then {
10251025 let sa = if ((amDiff > 0))
10261026 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
10271027 else nil
10281028 if ((sa == sa))
10291029 then {
10301030 let sp = if ((prDiff > 0))
10311031 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
10321032 else nil
10331033 if ((sp == sp))
10341034 then {
10351035 let lpTrnsfr = if (autoStake)
10361036 then {
10371037 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
10381038 if ((ss == ss))
10391039 then nil
10401040 else throw("Strict value is not equal to itself.")
10411041 }
10421042 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
10431043 (state ++ lpTrnsfr)
10441044 }
10451045 else throw("Strict value is not equal to itself.")
10461046 }
10471047 else throw("Strict value is not equal to itself.")
10481048 }
10491049 else throw("Strict value is not equal to itself.")
10501050 }
10511051 else throw("Strict value is not equal to itself.")
10521052 }
10531053 }
10541054
10551055
10561056
10571057 @Callable(i)
10581058 func putOneTknV2 (minOutAmount,autoStake) = {
10591059 let isPoolOneTokenOperationsDisabled = {
10601060 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10611061 if ($isInstanceOf(@, "Boolean"))
10621062 then @
10631063 else throw(($getType(@) + " couldn't be cast to Boolean"))
10641064 }
10651065 let isPutDisabled = if (if (if (igs())
10661066 then true
10671067 else (cfgPoolStatus == PoolPutDis))
10681068 then true
10691069 else (cfgPoolStatus == PoolShutdown))
10701070 then true
10711071 else isPoolOneTokenOperationsDisabled
10721072 let checks = [if (if (!(isPutDisabled))
10731073 then true
10741074 else isManager(i))
10751075 then true
10761076 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10771077 then true
10781078 else throwErr("exactly 1 payment are expected")]
10791079 if ((checks == checks))
10801080 then {
10811081 let poolConfig = gpc()
10821082 let amId = poolConfig[idxAmAsId]
10831083 let prId = poolConfig[idxPrAsId]
10841084 let lpId = fromBase58String(poolConfig[idxLPAsId])
10851085 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10861086 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10871087 let userAddress = if ((i.caller == this))
10881088 then i.originCaller
10891089 else i.caller
10901090 let pmt = value(i.payments[0])
10911091 let pmtAssetId = toBase58String(value(pmt.assetId))
10921092 let pmtAmt = pmt.amount
1093- let $t03877738935 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1094- if (($t03877738935 == $t03877738935))
1093+ let $t03881738975 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1094+ if (($t03881738975 == $t03881738975))
10951095 then {
1096- let feeAmount = $t03877738935._3
1097- let state = $t03877738935._2
1098- let estimLP = $t03877738935._1
1096+ let feeAmount = $t03881738975._3
1097+ let state = $t03881738975._2
1098+ let estimLP = $t03881738975._1
10991099 let emitLpAmt = if (if ((minOutAmount > 0))
11001100 then (minOutAmount > estimLP)
11011101 else false)
11021102 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
11031103 else estimLP
11041104 let e = invoke(fca, "emit", [emitLpAmt], nil)
11051105 if ((e == e))
11061106 then {
11071107 let el = match e {
11081108 case legacy: Address =>
11091109 invoke(legacy, "emit", [emitLpAmt], nil)
11101110 case _ =>
11111111 unit
11121112 }
11131113 if ((el == el))
11141114 then {
11151115 let lpTrnsfr = if (autoStake)
11161116 then {
11171117 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
11181118 if ((ss == ss))
11191119 then nil
11201120 else throw("Strict value is not equal to itself.")
11211121 }
11221122 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
11231123 let sendFeeToMatcher = if ((feeAmount > 0))
11241124 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11251125 else nil
11261126 $Tuple2(((state ++ lpTrnsfr) ++ sendFeeToMatcher), emitLpAmt)
11271127 }
11281128 else throw("Strict value is not equal to itself.")
11291129 }
11301130 else throw("Strict value is not equal to itself.")
11311131 }
11321132 else throw("Strict value is not equal to itself.")
11331133 }
11341134 else throw("Strict value is not equal to itself.")
11351135 }
11361136
11371137
11381138
11391139 @Callable(i)
11401140 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11411141 then throw("Wrong slpg")
11421142 else if ((size(i.payments) != 2))
11431143 then throw("2 pmnts expd")
11441144 else {
11451145 let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, true, 0, "")
11461146 estPut._9
11471147 }
11481148
11491149
11501150
11511151 @Callable(i)
11521152 func get () = {
11531153 let r = cg(i)
11541154 let outAmtAmt = r._1
11551155 let outPrAmt = r._2
11561156 let pmtAmt = r._3
11571157 let pmtAssetId = r._4
11581158 let state = r._5
11591159 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11601160 if ((b == b))
11611161 then state
11621162 else throw("Strict value is not equal to itself.")
11631163 }
11641164
11651165
11661166
11671167 @Callable(i)
11681168 func getOneTknV2 (outAssetId,minOutAmount) = {
11691169 let isPoolOneTokenOperationsDisabled = {
11701170 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11711171 if ($isInstanceOf(@, "Boolean"))
11721172 then @
11731173 else throw(($getType(@) + " couldn't be cast to Boolean"))
11741174 }
11751175 let isGetDisabled = if (if (igs())
11761176 then true
11771177 else (cfgPoolStatus == PoolShutdown))
11781178 then true
11791179 else isPoolOneTokenOperationsDisabled
11801180 let checks = [if (if (!(isGetDisabled))
11811181 then true
11821182 else isManager(i))
11831183 then true
11841184 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
11851185 then true
11861186 else throwErr("exactly 1 payment are expected")]
11871187 if ((checks == checks))
11881188 then {
1189- let $t04155741712 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1190- let state = $t04155741712._1
1191- let totalAmount = $t04155741712._2
1189+ let $t04159741752 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1190+ let state = $t04159741752._1
1191+ let totalAmount = $t04159741752._2
11921192 $Tuple2(state, totalAmount)
11931193 }
11941194 else throw("Strict value is not equal to itself.")
11951195 }
11961196
11971197
11981198
11991199 @Callable(i)
12001200 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12011201 let poolConfig = gpc()
12021202 let amId = poolConfig[idxAmAsId]
12031203 let prId = poolConfig[idxPrAsId]
12041204 let lpId = poolConfig[idxLPAsId]
12051205 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12061206 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12071207 let D0 = getD(xp)
12081208 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12091209 let index = if ((outAssetId == amId))
12101210 then 0
12111211 else if ((outAssetId == prId))
12121212 then 1
12131213 else throw("invalid out asset id")
12141214 let newY = getYD(xp, index, D1)
12151215 let dy = (xp[index] - newY)
12161216 let totalGetRaw = max([0, toInt((dy - big1))])
1217- let $t04258242637 = takeFee(totalGetRaw, outFee)
1218- let totalGet = $t04258242637._1
1219- let feeAmount = $t04258242637._2
1217+ let $t04262242677 = takeFee(totalGetRaw, outFee)
1218+ let totalGet = $t04262242677._1
1219+ let feeAmount = $t04262242677._2
12201220 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12211221 }
12221222
12231223
12241224
12251225 @Callable(i)
12261226 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12271227 let poolConfig = gpc()
12281228 let amId = poolConfig[idxAmAsId]
12291229 let prId = poolConfig[idxPrAsId]
12301230 let lpId = poolConfig[idxLPAsId]
12311231 let amBalance = getAccBalance(amId)
12321232 let prBalance = getAccBalance(prId)
1233- let $t04298243097 = {
1233+ let $t04302243137 = {
12341234 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12351235 if ($isInstanceOf(@, "(Int, Int)"))
12361236 then @
12371237 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12381238 }
1239- let totalGet = $t04298243097._1
1240- let feeAmount = $t04298243097._2
1239+ let totalGet = $t04302243137._1
1240+ let feeAmount = $t04302243137._2
12411241 let r = ego("", lpId, lpAssetAmount, this)
12421242 let outAmAmt = r._1
12431243 let outPrAmt = r._2
12441244 let sumOfGetAssets = (outAmAmt + outPrAmt)
12451245 let bonus = if ((sumOfGetAssets == 0))
12461246 then if ((totalGet == 0))
12471247 then 0
12481248 else throw("bonus calculation error")
12491249 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12501250 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12511251 }
12521252
12531253
12541254
12551255 @Callable(i)
12561256 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12571257 let r = cg(i)
12581258 let outAmAmt = r._1
12591259 let outPrAmt = r._2
12601260 let pmtAmt = r._3
12611261 let pmtAssetId = r._4
12621262 let state = r._5
12631263 if ((noLessThenAmtAsset > outAmAmt))
12641264 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
12651265 else if ((noLessThenPriceAsset > outPrAmt))
12661266 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
12671267 else {
12681268 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12691269 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12701270 then state
12711271 else throw("Strict value is not equal to itself.")
12721272 }
12731273 }
12741274
12751275
12761276
12771277 @Callable(i)
12781278 func unstakeAndGet (amount) = {
12791279 let checkPayments = if ((size(i.payments) != 0))
12801280 then throw("No pmnts expd")
12811281 else true
12821282 if ((checkPayments == checkPayments))
12831283 then {
12841284 let cfg = gpc()
12851285 let factoryCfg = gfc()
12861286 let lpAssetId = fromBase58String(cfg[idxLPAsId])
12871287 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
12881288 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
12891289 if ((unstakeInv == unstakeInv))
12901290 then {
12911291 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
12921292 let sts = parseIntValue(r._9)
12931293 let state = r._10
12941294 let v = if (if (igs())
12951295 then true
12961296 else (sts == PoolShutdown))
12971297 then throw(("Blocked: " + toString(sts)))
12981298 else true
12991299 if ((v == v))
13001300 then {
13011301 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13021302 if ((burnA == burnA))
13031303 then state
13041304 else throw("Strict value is not equal to itself.")
13051305 }
13061306 else throw("Strict value is not equal to itself.")
13071307 }
13081308 else throw("Strict value is not equal to itself.")
13091309 }
13101310 else throw("Strict value is not equal to itself.")
13111311 }
13121312
13131313
13141314
13151315 @Callable(i)
13161316 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13171317 let isGetDisabled = if (igs())
13181318 then true
13191319 else (cfgPoolStatus == PoolShutdown)
13201320 let checks = [if (!(isGetDisabled))
13211321 then true
13221322 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13231323 then true
13241324 else throw("no payments are expected")]
13251325 if ((checks == checks))
13261326 then {
13271327 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13281328 if ((unstakeInv == unstakeInv))
13291329 then {
13301330 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
13311331 let outAmAmt = res._1
13321332 let outPrAmt = res._2
13331333 let state = res._10
13341334 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
13351335 then true
13361336 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
13371337 then true
13381338 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
13391339 if ((checkAmounts == checkAmounts))
13401340 then {
13411341 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13421342 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13431343 then state
13441344 else throw("Strict value is not equal to itself.")
13451345 }
13461346 else throw("Strict value is not equal to itself.")
13471347 }
13481348 else throw("Strict value is not equal to itself.")
13491349 }
13501350 else throw("Strict value is not equal to itself.")
13511351 }
13521352
13531353
13541354
13551355 @Callable(i)
13561356 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
13571357 let isPoolOneTokenOperationsDisabled = {
13581358 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
13591359 if ($isInstanceOf(@, "Boolean"))
13601360 then @
13611361 else throw(($getType(@) + " couldn't be cast to Boolean"))
13621362 }
13631363 let isGetDisabled = if (if (igs())
13641364 then true
13651365 else (cfgPoolStatus == PoolShutdown))
13661366 then true
13671367 else isPoolOneTokenOperationsDisabled
13681368 let checks = [if (if (!(isGetDisabled))
13691369 then true
13701370 else isManager(i))
13711371 then true
13721372 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
13731373 then true
13741374 else throwErr("no payments are expected")]
13751375 if ((checks == checks))
13761376 then {
13771377 let cfg = gpc()
13781378 let factoryCfg = gfc()
13791379 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13801380 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13811381 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
13821382 if ((unstakeInv == unstakeInv))
13831383 then {
1384- let $t04693547123 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1385- let state = $t04693547123._1
1386- let totalAmount = $t04693547123._2
1384+ let $t04697547163 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1385+ let state = $t04697547163._1
1386+ let totalAmount = $t04697547163._2
13871387 $Tuple2(state, totalAmount)
13881388 }
13891389 else throw("Strict value is not equal to itself.")
13901390 }
13911391 else throw("Strict value is not equal to itself.")
13921392 }
13931393
13941394
13951395
13961396 @Callable(i)
13971397 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
13981398 let poolConfig = gpc()
13991399 let amId = poolConfig[idxAmAsId]
14001400 let prId = poolConfig[idxPrAsId]
14011401 let lpId = poolConfig[idxLPAsId]
1402- let $t04738247485 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1403- let lpAmount = $t04738247485._1
1404- let state = $t04738247485._2
1405- let feeAmount = $t04738247485._3
1406- let bonus = $t04738247485._4
1402+ let $t04742247525 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1403+ let lpAmount = $t04742247525._1
1404+ let state = $t04742247525._2
1405+ let feeAmount = $t04742247525._3
1406+ let bonus = $t04742247525._4
14071407 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14081408 }
14091409
14101410
14111411
14121412 @Callable(i)
14131413 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
14141414 let poolConfig = gpc()
14151415 let amId = poolConfig[idxAmAsId]
14161416 let prId = poolConfig[idxPrAsId]
14171417 let lpId = poolConfig[idxLPAsId]
1418- let $t04776447868 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1419- let lpAmount = $t04776447868._1
1420- let state = $t04776447868._2
1421- let feeAmount = $t04776447868._3
1422- let bonus = $t04776447868._4
1418+ let $t04780447908 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1419+ let lpAmount = $t04780447908._1
1420+ let state = $t04780447908._2
1421+ let feeAmount = $t04780447908._3
1422+ let bonus = $t04780447908._4
14231423 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14241424 }
14251425
14261426
14271427
14281428 @Callable(i)
14291429 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
14301430 then throw("denied")
14311431 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
14321432
14331433
14341434
14351435 @Callable(i)
14361436 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
14371437 then pd
14381438 else [StringEntry(k, v)]
14391439
14401440
14411441
14421442 @Callable(i)
14431443 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
14441444 then pd
14451445 else [IntegerEntry(k, v)]
14461446
14471447
14481448
14491449 @Callable(i)
14501450 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
14511451
14521452
14531453
14541454 @Callable(i)
14551455 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
14561456
14571457
14581458
14591459 @Callable(i)
14601460 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
14611461 let pr = calcPrices(amAmt, prAmt, lpAmt)
14621462 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
14631463 }
14641464
14651465
14661466
14671467 @Callable(i)
14681468 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
14691469
14701470
14711471
14721472 @Callable(i)
14731473 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
14741474
14751475
14761476
14771477 @Callable(i)
14781478 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
14791479
14801480
14811481
14821482 @Callable(i)
14831483 func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, epo(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, true, false, 0, ""))
14841484
14851485
14861486
14871487 @Callable(i)
14881488 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
14891489 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
14901490 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
14911491 }
14921492
14931493
14941494 @Verifier(tx)
14951495 func verify () = {
14961496 let targetPublicKey = match m() {
14971497 case pk: ByteVector =>
14981498 pk
14991499 case _: Unit =>
15001500 tx.senderPublicKey
15011501 case _ =>
15021502 throw("Match error")
15031503 }
15041504 match tx {
15051505 case order: Order =>
15061506 let matcherPub = mp()
15071507 let orderValid = moa(order)
15081508 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15091509 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15101510 if (if (if (orderValid)
15111511 then senderValid
15121512 else false)
15131513 then matcherValid
15141514 else false)
15151515 then true
15161516 else toe(orderValid, senderValid, matcherValid)
15171517 case s: SetScriptTransaction =>
15181518 let newHash = blake2b256(value(s.script))
15191519 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15201520 let currentHash = scriptHash(this)
15211521 if (if ((allowedHash == newHash))
15221522 then (currentHash != newHash)
15231523 else false)
15241524 then true
15251525 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15261526 case _ =>
15271527 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15281528 }
15291529 }
15301530

github/deemru/w8io/026f985 
200.95 ms