tx · 79yjyjUydGCdkcZkKxFrMwMK2zu5uxc8FEhCanteZNfL

3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW:  -0.01400000 Waves

2021.06.28 18:27 [1590403] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves

{ "type": 13, "id": "79yjyjUydGCdkcZkKxFrMwMK2zu5uxc8FEhCanteZNfL", "fee": 1400000, "feeAssetId": null, "timestamp": 1624894029974, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "5YJ4muZ96DmfGzFZTHFu96LwBe7bZBbxdJ1Q4u8cv68XzRWtBnc2nZxVQakjqqHk5mG3rHmvsuCJidWCnsWZq77r" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEYAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAAZrQ2F1c2UCAAAADnNod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WJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5SdOaXA==", "height": 1590403, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BUbhxRzqkXXikwkQbuev1RRtYusjGRvTNwkKM9G7qF3b Next: CUahbaj1hwsxeqma2U7zdrFTY6gBfrnnqHtUnq4wAnbk Diff:
OldNewDifferences
189189 else acc
190190
191191 let stepAmount = {
192- let $list56675710 = [1, 2, 3, 4, 5]
193- let $size56675710 = size($list56675710)
194- let $acc056675710 = -1
195- if (($size56675710 == 0))
196- then $acc056675710
192+ let $list56905733 = [1, 2, 3, 4, 5]
193+ let $size56905733 = size($list56905733)
194+ let $acc056905733 = -1
195+ if (($size56905733 == 0))
196+ then $acc056905733
197197 else {
198- let $acc156675710 = getStepAmount($acc056675710, $list56675710[0])
199- if (($size56675710 == 1))
200- then $acc156675710
198+ let $acc156905733 = getStepAmount($acc056905733, $list56905733[0])
199+ if (($size56905733 == 1))
200+ then $acc156905733
201201 else {
202- let $acc256675710 = getStepAmount($acc156675710, $list56675710[1])
203- if (($size56675710 == 2))
204- then $acc256675710
202+ let $acc256905733 = getStepAmount($acc156905733, $list56905733[1])
203+ if (($size56905733 == 2))
204+ then $acc256905733
205205 else {
206- let $acc356675710 = getStepAmount($acc256675710, $list56675710[2])
207- if (($size56675710 == 3))
208- then $acc356675710
206+ let $acc356905733 = getStepAmount($acc256905733, $list56905733[2])
207+ if (($size56905733 == 3))
208+ then $acc356905733
209209 else {
210- let $acc456675710 = getStepAmount($acc356675710, $list56675710[3])
211- if (($size56675710 == 4))
212- then $acc456675710
210+ let $acc456905733 = getStepAmount($acc356905733, $list56905733[3])
211+ if (($size56905733 == 4))
212+ then $acc456905733
213213 else {
214- let $acc556675710 = getStepAmount($acc456675710, $list56675710[4])
215- if (($size56675710 == 5))
216- then $acc556675710
214+ let $acc556905733 = getStepAmount($acc456905733, $list56905733[4])
215+ if (($size56905733 == 5))
216+ then $acc556905733
217217 else {
218- let $acc656675710 = getStepAmount($acc556675710, $list56675710[5])
218+ let $acc656905733 = getStepAmount($acc556905733, $list56905733[5])
219219 throw("List size exceed 5")
220220 }
221221 }
285285
286286 @Callable(i)
287287 func init () = {
288- let $t083908467 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
289- let pmtAmountA = $t083908467._1
290- let pmtAssetIdA = $t083908467._2
291- let $t084728549 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
292- let pmtAmountB = $t084728549._1
293- let pmtAssetIdB = $t084728549._2
294- let $t085548631 = getAssetInfo(pmtAssetIdA)
295- let pmtStrAssetIdA = $t085548631._1
296- let pmtAssetNameA = $t085548631._2
297- let pmtDecimalsA = $t085548631._3
298- let $t086368713 = getAssetInfo(pmtAssetIdB)
299- let pmtStrAssetIdB = $t086368713._1
300- let pmtAssetNameB = $t086368713._2
301- let pmtDecimalsB = $t086368713._3
288+ let $t084138490 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
289+ let pmtAmountA = $t084138490._1
290+ let pmtAssetIdA = $t084138490._2
291+ let $t084958572 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
292+ let pmtAmountB = $t084958572._1
293+ let pmtAssetIdB = $t084958572._2
294+ let $t085778654 = getAssetInfo(pmtAssetIdA)
295+ let pmtStrAssetIdA = $t085778654._1
296+ let pmtAssetNameA = $t085778654._2
297+ let pmtDecimalsA = $t085778654._3
298+ let $t086598736 = getAssetInfo(pmtAssetIdB)
299+ let pmtStrAssetIdB = $t086598736._1
300+ let pmtAssetNameB = $t086598736._2
301+ let pmtDecimalsB = $t086598736._3
302302 if (isDefined(getBoolean(this, kActive)))
303303 then throwIsActive()
304304 else if ((pmtAssetIdA == pmtAssetIdB))
355355
356356 @Callable(i)
357357 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = {
358- let $t01292813003 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
359- let pmtAmount = $t01292813003._1
360- let pmtAssetId = $t01292813003._2
358+ let $t01295113026 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
359+ let pmtAmount = $t01295113026._1
360+ let pmtAssetId = $t01295113026._2
361361 let pmtMinThreshold = 5000000
362362 let thresholdValueForMinTolerance = 50000000
363363 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
379379 else false)
380380 then throwAssets()
381381 else {
382- let $t01394014546 = if ((pmtAssetId == assetIdA))
382+ let $t01396314569 = if ((pmtAssetId == assetIdA))
383383 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
384384 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
385- let virtualReplenishA = $t01394014546._1
386- let virtualReplenishB = $t01394014546._2
387- let balanceAfterSwapA = $t01394014546._3
388- let balanceAfterSwapB = $t01394014546._4
389- let newBalanceA = $t01394014546._5
390- let newBalanceB = $t01394014546._6
385+ let virtualReplenishA = $t01396314569._1
386+ let virtualReplenishB = $t01396314569._2
387+ let balanceAfterSwapA = $t01396314569._3
388+ let balanceAfterSwapB = $t01396314569._4
389+ let newBalanceA = $t01396314569._5
390+ let newBalanceB = $t01396314569._6
391391 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
392392 let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
393393 let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
422422
423423 @Callable(i)
424424 func withdraw () = {
425- let $t01749017633 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
426- let pmtAmount = $t01749017633._1
427- let pmtAssetId = $t01749017633._2
425+ let $t01751317656 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
426+ let pmtAmount = $t01751317656._1
427+ let pmtAssetId = $t01751317656._2
428428 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
429429 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
430430 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
447447
448448 @Callable(i)
449449 func exchange (estimatedAmountToReceive,minAmountToReceive) = {
450- let $t01891618991 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
451- let pmtAmount = $t01891618991._1
452- let pmtAssetId = $t01891618991._2
450+ let $t01893919014 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
451+ let pmtAmount = $t01893919014._1
452+ let pmtAssetId = $t01893919014._2
453453 if (!(isActive))
454454 then throwIsInactive()
455455 else if ((0 >= estimatedAmountToReceive))
477477 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
478478 let governanceReward = fraction(amount, feeGovernance, feeScale6)
479479 let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6)
480- let $t02034220605 = if ((pmtAssetId == assetIdA))
480+ let $t02036520628 = if ((pmtAssetId == assetIdA))
481481 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
482482 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
483- let newBalanceA = $t02034220605._1
484- let newBalanceB = $t02034220605._2
483+ let newBalanceA = $t02036520628._1
484+ let newBalanceB = $t02036520628._2
485485 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
486486 if (if ((dAppThresholdAmount > newBalanceA))
487487 then true
536536 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
537537 if (!(isActive))
538538 then throwIsInactive()
539- else if ((0 > amountLeave))
540- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
541- else if (if ((0 > uncountableA))
542- then true
543- else (0 > uncountableB))
544- then suspend("Enroll amount negative")
545- else if (if ((0 > amountEnrollA))
539+ else if ((i.caller != this))
540+ then throwOnlyAdmin()
541+ else if ((0 > amountLeave))
542+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
543+ else if (if ((0 > uncountableA))
546544 then true
547- else (0 > amountEnrollB))
548- then throw("Too large amountLeave")
549- else [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
545+ else (0 > uncountableB))
546+ then suspend("Enroll amount negative")
547+ else if (if ((0 > amountEnrollA))
548+ then true
549+ else (0 > amountEnrollB))
550+ then throw("Too large amountLeave")
551+ else [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
550552 }
551553
552554
553555 @Verifier(tx)
554556 func verify () = match tx {
555557 case invoke: InvokeScriptTransaction =>
556- let callTakeIntoAccount = (invoke.function == "takeIntoAccountExtraFunds")
558+ let callTakeIntoAccount = if ((invoke.dApp == this))
559+ then (invoke.function == "takeIntoAccountExtraFunds")
560+ else false
557561 let callStaking = if ((invoke.dApp == stakingAddress))
558562 then if (if (if ((invoke.function == "lockNeutrino"))
559563 then (size(invoke.payments) == 1)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "2.0.0"
55
66 let kVersion = "version"
77
88 let kActive = "active"
99
1010 let kAssetIdA = "A_asset_id"
1111
1212 let kAssetIdB = "B_asset_id"
1313
1414 let kBalanceA = "A_asset_balance"
1515
1616 let kBalanceB = "B_asset_balance"
1717
1818 let kShareAssetId = "share_asset_id"
1919
2020 let kShareAssetSupply = "share_asset_supply"
2121
2222 let kFee = "commission"
2323
2424 let kFeeScaleDelimiter = "commission_scale_delimiter"
2525
2626 let kInvariant = "invariant"
2727
2828 let kCause = "shutdown_cause"
2929
3030 let adm1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3131
3232 let adm2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3333
3434 let adm3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3535
3636 let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3737
3838 let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
3939
4040 let govAddr = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
4141
4242 let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
4343
4444 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
4545
4646 let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee))
4747
4848 let isActive = getBooleanValue(this, kActive)
4949
5050 let strAssetIdA = getStringValue(this, kAssetIdA)
5151
5252 let strAssetIdB = getStringValue(this, kAssetIdB)
5353
5454 let assetIdA = if ((strAssetIdA == "WAVES"))
5555 then unit
5656 else fromBase58String(strAssetIdA)
5757
5858 let assetIdB = if ((strAssetIdB == "WAVES"))
5959 then unit
6060 else fromBase58String(strAssetIdB)
6161
6262 let assetNameA = match assetIdA {
6363 case id: ByteVector =>
6464 value(assetInfo(id)).name
6565 case waves: Unit =>
6666 "WAVES"
6767 case _ =>
6868 throw("Match error")
6969 }
7070
7171 let assetNameB = match assetIdB {
7272 case id: ByteVector =>
7373 value(assetInfo(id)).name
7474 case waves: Unit =>
7575 "WAVES"
7676 case _ =>
7777 throw("Match error")
7878 }
7979
8080 let balanceA = getIntegerValue(this, kBalanceA)
8181
8282 let balanceB = getIntegerValue(this, kBalanceB)
8383
8484 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
8585
8686 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
8787
8888 let invariant = getIntegerValue(this, kInvariant)
8989
9090 let fee = 500
9191
9292 let feeGovernance = 200
9393
9494 let feeScale6 = 1000000
9595
9696 let scale3 = 1000
9797
9898 let scale8 = 100000000
9999
100100 let scale12 = 1000000000000
101101
102102 let slippageScale3 = 1000
103103
104104 let digits8 = 8
105105
106106 let dAppThreshold = 50
107107
108108 let dAppThresholdScale2 = 100
109109
110110 let exchangeRatioLimitMin = 90000000
111111
112112 let exchangeRatioLimitMax = 110000000
113113
114114 let alpha = 50
115115
116116 let alphaDigits = 2
117117
118118 let beta = 46000000
119119
120120 func accountBalance (assetId) = match assetId {
121121 case id: ByteVector =>
122122 assetBalance(this, id)
123123 case waves: Unit =>
124124 wavesBalance(this).available
125125 case _ =>
126126 throw("Match error")
127127 }
128128
129129
130130 let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) {
131131 case staked: Int =>
132132 staked
133133 case nothing: Unit =>
134134 0
135135 case _ =>
136136 throw("Match error")
137137 }
138138
139139 let availableBalanceA = (balanceA - (if ((assetIdA == USDN))
140140 then stakedAmountUSDN
141141 else 0))
142142
143143 let availableBalanceB = (balanceB - (if ((assetIdB == USDN))
144144 then stakedAmountUSDN
145145 else 0))
146146
147147 let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN))
148148 then stakedAmountUSDN
149149 else 0))
150150
151151 let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN))
152152 then stakedAmountUSDN
153153 else 0))
154154
155155 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
156156 then (accountBalanceWithStakedB >= balanceB)
157157 else false
158158
159159 func skewness (x,y) = (((fraction(scale12, x, y) + fraction(scale12, y, x)) / 2) / 10000)
160160
161161
162162 func invariantCalc (x,y) = {
163163 let sk = skewness(x, y)
164164 (fraction((x + y), scale8, pow(sk, digits8, alpha, alphaDigits, digits8, UP)) + (2 * fraction(pow(fraction(x, y, scale8), 0, 5, 1, (digits8 / 2), DOWN), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8)))
165165 }
166166
167167
168168 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
169169 let slippageValue = (scale8 - ((scale8 * 1) / 10000000))
170170 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
171171 let x = (balanceA + tokenReceiveAmount)
172172 let y = (balanceB + tokenReceiveAmount)
173173 let invariantNew = if ((tokenId == assetIdA))
174174 then invariantCalc(x, (balanceB - amountToSendEstimated))
175175 else if ((tokenId == assetIdB))
176176 then invariantCalc((balanceA - amountToSendEstimated), y)
177177 else throw("Wrong asset in payment")
178178 let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
179179 func getStepAmount (acc,step) = if ((acc == -1))
180180 then {
181181 let amountToSend = (amountToSendEstimated - ((step * deltaBetweenMaxAndMinSendValue) / 5))
182182 let stepInvariant = if ((tokenId == assetIdA))
183183 then invariantCalc(x, (balanceB - amountToSend))
184184 else invariantCalc((balanceA - amountToSend), y)
185185 if ((stepInvariant > invariant))
186186 then amountToSend
187187 else -1
188188 }
189189 else acc
190190
191191 let stepAmount = {
192- let $list56675710 = [1, 2, 3, 4, 5]
193- let $size56675710 = size($list56675710)
194- let $acc056675710 = -1
195- if (($size56675710 == 0))
196- then $acc056675710
192+ let $list56905733 = [1, 2, 3, 4, 5]
193+ let $size56905733 = size($list56905733)
194+ let $acc056905733 = -1
195+ if (($size56905733 == 0))
196+ then $acc056905733
197197 else {
198- let $acc156675710 = getStepAmount($acc056675710, $list56675710[0])
199- if (($size56675710 == 1))
200- then $acc156675710
198+ let $acc156905733 = getStepAmount($acc056905733, $list56905733[0])
199+ if (($size56905733 == 1))
200+ then $acc156905733
201201 else {
202- let $acc256675710 = getStepAmount($acc156675710, $list56675710[1])
203- if (($size56675710 == 2))
204- then $acc256675710
202+ let $acc256905733 = getStepAmount($acc156905733, $list56905733[1])
203+ if (($size56905733 == 2))
204+ then $acc256905733
205205 else {
206- let $acc356675710 = getStepAmount($acc256675710, $list56675710[2])
207- if (($size56675710 == 3))
208- then $acc356675710
206+ let $acc356905733 = getStepAmount($acc256905733, $list56905733[2])
207+ if (($size56905733 == 3))
208+ then $acc356905733
209209 else {
210- let $acc456675710 = getStepAmount($acc356675710, $list56675710[3])
211- if (($size56675710 == 4))
212- then $acc456675710
210+ let $acc456905733 = getStepAmount($acc356905733, $list56905733[3])
211+ if (($size56905733 == 4))
212+ then $acc456905733
213213 else {
214- let $acc556675710 = getStepAmount($acc456675710, $list56675710[4])
215- if (($size56675710 == 5))
216- then $acc556675710
214+ let $acc556905733 = getStepAmount($acc456905733, $list56905733[4])
215+ if (($size56905733 == 5))
216+ then $acc556905733
217217 else {
218- let $acc656675710 = getStepAmount($acc556675710, $list56675710[5])
218+ let $acc656905733 = getStepAmount($acc556905733, $list56905733[5])
219219 throw("List size exceed 5")
220220 }
221221 }
222222 }
223223 }
224224 }
225225 }
226226 }
227227 if ((0 > stepAmount))
228228 then throw("something went wrong while working with amountToSend")
229229 else if (if ((invariantEstimatedRatio > slippageValue))
230230 then (invariantNew > invariant)
231231 else false)
232232 then amountToSendEstimated
233233 else stepAmount
234234 }
235235
236236
237237 func getAssetInfo (assetId) = match assetId {
238238 case id: ByteVector =>
239239 let stringId = toBase58String(id)
240240 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
241241 $Tuple3(stringId, info.name, info.decimals)
242242 case waves: Unit =>
243243 $Tuple3("WAVES", "WAVES", 8)
244244 case _ =>
245245 throw("Match error")
246246 }
247247
248248
249249 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
250250
251251
252252 func deductStakingFee (amount,assetId) = if ((assetId == USDN))
253253 then {
254254 let result = (amount - stakingFeeInUSDN)
255255 if ((0 >= result))
256256 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N"))
257257 else result
258258 }
259259 else amount
260260
261261
262262 func throwIsActive () = throw("DApp is already active")
263263
264264
265265 func throwIsInactive () = throw("DApp is inactive at this moment")
266266
267267
268268 func throwOnlyAdmin () = throw("Only admin can call this function")
269269
270270
271271 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
272272
273273
274274 func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB))
275275
276276
277277 func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
278278
279279
280280 func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
281281
282282
283283 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
284284
285285
286286 @Callable(i)
287287 func init () = {
288- let $t083908467 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
289- let pmtAmountA = $t083908467._1
290- let pmtAssetIdA = $t083908467._2
291- let $t084728549 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
292- let pmtAmountB = $t084728549._1
293- let pmtAssetIdB = $t084728549._2
294- let $t085548631 = getAssetInfo(pmtAssetIdA)
295- let pmtStrAssetIdA = $t085548631._1
296- let pmtAssetNameA = $t085548631._2
297- let pmtDecimalsA = $t085548631._3
298- let $t086368713 = getAssetInfo(pmtAssetIdB)
299- let pmtStrAssetIdB = $t086368713._1
300- let pmtAssetNameB = $t086368713._2
301- let pmtDecimalsB = $t086368713._3
288+ let $t084138490 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
289+ let pmtAmountA = $t084138490._1
290+ let pmtAssetIdA = $t084138490._2
291+ let $t084958572 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
292+ let pmtAmountB = $t084958572._1
293+ let pmtAssetIdB = $t084958572._2
294+ let $t085778654 = getAssetInfo(pmtAssetIdA)
295+ let pmtStrAssetIdA = $t085778654._1
296+ let pmtAssetNameA = $t085778654._2
297+ let pmtDecimalsA = $t085778654._3
298+ let $t086598736 = getAssetInfo(pmtAssetIdB)
299+ let pmtStrAssetIdB = $t086598736._1
300+ let pmtAssetNameB = $t086598736._2
301+ let pmtDecimalsB = $t086598736._3
302302 if (isDefined(getBoolean(this, kActive)))
303303 then throwIsActive()
304304 else if ((pmtAssetIdA == pmtAssetIdB))
305305 then throw("Assets must be different")
306306 else {
307307 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
308308 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
309309 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
310310 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN))
311311 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
312312 let shareIssueId = calculateAssetId(shareIssue)
313313 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
314314 [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
315315 }
316316 }
317317
318318
319319
320320 @Callable(i)
321321 func replenishWithTwoTokens (slippageTolerance) = {
322322 let pmtAssetIdA = i.payments[0].assetId
323323 let pmtAssetIdB = i.payments[1].assetId
324324 let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA)
325325 let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB)
326326 let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB))
327327 let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA)
328328 let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB)
329329 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
330330 let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))
331331 if (!(isActive))
332332 then throwIsInactive()
333333 else if (if ((0 > slippageTolerance))
334334 then true
335335 else (slippageTolerance > 10))
336336 then throw("Slippage tolerance must be <= 1%")
337337 else if ((size(i.payments) != 2))
338338 then throw("Two attached assets expected")
339339 else if (if ((pmtAssetIdA != assetIdA))
340340 then true
341341 else (pmtAssetIdB != assetIdB))
342342 then throwAssets()
343343 else if (if ((((scale3 * (slippageScale3 - slippageTolerance)) / slippageScale3) > tokenRatio))
344344 then true
345345 else (tokenRatio > ((scale3 * (slippageScale3 + slippageTolerance)) / slippageScale3)))
346346 then throw("Incorrect assets amount: amounts must have the contract ratio")
347347 else if ((shareTokenToPayAmount == 0))
348348 then throw("Too small amount to replenish")
349349 else if (!(hasEnoughBalance))
350350 then suspendSuspicious()
351351 else [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
352352 }
353353
354354
355355
356356 @Callable(i)
357357 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = {
358- let $t01292813003 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
359- let pmtAmount = $t01292813003._1
360- let pmtAssetId = $t01292813003._2
358+ let $t01295113026 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
359+ let pmtAmount = $t01295113026._1
360+ let pmtAssetId = $t01295113026._2
361361 let pmtMinThreshold = 5000000
362362 let thresholdValueForMinTolerance = 50000000
363363 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
364364 then 100000
365365 else 1
366366 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
367367 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
368368 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
369369 if (!(isActive))
370370 then throwIsInactive()
371371 else if ((pmtMinThreshold > pmtAmount))
372372 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
373373 else if ((size(i.payments) != 1))
374374 then throw("One attached payment expected")
375375 else if (!(hasEnoughBalance))
376376 then suspendSuspicious()
377377 else if (if ((pmtAssetId != assetIdA))
378378 then (pmtAssetId != assetIdB)
379379 else false)
380380 then throwAssets()
381381 else {
382- let $t01394014546 = if ((pmtAssetId == assetIdA))
382+ let $t01396314569 = if ((pmtAssetId == assetIdA))
383383 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
384384 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
385- let virtualReplenishA = $t01394014546._1
386- let virtualReplenishB = $t01394014546._2
387- let balanceAfterSwapA = $t01394014546._3
388- let balanceAfterSwapB = $t01394014546._4
389- let newBalanceA = $t01394014546._5
390- let newBalanceB = $t01394014546._6
385+ let virtualReplenishA = $t01396314569._1
386+ let virtualReplenishB = $t01396314569._2
387+ let balanceAfterSwapA = $t01396314569._3
388+ let balanceAfterSwapB = $t01396314569._4
389+ let newBalanceA = $t01396314569._5
390+ let newBalanceB = $t01396314569._6
391391 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
392392 let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
393393 let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
394394 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
395395 if (if ((slippageValueMinForSwap >= invariantEstimatedRatio))
396396 then true
397397 else (invariant > invariantNew))
398398 then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
399399 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
400400 then true
401401 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
402402 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
403403 else if (if ((dAppThresholdAmount > newBalanceA))
404404 then true
405405 else (dAppThresholdAmount > newBalanceB))
406406 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
407407 else {
408408 let ratioShareTokensInA = fraction(deductStakingFee(virtualReplenishA, assetIdA), scale8, balanceAfterSwapA)
409409 let ratioShareTokensInB = fraction(deductStakingFee(virtualReplenishB, assetIdB), scale8, balanceAfterSwapB)
410410 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
411411 let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
412412 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
413413 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
414414 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
415415 let invariantCalculated = invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB))
416416 [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId), ScriptTransfer(govAddr, governanceRewardTokenA, assetIdA), ScriptTransfer(govAddr, governanceRewardTokenB, assetIdB), IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalculated)]
417417 }
418418 }
419419 }
420420
421421
422422
423423 @Callable(i)
424424 func withdraw () = {
425- let $t01749017633 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
426- let pmtAmount = $t01749017633._1
427- let pmtAssetId = $t01749017633._2
425+ let $t01751317656 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
426+ let pmtAmount = $t01751317656._1
427+ let pmtAssetId = $t01751317656._2
428428 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
429429 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
430430 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
431431 if (!(isActive))
432432 then throwIsInactive()
433433 else if ((size(i.payments) != 1))
434434 then throw("One attached payment expected")
435435 else if ((pmtAssetId != shareAssetId))
436436 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
437437 else if (!(hasEnoughBalance))
438438 then suspendSuspicious()
439439 else if (if ((amountToPayA > availableBalanceA))
440440 then true
441441 else (amountToPayB > availableBalanceB))
442442 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
443443 else [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
444444 }
445445
446446
447447
448448 @Callable(i)
449449 func exchange (estimatedAmountToReceive,minAmountToReceive) = {
450- let $t01891618991 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
451- let pmtAmount = $t01891618991._1
452- let pmtAssetId = $t01891618991._2
450+ let $t01893919014 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
451+ let pmtAmount = $t01893919014._1
452+ let pmtAssetId = $t01893919014._2
453453 if (!(isActive))
454454 then throwIsInactive()
455455 else if ((0 >= estimatedAmountToReceive))
456456 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
457457 else if ((minAmountToReceive > estimatedAmountToReceive))
458458 then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive)))
459459 else if ((size(i.payments) != 1))
460460 then throw("One attached payment expected")
461461 else if (!(hasEnoughBalance))
462462 then suspendSuspicious()
463463 else if (if ((pmtAssetId != assetIdA))
464464 then (pmtAssetId != assetIdB)
465465 else false)
466466 then throwAssets()
467467 else if ((10000000 > pmtAmount))
468468 then throw("Only swap of 10.000000 or more tokens is allowed")
469469 else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
470470 then true
471471 else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
472472 then throw("Incorrect args and pmt ratio")
473473 else {
474474 let sendAssetId = if ((pmtAssetId == assetIdA))
475475 then assetIdB
476476 else assetIdA
477477 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
478478 let governanceReward = fraction(amount, feeGovernance, feeScale6)
479479 let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6)
480- let $t02034220605 = if ((pmtAssetId == assetIdA))
480+ let $t02036520628 = if ((pmtAssetId == assetIdA))
481481 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
482482 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
483- let newBalanceA = $t02034220605._1
484- let newBalanceB = $t02034220605._2
483+ let newBalanceA = $t02036520628._1
484+ let newBalanceB = $t02036520628._2
485485 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
486486 if (if ((dAppThresholdAmount > newBalanceA))
487487 then true
488488 else (dAppThresholdAmount > newBalanceB))
489489 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
490490 else if (if (if ((assetIdA == USDN))
491491 then (sendAssetId == assetIdA)
492492 else false)
493493 then (stakedAmountUSDN >= newBalanceA)
494494 else false)
495495 then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceA, assetNameA)
496496 else if (if (if ((assetIdB == USDN))
497497 then (sendAssetId == assetIdB)
498498 else false)
499499 then (stakedAmountUSDN >= newBalanceB)
500500 else false)
501501 then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceB, assetNameB)
502502 else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(govAddr, governanceReward, sendAssetId)]
503503 }
504504 }
505505
506506
507507
508508 @Callable(i)
509509 func shutdown () = if (!(isActive))
510510 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
511511 else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey)))
512512 then throwOnlyAdmin()
513513 else suspend("Paused by admin")
514514
515515
516516
517517 @Callable(i)
518518 func activate () = if (isActive)
519519 then throwIsActive()
520520 else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey)))
521521 then throwOnlyAdmin()
522522 else [BooleanEntry(kActive, true), DeleteEntry(kCause)]
523523
524524
525525
526526 @Callable(i)
527527 func takeIntoAccountExtraFunds (amountLeave) = {
528528 let uncountableA = (accountBalanceWithStakedA - balanceA)
529529 let uncountableB = (accountBalanceWithStakedB - balanceB)
530530 let amountEnrollA = (uncountableA - (if ((assetIdA == USDN))
531531 then amountLeave
532532 else 0))
533533 let amountEnrollB = (uncountableB - (if ((assetIdB == USDN))
534534 then amountLeave
535535 else 0))
536536 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
537537 if (!(isActive))
538538 then throwIsInactive()
539- else if ((0 > amountLeave))
540- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
541- else if (if ((0 > uncountableA))
542- then true
543- else (0 > uncountableB))
544- then suspend("Enroll amount negative")
545- else if (if ((0 > amountEnrollA))
539+ else if ((i.caller != this))
540+ then throwOnlyAdmin()
541+ else if ((0 > amountLeave))
542+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
543+ else if (if ((0 > uncountableA))
546544 then true
547- else (0 > amountEnrollB))
548- then throw("Too large amountLeave")
549- else [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
545+ else (0 > uncountableB))
546+ then suspend("Enroll amount negative")
547+ else if (if ((0 > amountEnrollA))
548+ then true
549+ else (0 > amountEnrollB))
550+ then throw("Too large amountLeave")
551+ else [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
550552 }
551553
552554
553555 @Verifier(tx)
554556 func verify () = match tx {
555557 case invoke: InvokeScriptTransaction =>
556- let callTakeIntoAccount = (invoke.function == "takeIntoAccountExtraFunds")
558+ let callTakeIntoAccount = if ((invoke.dApp == this))
559+ then (invoke.function == "takeIntoAccountExtraFunds")
560+ else false
557561 let callStaking = if ((invoke.dApp == stakingAddress))
558562 then if (if (if ((invoke.function == "lockNeutrino"))
559563 then (size(invoke.payments) == 1)
560564 else false)
561565 then (invoke.payments[0].assetId == USDN)
562566 else false)
563567 then true
564568 else if ((invoke.function == "unlockNeutrino"))
565569 then (size(invoke.payments) == 0)
566570 else false
567571 else false
568572 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adm1))
569573 then true
570574 else sigVerify(tx.bodyBytes, tx.proofs[0], adm2))
571575 then true
572576 else sigVerify(tx.bodyBytes, tx.proofs[0], adm3))
573577 then true
574578 else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking)
575579 if (callTakeIntoAccount)
576580 then true
577581 else callStaking
578582 case _ =>
579583 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
580584 }
581585

github/deemru/w8io/169f3d6 
116.00 ms