tx · HLmjAonYca6eKTkwgV984JzRBezanPfSFgpK2BJxpAgi

3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M:  -0.01400000 Waves

2021.04.05 15:36 [1469157] smart account 3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M > SELF 0.00000000 Waves

{ "type": 13, "id": "HLmjAonYca6eKTkwgV984JzRBezanPfSFgpK2BJxpAgi", "fee": 1400000, "feeAssetId": null, "timestamp": 1617626163886, "version": 2, "chainId": 84, "sender": "3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M", "senderPublicKey": "EPdhTKyYxdNVgjL4XsnDftcDDAAqWYX4j6FwMpsX7Pd5", "proofs": [ "5NTMVGiNTPYSaBHHnpPSnsdJzGe33E7U69kwiW3rQvfSYmT9crPA2Xpp9CoyCjEyKvd7YhTXYuzNLEc4WnTQPauv" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQESABIDCgEBEgASABIDCgEBAAAAMwAAAAAHdmVyc2lvbgIAAAAFMS4wLjAAAAAACmtleVZlcnNpb24CAAAAB3ZlcnNpb24AAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAC2tleUJhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAAC2tleUJhbGFuY2VCAgAAAA9CX2Fzc2V0X2JhbGFuY2UAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3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QABpAAAAAEFAAAAC2Ftb3VudExlYXZlAwMJAABmAAAAAgAAAAAAAAAAAAUAAAAddW5jb3VudGFibGVBbW91bnRFbnJvbGxBc3NldEEGCQAAZgAAAAIAAAAAAAAAAAAFAAAAHXVuY291bnRhYmxlQW1vdW50RW5yb2xsQXNzZXRCCQEAAAAHc3VzcGVuZAAAAAECAAAAFkVucm9sbCBhbW91bnQgbmVnYXRpdmUDAwkAAGYAAAACAAAAAAAAAAAABQAAAA1hbW91bnRFbnJvbGxBBgkAAGYAAAACAAAAAAAAAAAABQAAAA1hbW91bnRFbnJvbGxCCQAAAgAAAAECAAAAFVRvbyBsYXJnZSBhbW91bnRMZWF2ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAALa2V5QmFsYW5jZUEJAABkAAAAAgUAAAAIYmFsYW5jZUEFAAAADWFtb3VudEVucm9sbEEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAC2tleUJhbGFuY2VCCQAAZAAAAAIFAAAACGJhbGFuY2VCBQAAAA1hbW91bnRFbnJvbGxCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADGxhc3RfaW5jb21lXwUAAAALc3RyQXNzZXRJZEEFAAAADWFtb3VudEVucm9sbEEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAMbGFzdF9pbmNvbWVfBQAAAAtzdHJBc3NldElkQgUAAAANYW1vdW50RW5yb2xsQgUAAAADbmlsAAAAALMIOrg=", "height": 1469157, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4hrvrxKRT79CUDMtD8LkoqA65T6jMTArTST29av9d19N Next: B5J3hKy4t65YWdZZRsmroAxvtmvaWwB62EhRDwgyrvHA Diff:
OldNewDifferences
254254 let governanceReward = $t01045610557._3
255255 let newPmtAmountA = pmtAmountA
256256 let newPmtAmountB = (pmtAmountB + buyToken)
257- if (true)
258- then throw((toString(newPmtAmountA) + " - newPmtAmountA 216"))
259- else if (true)
260- then throw((toString(newPmtAmountB) + " - newPmtAmountB 217"))
261- else {
262- let newBalanceA = (balanceA + newPmtAmountA)
263- let newBalanceB = (balanceB + newPmtAmountB)
264- if (true)
265- then throw((toString(newBalanceA) + " - newBalanceA 222"))
266- else if (true)
267- then throw((toString(newBalanceB) + " - newBalanceB 223"))
268- else {
269- let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
270- let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
271- let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
272- let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
273- if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
274- then true
275- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
276- then throw("Incorrect assets amount: amounts must have the contract ratio")
277- else if ((shareTokenToPayAmount == 0))
278- then throw("Too small amount to replenish")
279- else if (if (if ((assetIdA == USDN))
280- then (stakedAmountUSDN >= newBalanceA)
281- else false)
282- then true
283- else if ((assetIdB == USDN))
284- then (stakedAmountUSDN >= newBalanceB)
285- else false)
286- then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
287- else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
288- }
289- }
257+ let newBalanceA = (balanceA + newPmtAmountA)
258+ let newBalanceB = (balanceB + newPmtAmountB)
259+ let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
260+ let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
261+ let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
262+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
263+ if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
264+ then true
265+ else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
266+ then throw("Incorrect assets amount: amounts must have the contract ratio")
267+ else if ((shareTokenToPayAmount == 0))
268+ then throw("Too small amount to replenish")
269+ else if (if (if ((assetIdA == USDN))
270+ then (stakedAmountUSDN >= newBalanceA)
271+ else false)
272+ then true
273+ else if ((assetIdB == USDN))
274+ then (stakedAmountUSDN >= newBalanceB)
275+ else false)
276+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
277+ else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
290278 }
291279 else if ((ratioShareTokensInB > ratioShareTokensInA))
292280 then {
293281 let assetIdSend = pmtAssetIdA
294- let $t01305813159 = calculateFees(balanceB, balanceA, buyToken)
295- let amountWithoutFee = $t01305813159._1
296- let amountWithFee = $t01305813159._2
297- let governanceReward = $t01305813159._3
282+ let $t01306513166 = calculateFees(balanceB, balanceA, buyToken)
283+ let amountWithoutFee = $t01306513166._1
284+ let amountWithFee = $t01306513166._2
285+ let governanceReward = $t01306513166._3
298286 let newPmtAmountA = (pmtAmountA + buyToken)
299287 let newPmtAmountB = pmtAmountB
300- if (true)
301- then throw((toString(newPmtAmountA) + " - newPmtAmountA 258"))
302- else if (true)
303- then throw((toString(newPmtAmountB) + " - newPmtAmountB 259"))
304- else {
305- let newBalanceA = (balanceA + newPmtAmountA)
306- let newBalanceB = (balanceB + newPmtAmountB)
307- if (true)
308- then throw((toString(newBalanceA) + " - newBalanceA 264"))
309- else if (true)
310- then throw((toString(newBalanceB) + " - newBalanceB 265"))
311- else {
312- let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
313- let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
314- let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
315- let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
316- if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
317- then true
318- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
319- then throw("Incorrect assets amount: amounts must have the contract ratio")
320- else if ((shareTokenToPayAmount == 0))
321- then throw("Too small amount to replenish")
322- else if (if (if ((assetIdA == USDN))
323- then (stakedAmountUSDN >= newBalanceA)
324- else false)
325- then true
326- else if ((assetIdB == USDN))
327- then (stakedAmountUSDN >= newBalanceB)
328- else false)
329- then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
330- else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
331- }
332- }
288+ let newBalanceA = (balanceA + newPmtAmountA)
289+ let newBalanceB = (balanceB + newPmtAmountB)
290+ let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
291+ let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
292+ let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
293+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
294+ if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
295+ then true
296+ else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
297+ then throw("Incorrect assets amount: amounts must have the contract ratio")
298+ else if ((shareTokenToPayAmount == 0))
299+ then throw("Too small amount to replenish")
300+ else if (if (if ((assetIdA == USDN))
301+ then (stakedAmountUSDN >= newBalanceA)
302+ else false)
303+ then true
304+ else if ((assetIdB == USDN))
305+ then (stakedAmountUSDN >= newBalanceB)
306+ else false)
307+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
308+ else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
333309 }
334310 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
335311 }
338314
339315 @Callable(i)
340316 func withdraw () = {
341- let $t01568415834 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
342- let pmtAmount = $t01568415834._1
343- let pmtAssetId = $t01568415834._2
317+ let $t01569915849 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
318+ let pmtAmount = $t01569915849._1
319+ let pmtAssetId = $t01569915849._2
344320 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
345321 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
346322 if (!(isActive))
362338
363339 @Callable(i)
364340 func exchange (minAmountToReceive) = {
365- let $t01722417299 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
366- let pmtAmount = $t01722417299._1
367- let pmtAssetId = $t01722417299._2
341+ let $t01723917314 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
342+ let pmtAmount = $t01723917314._1
343+ let pmtAssetId = $t01723917314._2
368344 func calculateFees (tokenFrom,tokenTo) = {
369345 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
370346 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
385361 else if ((pmtAssetId == assetIdA))
386362 then {
387363 let assetIdSend = assetIdB
388- let $t01865818749 = calculateFees(balanceA, balanceB)
389- let amountWithoutFee = $t01865818749._1
390- let amountWithFee = $t01865818749._2
391- let governanceReward = $t01865818749._3
364+ let $t01867318764 = calculateFees(balanceA, balanceB)
365+ let amountWithoutFee = $t01867318764._1
366+ let amountWithFee = $t01867318764._2
367+ let governanceReward = $t01867318764._3
392368 let newBalanceA = (balanceA + pmtAmount)
393369 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
394370 if (if (if ((assetIdA == USDN))
404380 else if ((pmtAssetId == assetIdB))
405381 then {
406382 let assetIdSend = assetIdA
407- let $t01962219713 = calculateFees(balanceB, balanceA)
408- let amountWithoutFee = $t01962219713._1
409- let amountWithFee = $t01962219713._2
410- let governanceReward = $t01962219713._3
383+ let $t01963719728 = calculateFees(balanceB, balanceA)
384+ let amountWithoutFee = $t01963719728._1
385+ let amountWithFee = $t01963719728._2
386+ let governanceReward = $t01963719728._3
411387 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
412388 let newBalanceB = (balanceB + pmtAmount)
413389 if (if (if ((assetIdA == USDN))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
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 keyShareAssetId = "share_asset_id"
1919
2020 let keyShareAssetSupply = "share_asset_supply"
2121
2222 let keyCommission = "commission"
2323
2424 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
2525
2626 let keyCause = "shutdown_cause"
2727
2828 let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
2929
3030 let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
3131
3232 let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
3333
3434 let adminPubKeyStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg'
3535
3636 let adminPubKeyStaking = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h'
3737
3838 let governanceAddress = Address(base58'3P6J84oH51DzY6xk2mT5TheXRbrCwBMxonp')
3939
4040 let stakingAddress = Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ')
4141
4242 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
4343
4444 let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee))
4545
4646 let isActive = getBooleanValue(this, keyActive)
4747
4848 let strAssetIdA = getStringValue(this, keyAssetIdA)
4949
5050 let strAssetIdB = getStringValue(this, keyAssetIdB)
5151
5252 let assetIdA = if ((strAssetIdA == "WAVES"))
5353 then unit
5454 else fromBase58String(strAssetIdA)
5555
5656 let assetIdB = if ((strAssetIdB == "WAVES"))
5757 then unit
5858 else fromBase58String(strAssetIdB)
5959
6060 let assetNameA = match assetIdA {
6161 case id: ByteVector =>
6262 value(assetInfo(id)).name
6363 case waves: Unit =>
6464 "WAVES"
6565 case _ =>
6666 throw("Match error")
6767 }
6868
6969 let assetNameB = match assetIdB {
7070 case id: ByteVector =>
7171 value(assetInfo(id)).name
7272 case waves: Unit =>
7373 "WAVES"
7474 case _ =>
7575 throw("Match error")
7676 }
7777
7878 let balanceA = getIntegerValue(this, keyBalanceA)
7979
8080 let balanceB = getIntegerValue(this, keyBalanceB)
8181
8282 let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId))
8383
8484 let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply)
8585
8686 let commission = 3000
8787
8888 let commissionGovernance = 1200
8989
9090 let commissionScaleDelimiter = 1000000
9191
9292 let scaleValue3 = 1000
9393
9494 let scaleValue8 = 100000000
9595
9696 let slippageToleranceDelimiter = 1000
9797
9898 let scaleValue8Digits = 8
9999
100100 func accountBalance (assetId) = match assetId {
101101 case id: ByteVector =>
102102 assetBalance(this, id)
103103 case waves: Unit =>
104104 wavesBalance(this).available
105105 case _ =>
106106 throw("Match error")
107107 }
108108
109109
110110 let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) {
111111 case staked: Int =>
112112 staked
113113 case nothing: Unit =>
114114 0
115115 case _ =>
116116 throw("Match error")
117117 }
118118
119119 let availableBalanceA = (balanceA - (if ((assetIdA == USDN))
120120 then stakedAmountUSDN
121121 else 0))
122122
123123 let availableBalanceB = (balanceB - (if ((assetIdB == USDN))
124124 then stakedAmountUSDN
125125 else 0))
126126
127127 let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN))
128128 then stakedAmountUSDN
129129 else 0))
130130
131131 let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN))
132132 then stakedAmountUSDN
133133 else 0))
134134
135135 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
136136 then (accountBalanceWithStakedB >= balanceB)
137137 else false
138138
139139 func getAssetInfo (assetId) = match assetId {
140140 case id: ByteVector =>
141141 let stringId = toBase58String(id)
142142 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
143143 $Tuple3(stringId, info.name, info.decimals)
144144 case waves: Unit =>
145145 $Tuple3("WAVES", "WAVES", 8)
146146 case _ =>
147147 throw("Match error")
148148 }
149149
150150
151151 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
152152
153153
154154 func deductStakingFee (amount,assetId) = if ((assetId == USDN))
155155 then {
156156 let result = (amount - stakingFeeInUSDN)
157157 if ((0 >= result))
158158 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N"))
159159 else result
160160 }
161161 else amount
162162
163163
164164 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"))
165165
166166
167167 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"))
168168
169169
170170 @Callable(i)
171171 func init () = {
172172 let $t047554832 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
173173 let pmtAmountA = $t047554832._1
174174 let pmtAssetIdA = $t047554832._2
175175 let $t048374914 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
176176 let pmtAmountB = $t048374914._1
177177 let pmtAssetIdB = $t048374914._2
178178 let $t049194996 = getAssetInfo(pmtAssetIdA)
179179 let pmtStrAssetIdA = $t049194996._1
180180 let pmtAssetNameA = $t049194996._2
181181 let pmtDecimalsA = $t049194996._3
182182 let $t050015078 = getAssetInfo(pmtAssetIdB)
183183 let pmtStrAssetIdB = $t050015078._1
184184 let pmtAssetNameB = $t050015078._2
185185 let pmtDecimalsB = $t050015078._3
186186 if (isDefined(getBoolean(this, keyActive)))
187187 then throw("DApp is already active")
188188 else if ((pmtAssetIdA == pmtAssetIdB))
189189 then throw("Assets must be different")
190190 else {
191191 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
192192 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
193193 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
194194 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN))
195195 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
196196 let shareIssueId = calculateAssetId(shareIssue)
197197 [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)]
198198 }
199199 }
200200
201201
202202
203203 @Callable(i)
204204 func replenishWithTwoTokens (slippageTolerance) = {
205205 let pmtAssetIdA = i.payments[0].assetId
206206 let pmtAssetIdB = i.payments[1].assetId
207207 let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA)
208208 let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB)
209209 let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA)
210210 let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB)
211211 func calculateFees (tokenFrom,tokenTo,pmtAmount) = {
212212 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
213213 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
214214 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
215215 $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
216216 }
217217
218218 func exchangeTokenWithoutFee (balanceA,balanceB,paymentAmountA,paymentAmountB) = {
219219 let bEquation = ((fraction(balanceA, scaleValue8, 1) + fraction(paymentAmountA, scaleValue8, 2)) - fraction(fraction(scaleValue8, balanceA, 2), paymentAmountB, balanceB))
220220 let DEquation = ((((pow(paymentAmountA, 0, 2, 0, scaleValue8Digits, UP) / 4) + ((balanceA * balanceA) * scaleValue8)) - fraction(fraction(paymentAmountA, (scaleValue8 * paymentAmountB), 2), balanceA, balanceB)) + (pow(fraction(paymentAmountB, (balanceA * scaleValue8), (2 * balanceB)), 0, 2, 0, 0, DOWN) / scaleValue8))
221221 let a = (-(bEquation) + pow(DEquation, 0, 5, 1, (scaleValue8Digits / 2), DOWN))
222222 let denominatorb = (a + (balanceA * scaleValue8))
223223 let b = fraction(a, (balanceB * scaleValue8), denominatorb)
224224 if ((ratioShareTokensInB > ratioShareTokensInA))
225225 then $Tuple2(a, b)
226226 else if ((ratioShareTokensInB > ratioShareTokensInA))
227227 then $Tuple2(-(b), -(a))
228228 else $Tuple2(0, 0)
229229 }
230230
231231 let $t088259097 = exchangeTokenWithoutFee(balanceA, balanceB, pmtAmountA, pmtAmountB)
232232 let buyToken = $t088259097._1
233233 let sellToken = $t088259097._2
234234 if (!(isActive))
235235 then throw("DApp is inactive at this moment")
236236 else if (if ((0 > slippageTolerance))
237237 then true
238238 else (slippageTolerance > slippageToleranceDelimiter))
239239 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
240240 else if ((size(i.payments) != 2))
241241 then throw("Two attached assets expected")
242242 else if (if ((pmtAssetIdA != assetIdA))
243243 then true
244244 else (pmtAssetIdB != assetIdB))
245245 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
246246 else if (!(hasEnoughBalance))
247247 then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
248248 else if ((ratioShareTokensInA > ratioShareTokensInB))
249249 then {
250250 let assetIdSend = pmtAssetIdB
251251 let $t01045610557 = calculateFees(balanceA, balanceB, buyToken)
252252 let amountWithoutFee = $t01045610557._1
253253 let amountWithFee = $t01045610557._2
254254 let governanceReward = $t01045610557._3
255255 let newPmtAmountA = pmtAmountA
256256 let newPmtAmountB = (pmtAmountB + buyToken)
257- if (true)
258- then throw((toString(newPmtAmountA) + " - newPmtAmountA 216"))
259- else if (true)
260- then throw((toString(newPmtAmountB) + " - newPmtAmountB 217"))
261- else {
262- let newBalanceA = (balanceA + newPmtAmountA)
263- let newBalanceB = (balanceB + newPmtAmountB)
264- if (true)
265- then throw((toString(newBalanceA) + " - newBalanceA 222"))
266- else if (true)
267- then throw((toString(newBalanceB) + " - newBalanceB 223"))
268- else {
269- let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
270- let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
271- let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
272- let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
273- if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
274- then true
275- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
276- then throw("Incorrect assets amount: amounts must have the contract ratio")
277- else if ((shareTokenToPayAmount == 0))
278- then throw("Too small amount to replenish")
279- else if (if (if ((assetIdA == USDN))
280- then (stakedAmountUSDN >= newBalanceA)
281- else false)
282- then true
283- else if ((assetIdB == USDN))
284- then (stakedAmountUSDN >= newBalanceB)
285- else false)
286- then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
287- else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
288- }
289- }
257+ let newBalanceA = (balanceA + newPmtAmountA)
258+ let newBalanceB = (balanceB + newPmtAmountB)
259+ let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
260+ let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
261+ let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
262+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
263+ if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
264+ then true
265+ else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
266+ then throw("Incorrect assets amount: amounts must have the contract ratio")
267+ else if ((shareTokenToPayAmount == 0))
268+ then throw("Too small amount to replenish")
269+ else if (if (if ((assetIdA == USDN))
270+ then (stakedAmountUSDN >= newBalanceA)
271+ else false)
272+ then true
273+ else if ((assetIdB == USDN))
274+ then (stakedAmountUSDN >= newBalanceB)
275+ else false)
276+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
277+ else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
290278 }
291279 else if ((ratioShareTokensInB > ratioShareTokensInA))
292280 then {
293281 let assetIdSend = pmtAssetIdA
294- let $t01305813159 = calculateFees(balanceB, balanceA, buyToken)
295- let amountWithoutFee = $t01305813159._1
296- let amountWithFee = $t01305813159._2
297- let governanceReward = $t01305813159._3
282+ let $t01306513166 = calculateFees(balanceB, balanceA, buyToken)
283+ let amountWithoutFee = $t01306513166._1
284+ let amountWithFee = $t01306513166._2
285+ let governanceReward = $t01306513166._3
298286 let newPmtAmountA = (pmtAmountA + buyToken)
299287 let newPmtAmountB = pmtAmountB
300- if (true)
301- then throw((toString(newPmtAmountA) + " - newPmtAmountA 258"))
302- else if (true)
303- then throw((toString(newPmtAmountB) + " - newPmtAmountB 259"))
304- else {
305- let newBalanceA = (balanceA + newPmtAmountA)
306- let newBalanceB = (balanceB + newPmtAmountB)
307- if (true)
308- then throw((toString(newBalanceA) + " - newBalanceA 264"))
309- else if (true)
310- then throw((toString(newBalanceB) + " - newBalanceB 265"))
311- else {
312- let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
313- let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
314- let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
315- let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
316- if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
317- then true
318- else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
319- then throw("Incorrect assets amount: amounts must have the contract ratio")
320- else if ((shareTokenToPayAmount == 0))
321- then throw("Too small amount to replenish")
322- else if (if (if ((assetIdA == USDN))
323- then (stakedAmountUSDN >= newBalanceA)
324- else false)
325- then true
326- else if ((assetIdB == USDN))
327- then (stakedAmountUSDN >= newBalanceB)
328- else false)
329- then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
330- else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
331- }
332- }
288+ let newBalanceA = (balanceA + newPmtAmountA)
289+ let newBalanceB = (balanceB + newPmtAmountB)
290+ let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB))
291+ let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA)
292+ let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB)
293+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8)
294+ if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
295+ then true
296+ else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
297+ then throw("Incorrect assets amount: amounts must have the contract ratio")
298+ else if ((shareTokenToPayAmount == 0))
299+ then throw("Too small amount to replenish")
300+ else if (if (if ((assetIdA == USDN))
301+ then (stakedAmountUSDN >= newBalanceA)
302+ else false)
303+ then true
304+ else if ((assetIdB == USDN))
305+ then (stakedAmountUSDN >= newBalanceB)
306+ else false)
307+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
308+ else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
333309 }
334310 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
335311 }
336312
337313
338314
339315 @Callable(i)
340316 func withdraw () = {
341- let $t01568415834 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
342- let pmtAmount = $t01568415834._1
343- let pmtAssetId = $t01568415834._2
317+ let $t01569915849 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
318+ let pmtAmount = $t01569915849._1
319+ let pmtAssetId = $t01569915849._2
344320 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
345321 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
346322 if (!(isActive))
347323 then throw("DApp is inactive at this moment")
348324 else if ((size(i.payments) != 1))
349325 then throw("One attached payment expected")
350326 else if ((pmtAssetId != shareAssetId))
351327 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
352328 else if (!(hasEnoughBalance))
353329 then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
354330 else if (if ((amountToPayA > availableBalanceA))
355331 then true
356332 else (amountToPayB > availableBalanceB))
357333 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
358334 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)]
359335 }
360336
361337
362338
363339 @Callable(i)
364340 func exchange (minAmountToReceive) = {
365- let $t01722417299 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
366- let pmtAmount = $t01722417299._1
367- let pmtAssetId = $t01722417299._2
341+ let $t01723917314 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
342+ let pmtAmount = $t01723917314._1
343+ let pmtAssetId = $t01723917314._2
368344 func calculateFees (tokenFrom,tokenTo) = {
369345 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
370346 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
371347 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
372348 if ((minAmountToReceive > amountWithFee))
373349 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
374350 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
375351 }
376352
377353 if (!(isActive))
378354 then throw("DApp is inactive at this moment")
379355 else if ((0 >= minAmountToReceive))
380356 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
381357 else if ((size(i.payments) != 1))
382358 then throw("One attached payment expected")
383359 else if (!(hasEnoughBalance))
384360 then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
385361 else if ((pmtAssetId == assetIdA))
386362 then {
387363 let assetIdSend = assetIdB
388- let $t01865818749 = calculateFees(balanceA, balanceB)
389- let amountWithoutFee = $t01865818749._1
390- let amountWithFee = $t01865818749._2
391- let governanceReward = $t01865818749._3
364+ let $t01867318764 = calculateFees(balanceA, balanceB)
365+ let amountWithoutFee = $t01867318764._1
366+ let amountWithFee = $t01867318764._2
367+ let governanceReward = $t01867318764._3
392368 let newBalanceA = (balanceA + pmtAmount)
393369 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
394370 if (if (if ((assetIdA == USDN))
395371 then (stakedAmountUSDN >= newBalanceA)
396372 else false)
397373 then true
398374 else if ((assetIdB == USDN))
399375 then (stakedAmountUSDN >= newBalanceB)
400376 else false)
401377 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
402378 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)]
403379 }
404380 else if ((pmtAssetId == assetIdB))
405381 then {
406382 let assetIdSend = assetIdA
407- let $t01962219713 = calculateFees(balanceB, balanceA)
408- let amountWithoutFee = $t01962219713._1
409- let amountWithFee = $t01962219713._2
410- let governanceReward = $t01962219713._3
383+ let $t01963719728 = calculateFees(balanceB, balanceA)
384+ let amountWithoutFee = $t01963719728._1
385+ let amountWithFee = $t01963719728._2
386+ let governanceReward = $t01963719728._3
411387 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
412388 let newBalanceB = (balanceB + pmtAmount)
413389 if (if (if ((assetIdA == USDN))
414390 then (stakedAmountUSDN >= newBalanceA)
415391 else false)
416392 then true
417393 else if ((assetIdB == USDN))
418394 then (stakedAmountUSDN >= newBalanceB)
419395 else false)
420396 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
421397 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)]
422398 }
423399 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
424400 }
425401
426402
427403
428404 @Callable(i)
429405 func shutdown () = if (!(isActive))
430406 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
431407 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
432408 then throw("Only admin can call this function")
433409 else suspend("Paused by admin")
434410
435411
436412
437413 @Callable(i)
438414 func activate () = if (isActive)
439415 then throw("DApp is already active")
440416 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
441417 then throw("Only admin can call this function")
442418 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
443419
444420
445421
446422 @Callable(i)
447423 func takeIntoAccountExtraFunds (amountLeave) = {
448424 let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA)
449425 let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB)
450426 let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == USDN))
451427 then amountLeave
452428 else 0))
453429 let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == USDN))
454430 then amountLeave
455431 else 0))
456432 if (!(isActive))
457433 then throw("DApp is inactive at this moment")
458434 else if ((i.caller != this))
459435 then throw("Only the DApp itself can call this function")
460436 else if ((0 > amountLeave))
461437 then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
462438 else if (if ((0 > uncountableAmountEnrollAssetA))
463439 then true
464440 else (0 > uncountableAmountEnrollAssetB))
465441 then suspend("Enroll amount negative")
466442 else if (if ((0 > amountEnrollA))
467443 then true
468444 else (0 > amountEnrollB))
469445 then throw("Too large amountLeave")
470446 else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
471447 }
472448
473449

github/deemru/w8io/169f3d6 
69.72 ms