tx · Ho1xiR3CM4KWywHi1gc4khv9JRtetRrH6gMoR941fV7E

3NBbTD2jr8QxN6qkKmPgtQvGz8JPUQDEvSE:  -0.01400000 Waves

2021.08.04 14:55 [1643559] smart account 3NBbTD2jr8QxN6qkKmPgtQvGz8JPUQDEvSE > SELF 0.00000000 Waves

{ "type": 13, "id": "Ho1xiR3CM4KWywHi1gc4khv9JRtetRrH6gMoR941fV7E", "fee": 1400000, "feeAssetId": null, "timestamp": 1628078158784, "version": 2, "chainId": 84, "sender": "3NBbTD2jr8QxN6qkKmPgtQvGz8JPUQDEvSE", "senderPublicKey": "GT3oFdedoreGcWEppmSzCb47Zi1xBSJrwg6p7Li1EUR", "proofs": [ "LrVQ8HPwPUaqMZPeDATY1GhJNnysXsK5mt7dVc5iNWUeLYyWRKDvEScpKzhomGFVa8xxpPjWhaqmvnWqEmWAJPn", "3RYrCmRXWqBVbdYTh7EMBrGMWr5PCMtNfPsJ6Ti2UPdV3vCLk5v3Gjzo1bYKTEwaPhNKN3nRR7AQv3713KfxWRwn" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEEEgQKAgEBEgASAwoBARIAEgASAwoBAQAAAFQAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAA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RtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAAC8r4r9w==", "height": 1643559, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EXRxLWYws7UtpF6BBznP2GeViU8S3Dkbc7KXTwtz3xn9 Next: none Diff:
OldNewDifferences
395395 then true
396396 else (slippageTolerance > slippageToleranceDelimiter))
397397 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
398- else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
399- then true
400- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
401- then throw("Incorrect assets amount: amounts must have the contract ratio")
402- else if ((shareTokenToPayAmount == 0))
403- then throw("Too small amount to replenish")
404- else if (!(hasEnoughBalance))
405- then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
406- else [IntegerEntry(keyBalanceA, (newBalanceA + (pmtAmount / 2))), IntegerEntry(keyBalanceB, (newBalanceB + (pmtAmount / 2))), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
398+ else if ((shareTokenToPayAmount == 0))
399+ then throw("Too small amount to replenish")
400+ else if (!(hasEnoughBalance))
401+ then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
402+ else [IntegerEntry(keyBalanceA, (newBalanceA + (pmtAmount / 2))), IntegerEntry(keyBalanceB, (newBalanceB + (pmtAmount / 2))), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
407403 }
408404 }
409405 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
413409
414410 @Callable(i)
415411 func withdraw () = {
416- let $t01768717837 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
417- let pmtAmount = $t01768717837._1
418- let pmtAssetId = $t01768717837._2
412+ let $t01769317843 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
413+ let pmtAmount = $t01769317843._1
414+ let pmtAssetId = $t01769317843._2
419415 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
420416 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
421417 if (!(isActive))
437433
438434 @Callable(i)
439435 func exchange (minAmountToReceive) = {
440- let $t01906319138 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
441- let pmtAmount = $t01906319138._1
442- let pmtAssetId = $t01906319138._2
436+ let $t01906919144 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
437+ let pmtAmount = $t01906919144._1
438+ let pmtAssetId = $t01906919144._2
443439 func calculateFees (tokenFrom,tokenTo) = {
444440 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
445441 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
464460 else if ((pmtAssetId == assetIdA))
465461 then {
466462 let assetIdSend = assetIdB
467- let $t02041220503 = calculateFees(balanceA, balanceB)
468- let amountWithoutFee = $t02041220503._1
469- let amountWithFee = $t02041220503._2
470- let governanceReward = $t02041220503._3
463+ let $t02041820509 = calculateFees(balanceA, balanceB)
464+ let amountWithoutFee = $t02041820509._1
465+ let amountWithFee = $t02041820509._2
466+ let governanceReward = $t02041820509._3
471467 let newBalanceA = (balanceA + pmtAmount)
472468 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
473469 if (if ((stakedAmountA >= newBalanceA))
479475 else if ((pmtAssetId == assetIdB))
480476 then {
481477 let assetIdSend = assetIdA
482- let $t02132221413 = calculateFees(balanceB, balanceA)
483- let amountWithoutFee = $t02132221413._1
484- let amountWithFee = $t02132221413._2
485- let governanceReward = $t02132221413._3
478+ let $t02132821419 = calculateFees(balanceB, balanceA)
479+ let amountWithoutFee = $t02132821419._1
480+ let amountWithFee = $t02132821419._2
481+ let governanceReward = $t02132821419._3
486482 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
487483 let newBalanceB = (balanceB + pmtAmount)
488484 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 kShareLimit = "share_limit_on_first_harvest"
3737
3838 let kBasePeriod = "base_period"
3939
4040 let kPeriodLength = "period_length"
4141
4242 let kStartHeight = "start_height"
4343
4444 let kFirstHarvestHeight = "first_harvest_height"
4545
4646 let keyAdminPubKey1 = "admin_pub_1"
4747
4848 let keyAdminPubKey2 = "admin_pub_2"
4949
5050 let keyAdminPubKey3 = "admin_pub_3"
5151
5252 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5353
5454 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
5555 case string: String =>
5656 fromBase58String(string)
5757 case nothing =>
5858 throw("Admin public key is empty")
5959 }
6060
6161
6262 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
6363
6464 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
6565
6666 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
6767
6868 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6969
7070 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7171
7272 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7373
7474 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
7575
7676 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
7777
7878 let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9'
7979
8080 let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
8181
8282 let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
8383
8484 let stakingUSDNNSBTAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
8585
8686 let stakingEURNAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE')
8787
8888 let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
8989
9090 let USDNToNSBTExchanger = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA')
9191
9292 let stakingFeeInUSDN = 270000
9393
9494 let stakingFeeInEURN = 234000
9595
9696 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
9797
9898 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
9999
100100 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
101101
102102 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
103103
104104 let isActive = getBooleanValue(this, keyActive)
105105
106106 let strAssetIdA = getStringValue(this, keyAssetIdA)
107107
108108 let strAssetIdB = getStringValue(this, keyAssetIdB)
109109
110110 let assetIdA = if ((strAssetIdA == "WAVES"))
111111 then unit
112112 else fromBase58String(strAssetIdA)
113113
114114 let assetIdB = if ((strAssetIdB == "WAVES"))
115115 then unit
116116 else fromBase58String(strAssetIdB)
117117
118118 let assetNameA = match assetIdA {
119119 case id: ByteVector =>
120120 value(assetInfo(id)).name
121121 case waves: Unit =>
122122 "WAVES"
123123 case _ =>
124124 throw("Match error")
125125 }
126126
127127 let assetNameB = match assetIdB {
128128 case id: ByteVector =>
129129 value(assetInfo(id)).name
130130 case waves: Unit =>
131131 "WAVES"
132132 case _ =>
133133 throw("Match error")
134134 }
135135
136136 let balanceA = getIntegerValue(this, keyBalanceA)
137137
138138 let balanceB = getIntegerValue(this, keyBalanceB)
139139
140140 let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId))
141141
142142 let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply)
143143
144144 let commission = 3000
145145
146146 let commissionGovernance = 1200
147147
148148 let commissionScaleDelimiter = 1000000
149149
150150 let scaleValue3 = 1000
151151
152152 let scaleValue8 = 100000000
153153
154154 let slippageToleranceDelimiter = 1000
155155
156156 let scaleValue8Digits = 8
157157
158158 func accountBalance (assetId) = match assetId {
159159 case id: ByteVector =>
160160 assetBalance(this, id)
161161 case waves: Unit =>
162162 wavesBalance(this).available
163163 case _ =>
164164 throw("Match error")
165165 }
166166
167167
168168 func stakedAmount (assetId) = {
169169 let stakedAmountCalculated = match assetId {
170170 case aId: ByteVector =>
171171 if (if ((aId == USDN))
172172 then true
173173 else (aId == NSBT))
174174 then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
175175 else if ((aId == EURN))
176176 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this)))
177177 else 0
178178 case _: Unit =>
179179 0
180180 case _ =>
181181 throw("Match error")
182182 }
183183 match stakedAmountCalculated {
184184 case i: Int =>
185185 i
186186 case _ =>
187187 0
188188 }
189189 }
190190
191191
192192 let stakedAmountA = stakedAmount(assetIdA)
193193
194194 let stakedAmountB = stakedAmount(assetIdB)
195195
196196 let assetInitA = getIntegerValue(this, keyBalanceInitA)
197197
198198 let assetInitB = getIntegerValue(this, keyBalanceInitB)
199199
200200 let availableBalanceA = (balanceA - stakedAmountA)
201201
202202 let availableBalanceB = (balanceB - stakedAmountB)
203203
204204 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
205205
206206 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
207207
208208 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
209209 then (accountBalanceWithStakedB >= balanceB)
210210 else false
211211
212212 func getAssetInfo (assetId) = match assetId {
213213 case id: ByteVector =>
214214 let stringId = toBase58String(id)
215215 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
216216 $Tuple3(stringId, info.name, info.decimals)
217217 case waves: Unit =>
218218 $Tuple3("WAVES", "WAVES", 8)
219219 case _ =>
220220 throw("Match error")
221221 }
222222
223223
224224 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
225225 then $Tuple3("WAVES", "WAVES", 8)
226226 else {
227227 let stringId = assetStr
228228 let id = fromBase58String(assetStr)
229229 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
230230 $Tuple3(stringId, info.name, info.decimals)
231231 }
232232
233233
234234 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
235235
236236
237237 func deductStakingFee (amount,assetId,secondAssetId) = if (if ((assetId == USDN))
238238 then true
239239 else (assetId == EURN))
240240 then {
241241 let stakinFee = if ((assetId == USDN))
242242 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
243243 then 2
244244 else 1))
245245 else if ((assetId == EURN))
246246 then stakingFeeInEURN
247247 else 0
248248 let result = (amount - stakinFee)
249249 if ((0 >= result))
250250 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakinFee)) + "USDN/EURN"))
251251 else result
252252 }
253253 else amount
254254
255255
256256 func getStakingFee (assetId,secondAssetId) = if ((assetId == USDN))
257257 then (stakingFeeInUSDN * (if ((secondAssetId == NSBT))
258258 then 2
259259 else 1))
260260 else if ((assetId == EURN))
261261 then stakingFeeInEURN
262262 else 0
263263
264264
265265 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"))
266266
267267
268268 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"))
269269
270270
271271 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB))
272272
273273
274274 @Callable(i)
275275 func init (firstHarvest) = {
276276 let $t080018078 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
277277 let pmtAmountA = $t080018078._1
278278 let pmtAssetIdA = $t080018078._2
279279 let $t080838160 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
280280 let pmtAmountB = $t080838160._1
281281 let pmtAssetIdB = $t080838160._2
282282 let $t081658242 = getAssetInfo(pmtAssetIdA)
283283 let pmtStrAssetIdA = $t081658242._1
284284 let pmtAssetNameA = $t081658242._2
285285 let pmtDecimalsA = $t081658242._3
286286 let $t082478324 = getAssetInfo(pmtAssetIdB)
287287 let pmtStrAssetIdB = $t082478324._1
288288 let pmtAssetNameB = $t082478324._2
289289 let pmtDecimalsB = $t082478324._3
290290 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
291291 then throw("Only admin can call this function")
292292 else if (isDefined(getBoolean(this, keyActive)))
293293 then throw("DApp is already active")
294294 else if ((pmtAssetIdA == pmtAssetIdB))
295295 then throw("Assets must be different")
296296 else {
297297 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
298298 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
299299 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
300300 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
301301 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
302302 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
303303 let shareInitialSupply = fraction(arg1, arg2, arg3)
304304 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
305305 let shareIssueId = calculateAssetId(shareIssue)
306306 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), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
307307 if (firstHarvest)
308308 then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
309309 else baseEntry
310310 }
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func replenishWithOneToken (slippageTolerance,minAmountToReceive) = {
317317 let pmtAssetId = i.payments[0].assetId
318318 let assetIdUnused = if ((i.payments[0].assetId == fromBase58String(strAssetIdA)))
319319 then fromBase58String(strAssetIdB)
320320 else fromBase58String(strAssetIdA)
321321 let pmtAmount = deductStakingFee(i.payments[0].amount, pmtAssetId, assetIdUnused)
322322 func calculateFees (tokenFrom,tokenTo) = {
323323 let amountWithoutFee = fraction(tokenTo, (pmtAmount / 2), ((pmtAmount / 2) + tokenFrom))
324324 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
325325 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
326326 if ((minAmountToReceive > amountWithFee))
327327 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
328328 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
329329 }
330330
331331 if (!(isActive))
332332 then throw("DApp is inactive at this moment")
333333 else if (if ((balanceA == 0))
334334 then true
335335 else (balanceB == 0))
336336 then throw("Can't replenish with zero balance")
337337 else if ((0 >= minAmountToReceive))
338338 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
339339 else if ((size(i.payments) != 1))
340340 then throw("One attached payment expected")
341341 else if (!(hasEnoughBalance))
342342 then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
343343 else if ((pmtAssetId == assetIdA))
344344 then {
345345 let assetIdSend = assetIdB
346346 let $t01234512436 = calculateFees(balanceA, balanceB)
347347 let amountWithoutFee = $t01234512436._1
348348 let amountWithFee = $t01234512436._2
349349 let governanceReward = $t01234512436._3
350350 let newBalanceA = (balanceA + (pmtAmount / 2))
351351 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
352352 if (if ((stakedAmountA >= newBalanceA))
353353 then true
354354 else (stakedAmountB >= newBalanceB))
355355 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
356356 else {
357357 let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, (pmtAmount / 2)), scaleValue3, fraction(newBalanceB, scaleValue8, (pmtAmount / 2)))
358358 let ratioShareTokensInA = fraction((pmtAmount / 2), scaleValue8, newBalanceA)
359359 let ratioShareTokensInB = fraction((pmtAmount / 2), scaleValue8, newBalanceB)
360360 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8)
361361 if (!(isActive))
362362 then throw("DApp is inactive at this moment")
363363 else if (if ((0 > slippageTolerance))
364364 then true
365365 else (slippageTolerance > slippageToleranceDelimiter))
366366 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
367367 else if ((shareTokenToPayAmount == 0))
368368 then throw("Too small amount to replenish")
369369 else if (!(hasEnoughBalance))
370370 then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
371371 else [IntegerEntry(keyBalanceA, (newBalanceA + (pmtAmount / 2))), IntegerEntry(keyBalanceB, (newBalanceB + (pmtAmount / 2))), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
372372 }
373373 }
374374 else if ((pmtAssetId == assetIdB))
375375 then {
376376 let assetIdSend = assetIdA
377377 let $t01481414905 = calculateFees(balanceB, balanceA)
378378 let amountWithoutFee = $t01481414905._1
379379 let amountWithFee = $t01481414905._2
380380 let governanceReward = $t01481414905._3
381381 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
382382 let newBalanceB = (balanceB + (pmtAmount / 2))
383383 if (if ((stakedAmountA >= newBalanceA))
384384 then true
385385 else (stakedAmountB >= newBalanceB))
386386 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
387387 else {
388388 let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, (pmtAmount / 2)), scaleValue3, fraction(newBalanceB, scaleValue8, (pmtAmount / 2)))
389389 let ratioShareTokensInA = fraction((pmtAmount / 2), scaleValue8, newBalanceA)
390390 let ratioShareTokensInB = fraction((pmtAmount / 2), scaleValue8, newBalanceB)
391391 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8)
392392 if (!(isActive))
393393 then throw("DApp is inactive at this moment")
394394 else if (if ((0 > slippageTolerance))
395395 then true
396396 else (slippageTolerance > slippageToleranceDelimiter))
397397 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
398- else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
399- then true
400- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
401- then throw("Incorrect assets amount: amounts must have the contract ratio")
402- else if ((shareTokenToPayAmount == 0))
403- then throw("Too small amount to replenish")
404- else if (!(hasEnoughBalance))
405- then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
406- else [IntegerEntry(keyBalanceA, (newBalanceA + (pmtAmount / 2))), IntegerEntry(keyBalanceB, (newBalanceB + (pmtAmount / 2))), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
398+ else if ((shareTokenToPayAmount == 0))
399+ then throw("Too small amount to replenish")
400+ else if (!(hasEnoughBalance))
401+ then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
402+ else [IntegerEntry(keyBalanceA, (newBalanceA + (pmtAmount / 2))), IntegerEntry(keyBalanceB, (newBalanceB + (pmtAmount / 2))), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
407403 }
408404 }
409405 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
410406 }
411407
412408
413409
414410 @Callable(i)
415411 func withdraw () = {
416- let $t01768717837 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
417- let pmtAmount = $t01768717837._1
418- let pmtAssetId = $t01768717837._2
412+ let $t01769317843 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
413+ let pmtAmount = $t01769317843._1
414+ let pmtAssetId = $t01769317843._2
419415 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB)
420416 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA)
421417 if (!(isActive))
422418 then throw("DApp is inactive at this moment")
423419 else if ((size(i.payments) != 1))
424420 then throw("One attached payment expected")
425421 else if ((pmtAssetId != shareAssetId))
426422 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
427423 else if (!(hasEnoughBalance))
428424 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
429425 else if (if ((amountToPayA > availableBalanceA))
430426 then true
431427 else (amountToPayB > availableBalanceB))
432428 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
433429 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)]
434430 }
435431
436432
437433
438434 @Callable(i)
439435 func exchange (minAmountToReceive) = {
440- let $t01906319138 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
441- let pmtAmount = $t01906319138._1
442- let pmtAssetId = $t01906319138._2
436+ let $t01906919144 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
437+ let pmtAmount = $t01906919144._1
438+ let pmtAssetId = $t01906919144._2
443439 func calculateFees (tokenFrom,tokenTo) = {
444440 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
445441 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
446442 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
447443 if ((minAmountToReceive > amountWithFee))
448444 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
449445 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
450446 }
451447
452448 if (!(isActive))
453449 then throw("DApp is inactive at this moment")
454450 else if (if ((balanceA == 0))
455451 then true
456452 else (balanceB == 0))
457453 then throw("Can't exchange with zero balance")
458454 else if ((0 >= minAmountToReceive))
459455 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
460456 else if ((size(i.payments) != 1))
461457 then throw("One attached payment expected")
462458 else if (!(hasEnoughBalance))
463459 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
464460 else if ((pmtAssetId == assetIdA))
465461 then {
466462 let assetIdSend = assetIdB
467- let $t02041220503 = calculateFees(balanceA, balanceB)
468- let amountWithoutFee = $t02041220503._1
469- let amountWithFee = $t02041220503._2
470- let governanceReward = $t02041220503._3
463+ let $t02041820509 = calculateFees(balanceA, balanceB)
464+ let amountWithoutFee = $t02041820509._1
465+ let amountWithFee = $t02041820509._2
466+ let governanceReward = $t02041820509._3
471467 let newBalanceA = (balanceA + pmtAmount)
472468 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
473469 if (if ((stakedAmountA >= newBalanceA))
474470 then true
475471 else (stakedAmountB >= newBalanceB))
476472 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
477473 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
478474 }
479475 else if ((pmtAssetId == assetIdB))
480476 then {
481477 let assetIdSend = assetIdA
482- let $t02132221413 = calculateFees(balanceB, balanceA)
483- let amountWithoutFee = $t02132221413._1
484- let amountWithFee = $t02132221413._2
485- let governanceReward = $t02132221413._3
478+ let $t02132821419 = calculateFees(balanceB, balanceA)
479+ let amountWithoutFee = $t02132821419._1
480+ let amountWithFee = $t02132821419._2
481+ let governanceReward = $t02132821419._3
486482 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
487483 let newBalanceB = (balanceB + pmtAmount)
488484 if (if ((stakedAmountA >= newBalanceA))
489485 then true
490486 else (stakedAmountB >= newBalanceB))
491487 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
492488 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
493489 }
494490 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
495491 }
496492
497493
498494
499495 @Callable(i)
500496 func shutdown () = if (!(isActive))
501497 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
502498 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
503499 then throw("Only admin can call this function")
504500 else suspend("Paused by admin")
505501
506502
507503
508504 @Callable(i)
509505 func activate () = if (isActive)
510506 then throw("DApp is already active")
511507 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
512508 then throw("Only admin can call this function")
513509 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
514510
515511
516512
517513 @Callable(i)
518514 func takeIntoAccountExtraFunds (amountLeave) = {
519515 let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA)
520516 let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB)
521517 let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit))
522518 then amountLeave
523519 else 0))
524520 let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit))
525521 then amountLeave
526522 else 0))
527523 if (!(isActive))
528524 then throw("DApp is inactive at this moment")
529525 else if ((i.caller != this))
530526 then throw("Only the DApp itself can call this function")
531527 else if ((0 > amountLeave))
532528 then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
533529 else if (if ((0 > uncountableAmountEnrollAssetA))
534530 then true
535531 else (0 > uncountableAmountEnrollAssetB))
536532 then suspend("Enroll amount negative")
537533 else if (if ((0 > amountEnrollA))
538534 then true
539535 else (0 > amountEnrollB))
540536 then throw("Too large amountLeave")
541537 else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
542538 }
543539
544540
545541 @Verifier(tx)
546542 func verify () = match tx {
547543 case inv: InvokeScriptTransaction =>
548544 let callTakeIntoAccount = if ((inv.dApp == this))
549545 then (inv.function == "takeIntoAccountExtraFunds")
550546 else false
551547 let callStaking = if (if ((inv.dApp == stakingUSDNNSBTAddress))
552548 then if (if (if ((inv.function == "lockNeutrino"))
553549 then (size(inv.payments) == 1)
554550 else false)
555551 then if ((inv.payments[0].assetId == USDN))
556552 then true
557553 else (inv.payments[0].assetId == NSBT)
558554 else false)
559555 then true
560556 else if ((inv.function == "unlockNeutrino"))
561557 then (size(inv.payments) == 0)
562558 else false
563559 else false)
564560 then true
565561 else if ((inv.dApp == stakingEURNAddress))
566562 then if (if (if ((inv.function == "startStaking"))
567563 then (size(inv.payments) == 1)
568564 else false)
569565 then (inv.payments[0].assetId == EURN)
570566 else false)
571567 then true
572568 else if ((inv.function == "stopStaking"))
573569 then (size(inv.payments) == 0)
574570 else false
575571 else false
576572 let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger))
577573 then (inv.function == "exchange")
578574 else false)
579575 then (assetIdA == USDN)
580576 else false)
581577 then true
582578 else if (if ((assetIdB == USDN))
583579 then (size(inv.payments) == 1)
584580 else false)
585581 then (inv.payments[0].assetId == USDN)
586582 else false
587583 let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger))
588584 then (inv.function == "exchange")
589585 else false)
590586 then (assetIdA == NSBT)
591587 else false)
592588 then true
593589 else if (if ((assetIdB == NSBT))
594590 then (size(inv.payments) == 1)
595591 else false)
596592 then (inv.payments[0].assetId == USDN)
597593 else false
598594 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
599595 then true
600596 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
601597 then true
602598 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
603599 then true
604600 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
605601 if (if (if (if (callTakeIntoAccount)
606602 then true
607603 else callStaking)
608604 then true
609605 else exchangeToWaves)
610606 then true
611607 else exchangeToNSBTs)
612608 then signedByAdmin
613609 else false
614610 case _ =>
615611 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
616612 then 1
617613 else 0
618614 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
619615 then 1
620616 else 0
621617 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
622618 then 1
623619 else 0
624620 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
625621 }
626622

github/deemru/w8io/026f985 
88.97 ms