tx · FFi95nbRcZwVM8XqpTEEH7LamNAcxB9t3H9NCff4ni6R

3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37:  -0.01400000 Waves

2021.08.16 17:16 [1661016] smart account 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37 > SELF 0.00000000 Waves

{ "type": 13, "id": "FFi95nbRcZwVM8XqpTEEH7LamNAcxB9t3H9NCff4ni6R", "fee": 1400000, "feeAssetId": null, "timestamp": 1629123395987, "version": 2, "chainId": 84, "sender": "3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37", "senderPublicKey": "4bwUHdA4vTBJ1k43dYKiPYTDqm3QqiZXNGXoQstGAD1k", "proofs": [ "2rcJJ39WkhC1oK7Wa1cji9FypFnNHdzv29eyW2NQaLXQ1CGJsk49Vbt4YjU7vTDNSkc4ip6ckkbaQgnNBA1AeWXN", "4GifsBLBXxeoSgAi2Z44So74iPNWqnEm5NSopAFV6orqLr5aUjTVPBamTVVXb81FTS6AyrHQn9xFe6McaGtApebR" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYX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FrZUludG9BY2NvdW50BgUAAAAWY2FsbEVuYWJsZUZpcnN0SGFydmVzdAYFAAAAC2NhbGxTdGFraW5nBgUAAAAPZXhjaGFuZ2VUb1dhdmVzBgUAAAAPZXhjaGFuZ2VUb05TQlRzBQAAAA1zaWduZWRCeUFkbWluBwYFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMFAAAAE211bHRpU2lnbmVkQnlBZG1pbnNqu2Mv", "height": 1661016, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C3ZFD5MvuhYXhGkZXn3KvJLy7UXnf2XtpkP3wN4itE2X Next: Hba71bLSHwpTQBGNGhejtGNT6zv7szVcq5HcLNEYWcti Diff:
OldNewDifferences
292292
293293
294294 @Callable(i)
295-func init (userAdressStr) = {
296- let $t083608437 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
297- let pmtAmount1 = $t083608437._1
298- let pmtAssetId1 = $t083608437._2
299- let $t084428519 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
300- let pmtAmount2 = $t084428519._1
301- let pmtAssetId2 = $t084428519._2
302- let $t085248607 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
303- let pmtAmountSWOP = $t085248607._1
304- let pmtAssetIdSWOP = $t085248607._2
295+func init (userAddressStr) = {
296+ let $t083618438 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
297+ let pmtAmount1 = $t083618438._1
298+ let pmtAssetId1 = $t083618438._2
299+ let $t084438520 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
300+ let pmtAmount2 = $t084438520._1
301+ let pmtAssetId2 = $t084438520._2
302+ let $t085258608 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
303+ let pmtAmountSWOP = $t085258608._1
304+ let pmtAssetIdSWOP = $t085258608._2
305305 let check = isDataStorageUntouched(this)
306306 let userScriptHash = scriptHash(this)
307- let userAddress = addressFromStringValue(userAdressStr)
307+ let userAddress = addressFromStringValue(userAddressStr)
308308 if ((i.caller == this))
309309 then throw("You can't call yourself")
310310 else if (if ((pmtAssetIdSWOP != SWOP))
342342 }
343343 let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999)
344344 let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999)
345- let $t0996210189 = if ((asset2Priority > asset1Priority))
345+ let $t0996410191 = if ((asset2Priority > asset1Priority))
346346 then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1)
347347 else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2)
348- let pmtAmountA = $t0996210189._1
349- let pmtAssetIdA = $t0996210189._2
350- let pmtAmountB = $t0996210189._3
351- let pmtAssetIdB = $t0996210189._4
352- let $t01019810275 = getAssetInfo(pmtAssetIdA)
353- let pmtStrAssetIdA = $t01019810275._1
354- let pmtAssetNameA = $t01019810275._2
355- let pmtDecimalsA = $t01019810275._3
356- let $t01028410361 = getAssetInfo(pmtAssetIdB)
357- let pmtStrAssetIdB = $t01028410361._1
358- let pmtAssetNameB = $t01028410361._2
359- let pmtDecimalsB = $t01028410361._3
348+ let pmtAmountA = $t0996410191._1
349+ let pmtAssetIdA = $t0996410191._2
350+ let pmtAmountB = $t0996410191._3
351+ let pmtAssetIdB = $t0996410191._4
352+ let $t01020010277 = getAssetInfo(pmtAssetIdA)
353+ let pmtStrAssetIdA = $t01020010277._1
354+ let pmtAssetNameA = $t01020010277._2
355+ let pmtDecimalsA = $t01020010277._3
356+ let $t01028610363 = getAssetInfo(pmtAssetIdB)
357+ let pmtStrAssetIdB = $t01028610363._1
358+ let pmtAssetNameB = $t01028610363._2
359+ let pmtDecimalsB = $t01028610363._3
360360 let addPool = invoke(oracle, "addPool", [this, ((pmtAssetNameA + "_") + pmtAssetNameB)], nil)
361361 if ((addPool == addPool))
362362 then if (!(isDefined(getString(oracle, ("pool_" + toString(this))))))
399399 then (balanceB == 0)
400400 else false)
401401 then {
402- let $t01314613223 = getAssetInfo(pmtAssetIdA)
403- let pmtStrAssetIdA = $t01314613223._1
404- let pmtAssetNameA = $t01314613223._2
405- let pmtDecimalsA = $t01314613223._3
406- let $t01323213309 = getAssetInfo(pmtAssetIdB)
407- let pmtStrAssetIdB = $t01323213309._1
408- let pmtAssetNameB = $t01323213309._2
409- let pmtDecimalsB = $t01323213309._3
402+ let $t01314813225 = getAssetInfo(pmtAssetIdA)
403+ let pmtStrAssetIdA = $t01314813225._1
404+ let pmtAssetNameA = $t01314813225._2
405+ let pmtDecimalsA = $t01314813225._3
406+ let $t01323413311 = getAssetInfo(pmtAssetIdB)
407+ let pmtStrAssetIdB = $t01323413311._1
408+ let pmtAssetNameB = $t01323413311._2
409+ let pmtDecimalsB = $t01323413311._3
410410 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
411411 if ((pmtAssetIdA == pmtAssetIdB))
412412 then throw("Assets must be different")
469469
470470 @Callable(i)
471471 func withdraw () = {
472- let $t01770817858 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473- let pmtAmount = $t01770817858._1
474- let pmtAssetId = $t01770817858._2
472+ let $t01771017860 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473+ let pmtAmount = $t01771017860._1
474+ let pmtAssetId = $t01771017860._2
475475 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
476476 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
477477 if (!(isActive))
493493
494494 @Callable(i)
495495 func exchange (minAmountToReceive) = {
496- let $t01908419159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497- let pmtAmount = $t01908419159._1
498- let pmtAssetId = $t01908419159._2
496+ let $t01908619161 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497+ let pmtAmount = $t01908619161._1
498+ let pmtAssetId = $t01908619161._2
499499 func calculateFees (tokenFrom,tokenTo) = {
500500 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
501501 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
520520 else if ((pmtAssetId == assetIdA))
521521 then {
522522 let assetIdSend = assetIdB
523- let $t02043320524 = calculateFees(balanceA, balanceB)
524- let amountWithoutFee = $t02043320524._1
525- let amountWithFee = $t02043320524._2
526- let governanceReward = $t02043320524._3
523+ let $t02043520526 = calculateFees(balanceA, balanceB)
524+ let amountWithoutFee = $t02043520526._1
525+ let amountWithFee = $t02043520526._2
526+ let governanceReward = $t02043520526._3
527527 let newBalanceA = (balanceA + pmtAmount)
528528 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
529529 if (if ((stakedAmountA >= newBalanceA))
535535 else if ((pmtAssetId == assetIdB))
536536 then {
537537 let assetIdSend = assetIdA
538- let $t02134321434 = calculateFees(balanceB, balanceA)
539- let amountWithoutFee = $t02134321434._1
540- let amountWithFee = $t02134321434._2
541- let governanceReward = $t02134321434._3
538+ let $t02134521436 = calculateFees(balanceB, balanceA)
539+ let amountWithoutFee = $t02134521436._1
540+ let amountWithFee = $t02134521436._2
541+ let governanceReward = $t02134521436._3
542542 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
543543 let newBalanceB = (balanceB + pmtAmount)
544544 if (if ((stakedAmountA >= newBalanceA))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
55
66 let keyVersion = "version"
77
88 let keyActive = "active"
99
1010 let keyAssetIdA = "A_asset_id"
1111
1212 let keyAssetIdB = "B_asset_id"
1313
1414 let keyBalanceA = "A_asset_balance"
1515
1616 let keyBalanceB = "B_asset_balance"
1717
1818 let keyBalanceInitA = "A_asset_init"
1919
2020 let keyBalanceInitB = "B_asset_init"
2121
2222 let keyShareAssetId = "share_asset_id"
2323
2424 let keyShareAssetSupply = "share_asset_supply"
2525
2626 let keyCommission = "commission"
2727
2828 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
2929
3030 let keyCause = "shutdown_cause"
3131
3232 let keyFirstHarvest = "first_harvest"
3333
3434 let keyFirstHarvestHeight = "first_harvest_height"
3535
3636 let keyShareLimit = "share_limit_on_first_harvest"
3737
3838 let keyBasePeriod = "base_period"
3939
4040 let keyPeriodLength = "period_length"
4141
4242 let keyStartHeight = "start_height"
4343
4444 let keyOracleAssetPriority = "asset_priority_"
4545
4646 let keyOracleScriptHash = "script_hash_cpmm"
4747
4848 let keyInitPoolHeight = "init_pool_height_"
4949
5050 let keyAdminPubKey1 = "admin_pub_1"
5151
5252 let keyAdminPubKey2 = "admin_pub_2"
5353
5454 let keyAdminPubKey3 = "admin_pub_3"
5555
5656 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5757
5858 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
5959 case string: String =>
6060 fromBase58String(string)
6161 case nothing =>
6262 throw("Admin public key is empty")
6363 }
6464
6565
6666 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
6767
6868 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
6969
7070 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
7171
7272 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7373
7474 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7575
7676 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7777
7878 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
7979
8080 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
8181
8282 let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9'
8383
8484 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
8585
8686 let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
8787
8888 let stakingUSDNNSBTAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
8989
9090 let stakingEURNAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE')
9191
9292 let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
9393
9494 let USDNToNSBTExchanger = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA')
9595
9696 let stakingFeeInUSDN = 270000
9797
9898 let stakingFeeInEURN = 234000
9999
100100 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, keyBasePeriod), "Empty keyBasePeriod")
101101
102102 let startHeight = valueOrErrorMessage(getInteger(votingAddress, keyStartHeight), "Empty keyStartHeight")
103103
104104 let periodLength = valueOrErrorMessage(getInteger(votingAddress, keyPeriodLength), "Empty keyPeriodLength")
105105
106106 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1)
107107
108108 let isActive = getBooleanValue(this, keyActive)
109109
110110 let strAssetIdA = getStringValue(this, keyAssetIdA)
111111
112112 let strAssetIdB = getStringValue(this, keyAssetIdB)
113113
114114 let assetIdA = if ((strAssetIdA == "WAVES"))
115115 then unit
116116 else fromBase58String(strAssetIdA)
117117
118118 let assetIdB = if ((strAssetIdB == "WAVES"))
119119 then unit
120120 else fromBase58String(strAssetIdB)
121121
122122 let assetNameA = match assetIdA {
123123 case id: ByteVector =>
124124 value(assetInfo(id)).name
125125 case waves: Unit =>
126126 "WAVES"
127127 case _ =>
128128 throw("Match error")
129129 }
130130
131131 let assetNameB = match assetIdB {
132132 case id: ByteVector =>
133133 value(assetInfo(id)).name
134134 case waves: Unit =>
135135 "WAVES"
136136 case _ =>
137137 throw("Match error")
138138 }
139139
140140 let balanceA = getIntegerValue(this, keyBalanceA)
141141
142142 let balanceB = getIntegerValue(this, keyBalanceB)
143143
144144 let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId))
145145
146146 let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply)
147147
148148 let commission = 3000
149149
150150 let commissionGovernance = 1200
151151
152152 let commissionScaleDelimiter = 1000000
153153
154154 let scaleValue3 = 1000
155155
156156 let scaleValue8 = 100000000
157157
158158 let slippageToleranceDelimiter = 1000
159159
160160 let scaleValue8Digits = 8
161161
162162 let comissionForInitalization = 1000000000
163163
164164 func accountBalance (assetId) = match assetId {
165165 case id: ByteVector =>
166166 assetBalance(this, id)
167167 case waves: Unit =>
168168 wavesBalance(this).available
169169 case _ =>
170170 throw("Match error")
171171 }
172172
173173
174174 func stakedAmount (assetId) = {
175175 let stakedAmountCalculated = match assetId {
176176 case aId: ByteVector =>
177177 if (if ((aId == USDN))
178178 then true
179179 else (aId == NSBT))
180180 then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
181181 else if ((aId == EURN))
182182 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this)))
183183 else 0
184184 case _: Unit =>
185185 0
186186 case _ =>
187187 throw("Match error")
188188 }
189189 match stakedAmountCalculated {
190190 case i: Int =>
191191 i
192192 case _ =>
193193 0
194194 }
195195 }
196196
197197
198198 func isAllowedAsset (assetId) = match assetId {
199199 case id: ByteVector =>
200200 if (if ((id == USDN))
201201 then true
202202 else (id == SWOP))
203203 then true
204204 else false
205205 case waves: Unit =>
206206 true
207207 case _ =>
208208 throw("Match error")
209209 }
210210
211211
212212 let stakedAmountA = stakedAmount(assetIdA)
213213
214214 let stakedAmountB = stakedAmount(assetIdB)
215215
216216 let assetInitA = getIntegerValue(this, keyBalanceInitA)
217217
218218 let assetInitB = getIntegerValue(this, keyBalanceInitB)
219219
220220 let availableBalanceA = (balanceA - stakedAmountA)
221221
222222 let availableBalanceB = (balanceB - stakedAmountB)
223223
224224 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
225225
226226 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
227227
228228 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
229229 then (accountBalanceWithStakedB >= balanceB)
230230 else false
231231
232232 func getAssetInfo (assetId) = match assetId {
233233 case id: ByteVector =>
234234 let stringId = toBase58String(id)
235235 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
236236 $Tuple3(stringId, info.name, info.decimals)
237237 case waves: Unit =>
238238 $Tuple3("WAVES", "WAVES", 8)
239239 case _ =>
240240 throw("Match error")
241241 }
242242
243243
244244 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
245245 then $Tuple3("WAVES", "WAVES", 8)
246246 else {
247247 let stringId = assetStr
248248 let id = fromBase58String(assetStr)
249249 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
250250 $Tuple3(stringId, info.name, info.decimals)
251251 }
252252
253253
254254 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
255255
256256
257257 func deductStakingFee (amount,assetId,secondAssetId) = if (if ((assetId == USDN))
258258 then true
259259 else (assetId == EURN))
260260 then {
261261 let stakinFee = if ((assetId == USDN))
262262 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
263263 then 2
264264 else 1))
265265 else if ((assetId == EURN))
266266 then stakingFeeInEURN
267267 else 0
268268 let result = (amount - stakinFee)
269269 if ((0 >= result))
270270 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakinFee)) + "USDN/EURN"))
271271 else result
272272 }
273273 else amount
274274
275275
276276 func getStakingFee (assetId,secondAssetId) = if ((assetId == USDN))
277277 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
278278 then 2
279279 else 1))
280280 else if ((assetId == EURN))
281281 then stakingFeeInEURN
282282 else 0
283283
284284
285285 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"))
286286
287287
288288 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"))
289289
290290
291291 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB))
292292
293293
294294 @Callable(i)
295-func init (userAdressStr) = {
296- let $t083608437 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
297- let pmtAmount1 = $t083608437._1
298- let pmtAssetId1 = $t083608437._2
299- let $t084428519 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
300- let pmtAmount2 = $t084428519._1
301- let pmtAssetId2 = $t084428519._2
302- let $t085248607 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
303- let pmtAmountSWOP = $t085248607._1
304- let pmtAssetIdSWOP = $t085248607._2
295+func init (userAddressStr) = {
296+ let $t083618438 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
297+ let pmtAmount1 = $t083618438._1
298+ let pmtAssetId1 = $t083618438._2
299+ let $t084438520 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
300+ let pmtAmount2 = $t084438520._1
301+ let pmtAssetId2 = $t084438520._2
302+ let $t085258608 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
303+ let pmtAmountSWOP = $t085258608._1
304+ let pmtAssetIdSWOP = $t085258608._2
305305 let check = isDataStorageUntouched(this)
306306 let userScriptHash = scriptHash(this)
307- let userAddress = addressFromStringValue(userAdressStr)
307+ let userAddress = addressFromStringValue(userAddressStr)
308308 if ((i.caller == this))
309309 then throw("You can't call yourself")
310310 else if (if ((pmtAssetIdSWOP != SWOP))
311311 then true
312312 else (pmtAmountSWOP != comissionForInitalization))
313313 then throw("You need to attach 10 SWOP tokens")
314314 else if (if (!(isAllowedAsset(pmtAssetId1)))
315315 then !(isAllowedAsset(pmtAssetId2))
316316 else false)
317317 then throw("One of assets must be USDN, WAVES or SWOP")
318318 else if (if ((userScriptHash == value(getBinary(oracle, keyOracleScriptHash))))
319319 then true
320320 else !(check))
321321 then throw("Unexpected script was found.")
322322 else if (isDefined(getBoolean(this, keyActive)))
323323 then throw("DApp is already active")
324324 else if ((pmtAssetId1 == pmtAssetId2))
325325 then throw("Assets must be different")
326326 else {
327327 let pmtStrAssetId1 = match pmtAssetId1 {
328328 case id: ByteVector =>
329329 toBase58String(id)
330330 case waves: Unit =>
331331 "WAVES"
332332 case _ =>
333333 throw("Match error")
334334 }
335335 let pmtStrAssetId2 = match pmtAssetId2 {
336336 case id: ByteVector =>
337337 toBase58String(id)
338338 case waves: Unit =>
339339 "WAVES"
340340 case _ =>
341341 throw("Match error")
342342 }
343343 let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999)
344344 let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999)
345- let $t0996210189 = if ((asset2Priority > asset1Priority))
345+ let $t0996410191 = if ((asset2Priority > asset1Priority))
346346 then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1)
347347 else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2)
348- let pmtAmountA = $t0996210189._1
349- let pmtAssetIdA = $t0996210189._2
350- let pmtAmountB = $t0996210189._3
351- let pmtAssetIdB = $t0996210189._4
352- let $t01019810275 = getAssetInfo(pmtAssetIdA)
353- let pmtStrAssetIdA = $t01019810275._1
354- let pmtAssetNameA = $t01019810275._2
355- let pmtDecimalsA = $t01019810275._3
356- let $t01028410361 = getAssetInfo(pmtAssetIdB)
357- let pmtStrAssetIdB = $t01028410361._1
358- let pmtAssetNameB = $t01028410361._2
359- let pmtDecimalsB = $t01028410361._3
348+ let pmtAmountA = $t0996410191._1
349+ let pmtAssetIdA = $t0996410191._2
350+ let pmtAmountB = $t0996410191._3
351+ let pmtAssetIdB = $t0996410191._4
352+ let $t01020010277 = getAssetInfo(pmtAssetIdA)
353+ let pmtStrAssetIdA = $t01020010277._1
354+ let pmtAssetNameA = $t01020010277._2
355+ let pmtDecimalsA = $t01020010277._3
356+ let $t01028610363 = getAssetInfo(pmtAssetIdB)
357+ let pmtStrAssetIdB = $t01028610363._1
358+ let pmtAssetNameB = $t01028610363._2
359+ let pmtDecimalsB = $t01028610363._3
360360 let addPool = invoke(oracle, "addPool", [this, ((pmtAssetNameA + "_") + pmtAssetNameB)], nil)
361361 if ((addPool == addPool))
362362 then if (!(isDefined(getString(oracle, ("pool_" + toString(this))))))
363363 then throw("Pool is not added")
364364 else {
365365 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
366366 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
367367 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
368368 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
369369 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
370370 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
371371 let shareInitialSupply = fraction(arg1, arg2, arg3)
372372 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
373373 let shareIssueId = calculateAssetId(shareIssue)
374374 let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), IntegerEntry(keyInitPoolHeight, height), ScriptTransfer(userAddress, shareInitialSupply, shareIssueId), ScriptTransfer(walletAddress, comissionForInitalization, SWOP)]
375375 baseEntry
376376 }
377377 else throw("Strict value is not equal to itself.")
378378 }
379379 }
380380
381381
382382
383383 @Callable(i)
384384 func keepLimitForFirstHarvest (shareLimit) = if (!(isActive))
385385 then throw("DApp is inactive at this moment")
386386 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
387387 then throw("Only admin can call this function")
388388 else [IntegerEntry(keyShareLimit, shareLimit)]
389389
390390
391391
392392 @Callable(i)
393393 func replenishWithTwoTokens (slippageTolerance) = {
394394 let pmtAssetIdA = i.payments[0].assetId
395395 let pmtAssetIdB = i.payments[1].assetId
396396 let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA, pmtAssetIdB)
397397 let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB, pmtAssetIdA)
398398 if (if ((balanceA == 0))
399399 then (balanceB == 0)
400400 else false)
401401 then {
402- let $t01314613223 = getAssetInfo(pmtAssetIdA)
403- let pmtStrAssetIdA = $t01314613223._1
404- let pmtAssetNameA = $t01314613223._2
405- let pmtDecimalsA = $t01314613223._3
406- let $t01323213309 = getAssetInfo(pmtAssetIdB)
407- let pmtStrAssetIdB = $t01323213309._1
408- let pmtAssetNameB = $t01323213309._2
409- let pmtDecimalsB = $t01323213309._3
402+ let $t01314813225 = getAssetInfo(pmtAssetIdA)
403+ let pmtStrAssetIdA = $t01314813225._1
404+ let pmtAssetNameA = $t01314813225._2
405+ let pmtDecimalsA = $t01314813225._3
406+ let $t01323413311 = getAssetInfo(pmtAssetIdB)
407+ let pmtStrAssetIdB = $t01323413311._1
408+ let pmtAssetNameB = $t01323413311._2
409+ let pmtDecimalsB = $t01323413311._3
410410 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
411411 if ((pmtAssetIdA == pmtAssetIdB))
412412 then throw("Assets must be different")
413413 else {
414414 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
415415 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
416416 if (!(isActive))
417417 then throw("DApp is inactive at this moment")
418418 else if (if ((0 > slippageTolerance))
419419 then true
420420 else (slippageTolerance > slippageToleranceDelimiter))
421421 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
422422 else if ((size(i.payments) != 2))
423423 then throw("Two attached assets expected")
424424 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
425425 then true
426426 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
427427 then throw("Incorrect assets amount: amounts must have the contract ratio")
428428 else if (if ((pmtAssetIdA != assetIdA))
429429 then true
430430 else (pmtAssetIdB != assetIdB))
431431 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
432432 else if ((shareInitialSupply == 0))
433433 then throw("Too small amount to replenish")
434434 else if (!(hasEnoughBalance))
435435 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
436436 else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)]
437437 }
438438 }
439439 else {
440440 let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB))
441441 let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA)
442442 let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB)
443443 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8)
444444 if (!(isActive))
445445 then throw("DApp is inactive at this moment")
446446 else if (if ((0 > slippageTolerance))
447447 then true
448448 else (slippageTolerance > slippageToleranceDelimiter))
449449 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
450450 else if ((size(i.payments) != 2))
451451 then throw("Two attached assets expected")
452452 else if (if ((pmtAssetIdA != assetIdA))
453453 then true
454454 else (pmtAssetIdB != assetIdB))
455455 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
456456 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
457457 then true
458458 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
459459 then throw("Incorrect assets amount: amounts must have the contract ratio")
460460 else if ((shareTokenToPayAmount == 0))
461461 then throw("Too small amount to replenish")
462462 else if (!(hasEnoughBalance))
463463 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
464464 else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
465465 }
466466 }
467467
468468
469469
470470 @Callable(i)
471471 func withdraw () = {
472- let $t01770817858 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473- let pmtAmount = $t01770817858._1
474- let pmtAssetId = $t01770817858._2
472+ let $t01771017860 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473+ let pmtAmount = $t01771017860._1
474+ let pmtAssetId = $t01771017860._2
475475 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
476476 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
477477 if (!(isActive))
478478 then throw("DApp is inactive at this moment")
479479 else if ((size(i.payments) != 1))
480480 then throw("One attached payment expected")
481481 else if ((pmtAssetId != shareAssetId))
482482 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
483483 else if (!(hasEnoughBalance))
484484 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
485485 else if (if ((amountToPayA > availableBalanceA))
486486 then true
487487 else (amountToPayB > availableBalanceB))
488488 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
489489 else [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
490490 }
491491
492492
493493
494494 @Callable(i)
495495 func exchange (minAmountToReceive) = {
496- let $t01908419159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497- let pmtAmount = $t01908419159._1
498- let pmtAssetId = $t01908419159._2
496+ let $t01908619161 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497+ let pmtAmount = $t01908619161._1
498+ let pmtAssetId = $t01908619161._2
499499 func calculateFees (tokenFrom,tokenTo) = {
500500 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
501501 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
502502 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
503503 if ((minAmountToReceive > amountWithFee))
504504 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
505505 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
506506 }
507507
508508 if (!(isActive))
509509 then throw("DApp is inactive at this moment")
510510 else if (if ((balanceA == 0))
511511 then true
512512 else (balanceB == 0))
513513 then throw("Can't exchange with zero balance")
514514 else if ((0 >= minAmountToReceive))
515515 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
516516 else if ((size(i.payments) != 1))
517517 then throw("One attached payment expected")
518518 else if (!(hasEnoughBalance))
519519 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
520520 else if ((pmtAssetId == assetIdA))
521521 then {
522522 let assetIdSend = assetIdB
523- let $t02043320524 = calculateFees(balanceA, balanceB)
524- let amountWithoutFee = $t02043320524._1
525- let amountWithFee = $t02043320524._2
526- let governanceReward = $t02043320524._3
523+ let $t02043520526 = calculateFees(balanceA, balanceB)
524+ let amountWithoutFee = $t02043520526._1
525+ let amountWithFee = $t02043520526._2
526+ let governanceReward = $t02043520526._3
527527 let newBalanceA = (balanceA + pmtAmount)
528528 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
529529 if (if ((stakedAmountA >= newBalanceA))
530530 then true
531531 else (stakedAmountB >= newBalanceB))
532532 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
533533 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
534534 }
535535 else if ((pmtAssetId == assetIdB))
536536 then {
537537 let assetIdSend = assetIdA
538- let $t02134321434 = calculateFees(balanceB, balanceA)
539- let amountWithoutFee = $t02134321434._1
540- let amountWithFee = $t02134321434._2
541- let governanceReward = $t02134321434._3
538+ let $t02134521436 = calculateFees(balanceB, balanceA)
539+ let amountWithoutFee = $t02134521436._1
540+ let amountWithFee = $t02134521436._2
541+ let governanceReward = $t02134521436._3
542542 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
543543 let newBalanceB = (balanceB + pmtAmount)
544544 if (if ((stakedAmountA >= newBalanceA))
545545 then true
546546 else (stakedAmountB >= newBalanceB))
547547 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
548548 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
549549 }
550550 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
551551 }
552552
553553
554554
555555 @Callable(i)
556556 func shutdown () = if (!(isActive))
557557 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
558558 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
559559 then throw("Only admin can call this function")
560560 else suspend("Paused by admin")
561561
562562
563563
564564 @Callable(i)
565565 func activate () = if (isActive)
566566 then throw("DApp is already active")
567567 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
568568 then throw("Only admin can call this function")
569569 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
570570
571571
572572
573573 @Callable(i)
574574 func takeIntoAccountExtraFunds (amountLeave) = {
575575 let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA)
576576 let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB)
577577 let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit))
578578 then amountLeave
579579 else 0))
580580 let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit))
581581 then amountLeave
582582 else 0))
583583 if (!(isActive))
584584 then throw("DApp is inactive at this moment")
585585 else if ((i.caller != this))
586586 then throw("Only the DApp itself can call this function")
587587 else if ((0 > amountLeave))
588588 then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
589589 else if (if ((0 > uncountableAmountEnrollAssetA))
590590 then true
591591 else (0 > uncountableAmountEnrollAssetB))
592592 then suspend("Enroll amount negative")
593593 else if (if ((0 > amountEnrollA))
594594 then true
595595 else (0 > amountEnrollB))
596596 then throw("Too large amountLeave")
597597 else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
598598 }
599599
600600
601601
602602 @Callable(i)
603603 func enableFirstHarvest () = [BooleanEntry(keyFirstHarvest, true), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]
604604
605605
606606 @Verifier(tx)
607607 func verify () = {
608608 let multiSignedByAdmins = {
609609 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
610610 then 1
611611 else 0
612612 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
613613 then 1
614614 else 0
615615 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
616616 then 1
617617 else 0
618618 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
619619 }
620620 match tx {
621621 case inv: InvokeScriptTransaction =>
622622 let callTakeIntoAccount = if ((inv.dApp == this))
623623 then (inv.function == "takeIntoAccountExtraFunds")
624624 else false
625625 let callEnableFirstHarvest = if ((inv.dApp == this))
626626 then (inv.function == "enableFirstHarvest")
627627 else false
628628 let callStaking = if (if ((inv.dApp == stakingUSDNNSBTAddress))
629629 then if (if (if ((inv.function == "lockNeutrino"))
630630 then (size(inv.payments) == 1)
631631 else false)
632632 then if ((inv.payments[0].assetId == USDN))
633633 then true
634634 else (inv.payments[0].assetId == NSBT)
635635 else false)
636636 then true
637637 else if ((inv.function == "unlockNeutrino"))
638638 then (size(inv.payments) == 0)
639639 else false
640640 else false)
641641 then true
642642 else if ((inv.dApp == stakingEURNAddress))
643643 then if (if (if ((inv.function == "startStaking"))
644644 then (size(inv.payments) == 1)
645645 else false)
646646 then (inv.payments[0].assetId == EURN)
647647 else false)
648648 then true
649649 else if ((inv.function == "stopStaking"))
650650 then (size(inv.payments) == 0)
651651 else false
652652 else false
653653 let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger))
654654 then (inv.function == "exchange")
655655 else false)
656656 then (assetIdA == USDN)
657657 else false)
658658 then true
659659 else if (if ((assetIdB == USDN))
660660 then (size(inv.payments) == 1)
661661 else false)
662662 then (inv.payments[0].assetId == USDN)
663663 else false
664664 let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger))
665665 then (inv.function == "exchange")
666666 else false)
667667 then (assetIdA == NSBT)
668668 else false)
669669 then true
670670 else if (if ((assetIdB == NSBT))
671671 then (size(inv.payments) == 1)
672672 else false)
673673 then (inv.payments[0].assetId == USDN)
674674 else false
675675 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
676676 then true
677677 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
678678 then true
679679 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
680680 then true
681681 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
682682 if (if (if (if (if (if (callTakeIntoAccount)
683683 then true
684684 else callEnableFirstHarvest)
685685 then true
686686 else callStaking)
687687 then true
688688 else exchangeToWaves)
689689 then true
690690 else exchangeToNSBTs)
691691 then signedByAdmin
692692 else false)
693693 then true
694694 else multiSignedByAdmins
695695 case _ =>
696696 multiSignedByAdmins
697697 }
698698 }
699699

github/deemru/w8io/026f985 
89.73 ms