tx · C3ZFD5MvuhYXhGkZXn3KvJLy7UXnf2XtpkP3wN4itE2X

3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37:  -0.01400000 Waves

2021.08.16 16:28 [1660965] smart account 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37 > SELF 0.00000000 Waves

{ "type": 13, "id": "C3ZFD5MvuhYXhGkZXn3KvJLy7UXnf2XtpkP3wN4itE2X", "fee": 1400000, "feeAssetId": null, "timestamp": 1629120504757, "version": 2, "chainId": 84, "sender": "3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37", "senderPublicKey": "4bwUHdA4vTBJ1k43dYKiPYTDqm3QqiZXNGXoQstGAD1k", "proofs": [ "2hoNdo5L6LxXKe5acAj99QGpaTSgAy3SoPnMpbpYyeAszhpm8qjY24ikCiiURrLTebS5cSdoV9RjHw6uWMDtFToJ", "5eNsWpPA1hB15FS5WkRUtbKVTDGE4jvCu8dqZU7pfD8ig2PSDQoSBxKaVexJWZmSumPz1zDtqBC8UdnoNoEX1rmh" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE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5U3Rha2luZwMDAwMDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAFmNhbGxFbmFibGVGaXJzdEhhcnZlc3QGBQAAAAtjYWxsU3Rha2luZwYFAAAAD2V4Y2hhbmdlVG9XYXZlcwYFAAAAD2V4Y2hhbmdlVG9OU0JUcwUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5ztbOpaw==", "height": 1660965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2eoK9GQgWW5K2imh8paCwLr9nMsCQKbtXd2rCrUEzMBH Next: FFi95nbRcZwVM8XqpTEEH7LamNAcxB9t3H9NCff4ni6R Diff:
OldNewDifferences
3333
3434 let keyFirstHarvestHeight = "first_harvest_height"
3535
36-let kShareLimit = "share_limit_on_first_harvest"
36+let keyShareLimit = "share_limit_on_first_harvest"
3737
38-let kBasePeriod = "base_period"
38+let keyBasePeriod = "base_period"
3939
40-let kPeriodLength = "period_length"
40+let keyPeriodLength = "period_length"
4141
42-let kStartHeight = "start_height"
43-
44-let kFirstHarvestHeight = "first_harvest_height"
42+let keyStartHeight = "start_height"
4543
4644 let keyOracleAssetPriority = "asset_priority_"
4745
9997
10098 let stakingFeeInEURN = 234000
10199
102-let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
100+let basePeriod = valueOrErrorMessage(getInteger(votingAddress, keyBasePeriod), "Empty keyBasePeriod")
103101
104-let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
102+let startHeight = valueOrErrorMessage(getInteger(votingAddress, keyStartHeight), "Empty keyStartHeight")
105103
106-let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
104+let periodLength = valueOrErrorMessage(getInteger(votingAddress, keyPeriodLength), "Empty keyPeriodLength")
107105
108-let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
106+let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1)
109107
110108 let isActive = getBooleanValue(this, keyActive)
111109
294292
295293
296294 @Callable(i)
297-func init (userAdress) = {
298- let $t083878464 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
299- let pmtAmount1 = $t083878464._1
300- let pmtAssetId1 = $t083878464._2
301- let $t084698546 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
302- let pmtAmount2 = $t084698546._1
303- let pmtAssetId2 = $t084698546._2
304- let $t085518634 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
305- let pmtAmountSWOP = $t085518634._1
306- let pmtAssetIdSWOP = $t085518634._2
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
307305 let check = isDataStorageUntouched(this)
308306 let userScriptHash = scriptHash(this)
307+ let userAddress = addressFromStringValue(userAdressStr)
309308 if ((i.caller == this))
310309 then throw("You can't call yourself")
311310 else if (if ((pmtAssetIdSWOP != SWOP))
341340 case _ =>
342341 throw("Match error")
343342 }
344- let asset1Priority = valueOrElse(getInteger(oracle, ("keyOracleAssetPriority" + pmtStrAssetId1)), 999999)
345- let asset2Priority = valueOrElse(getInteger(oracle, ("keyOracleAssetPriority" + pmtStrAssetId2)), 999999)
346- let $t0993310160 = if ((asset2Priority > asset1Priority))
343+ let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999)
344+ let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999)
345+ let $t0996210189 = if ((asset2Priority > asset1Priority))
347346 then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1)
348347 else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2)
349- let pmtAmountA = $t0993310160._1
350- let pmtAssetIdA = $t0993310160._2
351- let pmtAmountB = $t0993310160._3
352- let pmtAssetIdB = $t0993310160._4
353- let $t01016910246 = getAssetInfo(pmtAssetIdA)
354- let pmtStrAssetIdA = $t01016910246._1
355- let pmtAssetNameA = $t01016910246._2
356- let pmtDecimalsA = $t01016910246._3
357- let $t01025510332 = getAssetInfo(pmtAssetIdB)
358- let pmtStrAssetIdB = $t01025510332._1
359- let pmtAssetNameB = $t01025510332._2
360- let pmtDecimalsB = $t01025510332._3
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
361360 let addPool = invoke(oracle, "addPool", [this, ((pmtAssetNameA + "_") + pmtAssetNameB)], nil)
362361 if ((addPool == addPool))
363362 then if (!(isDefined(getString(oracle, ("pool_" + toString(this))))))
372371 let shareInitialSupply = fraction(arg1, arg2, arg3)
373372 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
374373 let shareIssueId = calculateAssetId(shareIssue)
375- 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(walletAddress, shareInitialSupply, shareIssueId), ScriptTransfer(i.caller, comissionForInitalization, SWOP)]
374+ 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)]
376375 baseEntry
377376 }
378377 else throw("Strict value is not equal to itself.")
386385 then throw("DApp is inactive at this moment")
387386 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
388387 then throw("Only admin can call this function")
389- else [IntegerEntry(kShareLimit, shareLimit)]
388+ else [IntegerEntry(keyShareLimit, shareLimit)]
390389
391390
392391
400399 then (balanceB == 0)
401400 else false)
402401 then {
403- let $t01312013197 = getAssetInfo(pmtAssetIdA)
404- let pmtStrAssetIdA = $t01312013197._1
405- let pmtAssetNameA = $t01312013197._2
406- let pmtDecimalsA = $t01312013197._3
407- let $t01320613283 = getAssetInfo(pmtAssetIdB)
408- let pmtStrAssetIdB = $t01320613283._1
409- let pmtAssetNameB = $t01320613283._2
410- let pmtDecimalsB = $t01320613283._3
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
411410 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
412411 if ((pmtAssetIdA == pmtAssetIdB))
413412 then throw("Assets must be different")
470469
471470 @Callable(i)
472471 func withdraw () = {
473- let $t01768217832 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
474- let pmtAmount = $t01768217832._1
475- let pmtAssetId = $t01768217832._2
472+ let $t01770817858 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473+ let pmtAmount = $t01770817858._1
474+ let pmtAssetId = $t01770817858._2
476475 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
477476 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
478477 if (!(isActive))
494493
495494 @Callable(i)
496495 func exchange (minAmountToReceive) = {
497- let $t01905819133 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
498- let pmtAmount = $t01905819133._1
499- let pmtAssetId = $t01905819133._2
496+ let $t01908419159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497+ let pmtAmount = $t01908419159._1
498+ let pmtAssetId = $t01908419159._2
500499 func calculateFees (tokenFrom,tokenTo) = {
501500 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
502501 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
521520 else if ((pmtAssetId == assetIdA))
522521 then {
523522 let assetIdSend = assetIdB
524- let $t02040720498 = calculateFees(balanceA, balanceB)
525- let amountWithoutFee = $t02040720498._1
526- let amountWithFee = $t02040720498._2
527- let governanceReward = $t02040720498._3
523+ let $t02043320524 = calculateFees(balanceA, balanceB)
524+ let amountWithoutFee = $t02043320524._1
525+ let amountWithFee = $t02043320524._2
526+ let governanceReward = $t02043320524._3
528527 let newBalanceA = (balanceA + pmtAmount)
529528 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
530529 if (if ((stakedAmountA >= newBalanceA))
536535 else if ((pmtAssetId == assetIdB))
537536 then {
538537 let assetIdSend = assetIdA
539- let $t02131721408 = calculateFees(balanceB, balanceA)
540- let amountWithoutFee = $t02131721408._1
541- let amountWithFee = $t02131721408._2
542- let governanceReward = $t02131721408._3
538+ let $t02134321434 = calculateFees(balanceB, balanceA)
539+ let amountWithoutFee = $t02134321434._1
540+ let amountWithFee = $t02134321434._2
541+ let governanceReward = $t02134321434._3
543542 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
544543 let newBalanceB = (balanceB + pmtAmount)
545544 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
36-let kShareLimit = "share_limit_on_first_harvest"
36+let keyShareLimit = "share_limit_on_first_harvest"
3737
38-let kBasePeriod = "base_period"
38+let keyBasePeriod = "base_period"
3939
40-let kPeriodLength = "period_length"
40+let keyPeriodLength = "period_length"
4141
42-let kStartHeight = "start_height"
43-
44-let kFirstHarvestHeight = "first_harvest_height"
42+let keyStartHeight = "start_height"
4543
4644 let keyOracleAssetPriority = "asset_priority_"
4745
4846 let keyOracleScriptHash = "script_hash_cpmm"
4947
5048 let keyInitPoolHeight = "init_pool_height_"
5149
5250 let keyAdminPubKey1 = "admin_pub_1"
5351
5452 let keyAdminPubKey2 = "admin_pub_2"
5553
5654 let keyAdminPubKey3 = "admin_pub_3"
5755
5856 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5957
6058 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
6159 case string: String =>
6260 fromBase58String(string)
6361 case nothing =>
6462 throw("Admin public key is empty")
6563 }
6664
6765
6866 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
6967
7068 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
7169
7270 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
7371
7472 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7573
7674 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7775
7876 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7977
8078 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
8179
8280 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
8381
8482 let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9'
8583
8684 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
8785
8886 let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
8987
9088 let stakingUSDNNSBTAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
9189
9290 let stakingEURNAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE')
9391
9492 let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
9593
9694 let USDNToNSBTExchanger = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA')
9795
9896 let stakingFeeInUSDN = 270000
9997
10098 let stakingFeeInEURN = 234000
10199
102-let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
100+let basePeriod = valueOrErrorMessage(getInteger(votingAddress, keyBasePeriod), "Empty keyBasePeriod")
103101
104-let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
102+let startHeight = valueOrErrorMessage(getInteger(votingAddress, keyStartHeight), "Empty keyStartHeight")
105103
106-let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
104+let periodLength = valueOrErrorMessage(getInteger(votingAddress, keyPeriodLength), "Empty keyPeriodLength")
107105
108-let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
106+let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1)
109107
110108 let isActive = getBooleanValue(this, keyActive)
111109
112110 let strAssetIdA = getStringValue(this, keyAssetIdA)
113111
114112 let strAssetIdB = getStringValue(this, keyAssetIdB)
115113
116114 let assetIdA = if ((strAssetIdA == "WAVES"))
117115 then unit
118116 else fromBase58String(strAssetIdA)
119117
120118 let assetIdB = if ((strAssetIdB == "WAVES"))
121119 then unit
122120 else fromBase58String(strAssetIdB)
123121
124122 let assetNameA = match assetIdA {
125123 case id: ByteVector =>
126124 value(assetInfo(id)).name
127125 case waves: Unit =>
128126 "WAVES"
129127 case _ =>
130128 throw("Match error")
131129 }
132130
133131 let assetNameB = match assetIdB {
134132 case id: ByteVector =>
135133 value(assetInfo(id)).name
136134 case waves: Unit =>
137135 "WAVES"
138136 case _ =>
139137 throw("Match error")
140138 }
141139
142140 let balanceA = getIntegerValue(this, keyBalanceA)
143141
144142 let balanceB = getIntegerValue(this, keyBalanceB)
145143
146144 let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId))
147145
148146 let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply)
149147
150148 let commission = 3000
151149
152150 let commissionGovernance = 1200
153151
154152 let commissionScaleDelimiter = 1000000
155153
156154 let scaleValue3 = 1000
157155
158156 let scaleValue8 = 100000000
159157
160158 let slippageToleranceDelimiter = 1000
161159
162160 let scaleValue8Digits = 8
163161
164162 let comissionForInitalization = 1000000000
165163
166164 func accountBalance (assetId) = match assetId {
167165 case id: ByteVector =>
168166 assetBalance(this, id)
169167 case waves: Unit =>
170168 wavesBalance(this).available
171169 case _ =>
172170 throw("Match error")
173171 }
174172
175173
176174 func stakedAmount (assetId) = {
177175 let stakedAmountCalculated = match assetId {
178176 case aId: ByteVector =>
179177 if (if ((aId == USDN))
180178 then true
181179 else (aId == NSBT))
182180 then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
183181 else if ((aId == EURN))
184182 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this)))
185183 else 0
186184 case _: Unit =>
187185 0
188186 case _ =>
189187 throw("Match error")
190188 }
191189 match stakedAmountCalculated {
192190 case i: Int =>
193191 i
194192 case _ =>
195193 0
196194 }
197195 }
198196
199197
200198 func isAllowedAsset (assetId) = match assetId {
201199 case id: ByteVector =>
202200 if (if ((id == USDN))
203201 then true
204202 else (id == SWOP))
205203 then true
206204 else false
207205 case waves: Unit =>
208206 true
209207 case _ =>
210208 throw("Match error")
211209 }
212210
213211
214212 let stakedAmountA = stakedAmount(assetIdA)
215213
216214 let stakedAmountB = stakedAmount(assetIdB)
217215
218216 let assetInitA = getIntegerValue(this, keyBalanceInitA)
219217
220218 let assetInitB = getIntegerValue(this, keyBalanceInitB)
221219
222220 let availableBalanceA = (balanceA - stakedAmountA)
223221
224222 let availableBalanceB = (balanceB - stakedAmountB)
225223
226224 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
227225
228226 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
229227
230228 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
231229 then (accountBalanceWithStakedB >= balanceB)
232230 else false
233231
234232 func getAssetInfo (assetId) = match assetId {
235233 case id: ByteVector =>
236234 let stringId = toBase58String(id)
237235 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
238236 $Tuple3(stringId, info.name, info.decimals)
239237 case waves: Unit =>
240238 $Tuple3("WAVES", "WAVES", 8)
241239 case _ =>
242240 throw("Match error")
243241 }
244242
245243
246244 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
247245 then $Tuple3("WAVES", "WAVES", 8)
248246 else {
249247 let stringId = assetStr
250248 let id = fromBase58String(assetStr)
251249 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
252250 $Tuple3(stringId, info.name, info.decimals)
253251 }
254252
255253
256254 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
257255
258256
259257 func deductStakingFee (amount,assetId,secondAssetId) = if (if ((assetId == USDN))
260258 then true
261259 else (assetId == EURN))
262260 then {
263261 let stakinFee = if ((assetId == USDN))
264262 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
265263 then 2
266264 else 1))
267265 else if ((assetId == EURN))
268266 then stakingFeeInEURN
269267 else 0
270268 let result = (amount - stakinFee)
271269 if ((0 >= result))
272270 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakinFee)) + "USDN/EURN"))
273271 else result
274272 }
275273 else amount
276274
277275
278276 func getStakingFee (assetId,secondAssetId) = if ((assetId == USDN))
279277 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
280278 then 2
281279 else 1))
282280 else if ((assetId == EURN))
283281 then stakingFeeInEURN
284282 else 0
285283
286284
287285 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"))
288286
289287
290288 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"))
291289
292290
293291 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB))
294292
295293
296294 @Callable(i)
297-func init (userAdress) = {
298- let $t083878464 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
299- let pmtAmount1 = $t083878464._1
300- let pmtAssetId1 = $t083878464._2
301- let $t084698546 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
302- let pmtAmount2 = $t084698546._1
303- let pmtAssetId2 = $t084698546._2
304- let $t085518634 = $Tuple2(i.payments[2].amount, i.payments[2].assetId)
305- let pmtAmountSWOP = $t085518634._1
306- let pmtAssetIdSWOP = $t085518634._2
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
307305 let check = isDataStorageUntouched(this)
308306 let userScriptHash = scriptHash(this)
307+ let userAddress = addressFromStringValue(userAdressStr)
309308 if ((i.caller == this))
310309 then throw("You can't call yourself")
311310 else if (if ((pmtAssetIdSWOP != SWOP))
312311 then true
313312 else (pmtAmountSWOP != comissionForInitalization))
314313 then throw("You need to attach 10 SWOP tokens")
315314 else if (if (!(isAllowedAsset(pmtAssetId1)))
316315 then !(isAllowedAsset(pmtAssetId2))
317316 else false)
318317 then throw("One of assets must be USDN, WAVES or SWOP")
319318 else if (if ((userScriptHash == value(getBinary(oracle, keyOracleScriptHash))))
320319 then true
321320 else !(check))
322321 then throw("Unexpected script was found.")
323322 else if (isDefined(getBoolean(this, keyActive)))
324323 then throw("DApp is already active")
325324 else if ((pmtAssetId1 == pmtAssetId2))
326325 then throw("Assets must be different")
327326 else {
328327 let pmtStrAssetId1 = match pmtAssetId1 {
329328 case id: ByteVector =>
330329 toBase58String(id)
331330 case waves: Unit =>
332331 "WAVES"
333332 case _ =>
334333 throw("Match error")
335334 }
336335 let pmtStrAssetId2 = match pmtAssetId2 {
337336 case id: ByteVector =>
338337 toBase58String(id)
339338 case waves: Unit =>
340339 "WAVES"
341340 case _ =>
342341 throw("Match error")
343342 }
344- let asset1Priority = valueOrElse(getInteger(oracle, ("keyOracleAssetPriority" + pmtStrAssetId1)), 999999)
345- let asset2Priority = valueOrElse(getInteger(oracle, ("keyOracleAssetPriority" + pmtStrAssetId2)), 999999)
346- let $t0993310160 = if ((asset2Priority > asset1Priority))
343+ let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999)
344+ let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999)
345+ let $t0996210189 = if ((asset2Priority > asset1Priority))
347346 then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1)
348347 else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2)
349- let pmtAmountA = $t0993310160._1
350- let pmtAssetIdA = $t0993310160._2
351- let pmtAmountB = $t0993310160._3
352- let pmtAssetIdB = $t0993310160._4
353- let $t01016910246 = getAssetInfo(pmtAssetIdA)
354- let pmtStrAssetIdA = $t01016910246._1
355- let pmtAssetNameA = $t01016910246._2
356- let pmtDecimalsA = $t01016910246._3
357- let $t01025510332 = getAssetInfo(pmtAssetIdB)
358- let pmtStrAssetIdB = $t01025510332._1
359- let pmtAssetNameB = $t01025510332._2
360- let pmtDecimalsB = $t01025510332._3
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
361360 let addPool = invoke(oracle, "addPool", [this, ((pmtAssetNameA + "_") + pmtAssetNameB)], nil)
362361 if ((addPool == addPool))
363362 then if (!(isDefined(getString(oracle, ("pool_" + toString(this))))))
364363 then throw("Pool is not added")
365364 else {
366365 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
367366 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
368367 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
369368 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
370369 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
371370 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
372371 let shareInitialSupply = fraction(arg1, arg2, arg3)
373372 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
374373 let shareIssueId = calculateAssetId(shareIssue)
375- 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(walletAddress, shareInitialSupply, shareIssueId), ScriptTransfer(i.caller, comissionForInitalization, SWOP)]
374+ 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)]
376375 baseEntry
377376 }
378377 else throw("Strict value is not equal to itself.")
379378 }
380379 }
381380
382381
383382
384383 @Callable(i)
385384 func keepLimitForFirstHarvest (shareLimit) = if (!(isActive))
386385 then throw("DApp is inactive at this moment")
387386 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
388387 then throw("Only admin can call this function")
389- else [IntegerEntry(kShareLimit, shareLimit)]
388+ else [IntegerEntry(keyShareLimit, shareLimit)]
390389
391390
392391
393392 @Callable(i)
394393 func replenishWithTwoTokens (slippageTolerance) = {
395394 let pmtAssetIdA = i.payments[0].assetId
396395 let pmtAssetIdB = i.payments[1].assetId
397396 let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA, pmtAssetIdB)
398397 let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB, pmtAssetIdA)
399398 if (if ((balanceA == 0))
400399 then (balanceB == 0)
401400 else false)
402401 then {
403- let $t01312013197 = getAssetInfo(pmtAssetIdA)
404- let pmtStrAssetIdA = $t01312013197._1
405- let pmtAssetNameA = $t01312013197._2
406- let pmtDecimalsA = $t01312013197._3
407- let $t01320613283 = getAssetInfo(pmtAssetIdB)
408- let pmtStrAssetIdB = $t01320613283._1
409- let pmtAssetNameB = $t01320613283._2
410- let pmtDecimalsB = $t01320613283._3
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
411410 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
412411 if ((pmtAssetIdA == pmtAssetIdB))
413412 then throw("Assets must be different")
414413 else {
415414 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
416415 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
417416 if (!(isActive))
418417 then throw("DApp is inactive at this moment")
419418 else if (if ((0 > slippageTolerance))
420419 then true
421420 else (slippageTolerance > slippageToleranceDelimiter))
422421 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
423422 else if ((size(i.payments) != 2))
424423 then throw("Two attached assets expected")
425424 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
426425 then true
427426 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
428427 then throw("Incorrect assets amount: amounts must have the contract ratio")
429428 else if (if ((pmtAssetIdA != assetIdA))
430429 then true
431430 else (pmtAssetIdB != assetIdB))
432431 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
433432 else if ((shareInitialSupply == 0))
434433 then throw("Too small amount to replenish")
435434 else if (!(hasEnoughBalance))
436435 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
437436 else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)]
438437 }
439438 }
440439 else {
441440 let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB))
442441 let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA)
443442 let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB)
444443 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8)
445444 if (!(isActive))
446445 then throw("DApp is inactive at this moment")
447446 else if (if ((0 > slippageTolerance))
448447 then true
449448 else (slippageTolerance > slippageToleranceDelimiter))
450449 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
451450 else if ((size(i.payments) != 2))
452451 then throw("Two attached assets expected")
453452 else if (if ((pmtAssetIdA != assetIdA))
454453 then true
455454 else (pmtAssetIdB != assetIdB))
456455 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
457456 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
458457 then true
459458 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
460459 then throw("Incorrect assets amount: amounts must have the contract ratio")
461460 else if ((shareTokenToPayAmount == 0))
462461 then throw("Too small amount to replenish")
463462 else if (!(hasEnoughBalance))
464463 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
465464 else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
466465 }
467466 }
468467
469468
470469
471470 @Callable(i)
472471 func withdraw () = {
473- let $t01768217832 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
474- let pmtAmount = $t01768217832._1
475- let pmtAssetId = $t01768217832._2
472+ let $t01770817858 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
473+ let pmtAmount = $t01770817858._1
474+ let pmtAssetId = $t01770817858._2
476475 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
477476 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
478477 if (!(isActive))
479478 then throw("DApp is inactive at this moment")
480479 else if ((size(i.payments) != 1))
481480 then throw("One attached payment expected")
482481 else if ((pmtAssetId != shareAssetId))
483482 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
484483 else if (!(hasEnoughBalance))
485484 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
486485 else if (if ((amountToPayA > availableBalanceA))
487486 then true
488487 else (amountToPayB > availableBalanceB))
489488 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
490489 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)]
491490 }
492491
493492
494493
495494 @Callable(i)
496495 func exchange (minAmountToReceive) = {
497- let $t01905819133 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
498- let pmtAmount = $t01905819133._1
499- let pmtAssetId = $t01905819133._2
496+ let $t01908419159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
497+ let pmtAmount = $t01908419159._1
498+ let pmtAssetId = $t01908419159._2
500499 func calculateFees (tokenFrom,tokenTo) = {
501500 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
502501 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
503502 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
504503 if ((minAmountToReceive > amountWithFee))
505504 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
506505 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
507506 }
508507
509508 if (!(isActive))
510509 then throw("DApp is inactive at this moment")
511510 else if (if ((balanceA == 0))
512511 then true
513512 else (balanceB == 0))
514513 then throw("Can't exchange with zero balance")
515514 else if ((0 >= minAmountToReceive))
516515 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
517516 else if ((size(i.payments) != 1))
518517 then throw("One attached payment expected")
519518 else if (!(hasEnoughBalance))
520519 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
521520 else if ((pmtAssetId == assetIdA))
522521 then {
523522 let assetIdSend = assetIdB
524- let $t02040720498 = calculateFees(balanceA, balanceB)
525- let amountWithoutFee = $t02040720498._1
526- let amountWithFee = $t02040720498._2
527- let governanceReward = $t02040720498._3
523+ let $t02043320524 = calculateFees(balanceA, balanceB)
524+ let amountWithoutFee = $t02043320524._1
525+ let amountWithFee = $t02043320524._2
526+ let governanceReward = $t02043320524._3
528527 let newBalanceA = (balanceA + pmtAmount)
529528 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
530529 if (if ((stakedAmountA >= newBalanceA))
531530 then true
532531 else (stakedAmountB >= newBalanceB))
533532 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
534533 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
535534 }
536535 else if ((pmtAssetId == assetIdB))
537536 then {
538537 let assetIdSend = assetIdA
539- let $t02131721408 = calculateFees(balanceB, balanceA)
540- let amountWithoutFee = $t02131721408._1
541- let amountWithFee = $t02131721408._2
542- let governanceReward = $t02131721408._3
538+ let $t02134321434 = calculateFees(balanceB, balanceA)
539+ let amountWithoutFee = $t02134321434._1
540+ let amountWithFee = $t02134321434._2
541+ let governanceReward = $t02134321434._3
543542 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
544543 let newBalanceB = (balanceB + pmtAmount)
545544 if (if ((stakedAmountA >= newBalanceA))
546545 then true
547546 else (stakedAmountB >= newBalanceB))
548547 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
549548 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
550549 }
551550 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
552551 }
553552
554553
555554
556555 @Callable(i)
557556 func shutdown () = if (!(isActive))
558557 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
559558 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
560559 then throw("Only admin can call this function")
561560 else suspend("Paused by admin")
562561
563562
564563
565564 @Callable(i)
566565 func activate () = if (isActive)
567566 then throw("DApp is already active")
568567 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
569568 then throw("Only admin can call this function")
570569 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
571570
572571
573572
574573 @Callable(i)
575574 func takeIntoAccountExtraFunds (amountLeave) = {
576575 let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA)
577576 let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB)
578577 let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit))
579578 then amountLeave
580579 else 0))
581580 let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit))
582581 then amountLeave
583582 else 0))
584583 if (!(isActive))
585584 then throw("DApp is inactive at this moment")
586585 else if ((i.caller != this))
587586 then throw("Only the DApp itself can call this function")
588587 else if ((0 > amountLeave))
589588 then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
590589 else if (if ((0 > uncountableAmountEnrollAssetA))
591590 then true
592591 else (0 > uncountableAmountEnrollAssetB))
593592 then suspend("Enroll amount negative")
594593 else if (if ((0 > amountEnrollA))
595594 then true
596595 else (0 > amountEnrollB))
597596 then throw("Too large amountLeave")
598597 else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
599598 }
600599
601600
602601
603602 @Callable(i)
604603 func enableFirstHarvest () = [BooleanEntry(keyFirstHarvest, true), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]
605604
606605
607606 @Verifier(tx)
608607 func verify () = {
609608 let multiSignedByAdmins = {
610609 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
611610 then 1
612611 else 0
613612 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
614613 then 1
615614 else 0
616615 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
617616 then 1
618617 else 0
619618 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
620619 }
621620 match tx {
622621 case inv: InvokeScriptTransaction =>
623622 let callTakeIntoAccount = if ((inv.dApp == this))
624623 then (inv.function == "takeIntoAccountExtraFunds")
625624 else false
626625 let callEnableFirstHarvest = if ((inv.dApp == this))
627626 then (inv.function == "enableFirstHarvest")
628627 else false
629628 let callStaking = if (if ((inv.dApp == stakingUSDNNSBTAddress))
630629 then if (if (if ((inv.function == "lockNeutrino"))
631630 then (size(inv.payments) == 1)
632631 else false)
633632 then if ((inv.payments[0].assetId == USDN))
634633 then true
635634 else (inv.payments[0].assetId == NSBT)
636635 else false)
637636 then true
638637 else if ((inv.function == "unlockNeutrino"))
639638 then (size(inv.payments) == 0)
640639 else false
641640 else false)
642641 then true
643642 else if ((inv.dApp == stakingEURNAddress))
644643 then if (if (if ((inv.function == "startStaking"))
645644 then (size(inv.payments) == 1)
646645 else false)
647646 then (inv.payments[0].assetId == EURN)
648647 else false)
649648 then true
650649 else if ((inv.function == "stopStaking"))
651650 then (size(inv.payments) == 0)
652651 else false
653652 else false
654653 let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger))
655654 then (inv.function == "exchange")
656655 else false)
657656 then (assetIdA == USDN)
658657 else false)
659658 then true
660659 else if (if ((assetIdB == USDN))
661660 then (size(inv.payments) == 1)
662661 else false)
663662 then (inv.payments[0].assetId == USDN)
664663 else false
665664 let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger))
666665 then (inv.function == "exchange")
667666 else false)
668667 then (assetIdA == NSBT)
669668 else false)
670669 then true
671670 else if (if ((assetIdB == NSBT))
672671 then (size(inv.payments) == 1)
673672 else false)
674673 then (inv.payments[0].assetId == USDN)
675674 else false
676675 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
677676 then true
678677 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
679678 then true
680679 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
681680 then true
682681 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
683682 if (if (if (if (if (if (callTakeIntoAccount)
684683 then true
685684 else callEnableFirstHarvest)
686685 then true
687686 else callStaking)
688687 then true
689688 else exchangeToWaves)
690689 then true
691690 else exchangeToNSBTs)
692691 then signedByAdmin
693692 else false)
694693 then true
695694 else multiSignedByAdmins
696695 case _ =>
697696 multiSignedByAdmins
698697 }
699698 }
700699

github/deemru/w8io/026f985 
94.06 ms