tx · HKv9D6Ty4n47eNVE94NMe4NnCDJ18hrULmGgH7ZKmBQh

3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW:  -0.14000000 Waves

2022.06.09 10:21 [2088525] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves

{ "type": 13, "id": "HKv9D6Ty4n47eNVE94NMe4NnCDJ18hrULmGgH7ZKmBQh", "fee": 14000000, "feeAssetId": null, "timestamp": 1654759266800, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "5HyuRh8Pbj1PfX58hC4VuLTfLVs8j7rCY1w2V5bjNKD4Jzyf7seMuF2LH4ZzYvSUFnStv8eqKUfArp8ZA2nn78Du", "2v6ZEgrNRAM7vX9KgNAhvNAYa5rfayrWbLcEPecr47N8oTHJGCzaKhyYHNpzRyK1VKGV3CAaBZQh4zykAPaRe99x" ], "script": "base64:AAIFAAAAAAAAEvgIAhIAEgASBAoCAQESABIECgIBARIAEgASABIFCgMEAQgSABoMCgFBEgckbWF0Y2gwGgsKAUISBnN0cmluZxoMCgFDEgdub3RoaW5nGhEKAUQSDGFkbWluUHViS2V5MRoRCgFFEgxhZG1pblB1YktleTIaEQoBRhIMYWRtaW5QdWJLZXkzGhYKAUcSEWFkbWluUHViS2V5SW52b2tlGhQKAUgSD21vbmV5Qm94QWRkcmVzcxoPCgFJEgpnb3ZBZGRyZXNzGhcKAUoSEnN0YWtpbmdVU0ROQWRkcmVzcxoJCgFLEgRVU0ROGhIKAUwSDXN0YWtpbmdBc3NldHMaCwoBTRIGYWN0aXZlGhAKAU4SC3N0ckFzc2V0SWRBGhAKAU8SC3N0ckFzc2V0SWRCGg0KAVASCGFzc2V0SWRBGg0KAVESCGFzc2V0SWRCGg8KAVISCmFzc2V0TmFtZUEaBwoBUxICaWQaCgoBVBIFd2F2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DCQAAAAAAAAIIBQAAAAJkegAAAARkQXBwBQAAAAR0aGlzCQAAAAAAAAIIBQAAAAJkegAAAAhmdW5jdGlvbgIAAAAZdGFrZUludG9BY2NvdW50RXh0cmFGdW5kcwcEAAAAAmRIAwMDCQAB9AAAAAMIBQAAAAJkQQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmRBAAAABnByb29mcwAAAAAAAAAAAAUAAAABRAYJAAH0AAAAAwgFAAAAAmRBAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZEEAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAFFBgkAAfQAAAADCAUAAAACZEEAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkQQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAUYGCQAB9AAAAAMIBQAAAAJkQQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmRBAAAABnByb29mcwAAAAAAAAAAAAUAAAABRwMDBQAAAAJkRwUAAAACZEgHBgUAAAACZEMFAAAAAmRD6mxZlg==", "height": 2088525, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HHTretVGkLmUGNcuYk3CNk53GFLEPycsdjonWAA4DDut Next: 7PZS4pQoYkoJJbda7TW5S7AfASibGiArTje36GH5sSHS Diff:
OldNewDifferences
621621 let $t02436324479 = calcBalanceAndPmtRatio(balanceA, balanceB, minAmountToReceive, pmtAmount, pmtAssetId)
622622 let balanceRatio = $t02436324479._1
623623 let pmtRatio = $t02436324479._2
624- if ((pmtRatio > (exchangeRatioLimit - fraction(exchangeRatioLimitCoef, balanceRatio, scale8))))
624+ if (((exchangeRatioLimit - fraction(exchangeRatioLimitCoef, balanceRatio, scale8)) > pmtRatio))
625625 then throw("Incorrect args and pmt ratio")
626626 else {
627627 let sendAssetId = if ((pmtAssetId == assetIdA))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "2.0.0"
55
66 let kVersion = "version"
77
88 let kActive = "active"
99
1010 let kAssetIdA = "A_asset_id"
1111
1212 let kAssetIdB = "B_asset_id"
1313
1414 let kBalanceA = "A_asset_balance"
1515
1616 let kBalanceB = "B_asset_balance"
1717
1818 let kShareAssetId = "share_asset_id"
1919
2020 let kShareAssetSupply = "share_asset_supply"
2121
2222 let kFee = "commission"
2323
2424 let kInvariant = "invariant"
2525
2626 let kCause = "shutdown_cause"
2727
2828 let kUSDNAddress = "staking_usdnnsbt_address"
2929
3030 let kEURNAddress = "staking_eurn_address"
3131
3232 let kDiscounts = "discounts"
3333
3434 let kDiscountValues = "discount_values"
3535
3636 let kUserSwopInGov = "_SWOP_amount"
3737
3838 let kAdminPubKey1 = "admin_pub_1"
3939
4040 let kAdminPubKey2 = "admin_pub_2"
4141
4242 let kAdminPubKey3 = "admin_pub_3"
4343
4444 let kAdminInvokePubKey = "admin_invoke_pub"
4545
4646 let kMoneyBoxAddress = "money_box_address"
4747
4848 let kGovAddress = "governance_address"
4949
5050 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5151
5252 func getBase58FromOracle (key) = match getString(oracle, key) {
5353 case string: String =>
5454 fromBase58String(string)
5555 case nothing =>
5656 throw((key + "is empty"))
5757 }
5858
5959
6060 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
6161
6262 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
6363
6464 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
6565
6666 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
6767
6868 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
6969
7070 let govAddress = Address(getBase58FromOracle(kGovAddress))
7171
7272 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
7373
7474 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
7575
7676 let stakingAssets = [toBase58String(USDN)]
7777
7878 let active = getBooleanValue(this, kActive)
7979
8080 let strAssetIdA = getStringValue(this, kAssetIdA)
8181
8282 let strAssetIdB = getStringValue(this, kAssetIdB)
8383
8484 let assetIdA = if ((strAssetIdA == "WAVES"))
8585 then unit
8686 else fromBase58String(strAssetIdA)
8787
8888 let assetIdB = if ((strAssetIdB == "WAVES"))
8989 then unit
9090 else fromBase58String(strAssetIdB)
9191
9292 let assetNameA = match assetIdA {
9393 case id: ByteVector =>
9494 value(assetInfo(id)).name
9595 case waves: Unit =>
9696 "WAVES"
9797 case _ =>
9898 throw("Match error")
9999 }
100100
101101 let assetNameB = match assetIdB {
102102 case id: ByteVector =>
103103 value(assetInfo(id)).name
104104 case waves: Unit =>
105105 "WAVES"
106106 case _ =>
107107 throw("Match error")
108108 }
109109
110110 let balanceA = getIntegerValue(this, kBalanceA)
111111
112112 let balanceB = getIntegerValue(this, kBalanceB)
113113
114114 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
115115
116116 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
117117
118118 let invariant = getIntegerValue(this, kInvariant)
119119
120120 let fee = getIntegerValue(this, kFee)
121121
122122 let feeGovernance = fraction(fee, 40, 100)
123123
124124 let feeScale6 = 1000000
125125
126126 let scale3 = 1000
127127
128128 let scale8 = 100000000
129129
130130 let scale16 = 10000000000000000
131131
132132 let slippageScale3 = 1000
133133
134134 let digits8 = 8
135135
136136 let dAppThreshold = 125
137137
138138 let dAppThresholdScale2 = 1000
139139
140140 let exchangeRatioLimitCoef = 2500000
141141
142142 let exchangeRatioLimit = 93500000
143143
144144 let alpha = 50
145145
146146 let alphaDigits = 2
147147
148148 let beta = 4600000000000000
149149
150150 func accountBalance (assetId) = match assetId {
151151 case id: ByteVector =>
152152 assetBalance(this, id)
153153 case waves: Unit =>
154154 wavesBalance(this).available
155155 case _ =>
156156 throw("Match error")
157157 }
158158
159159
160160 func stakedAmount (assetId) = {
161161 let stakedAmountCalculated = match assetId {
162162 case aId: ByteVector =>
163163 if ((aId == USDN))
164164 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
165165 else 0
166166 case _: Unit =>
167167 0
168168 case _ =>
169169 throw("Match error")
170170 }
171171 match stakedAmountCalculated {
172172 case i: Int =>
173173 i
174174 case _ =>
175175 0
176176 }
177177 }
178178
179179
180180 let stakedAmountA = stakedAmount(assetIdA)
181181
182182 let stakedAmountB = stakedAmount(assetIdB)
183183
184184 let availableBalanceA = (balanceA - stakedAmountA)
185185
186186 let availableBalanceB = (balanceB - stakedAmountB)
187187
188188 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
189189
190190 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
191191
192192 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
193193 then (accountBalanceWithStakedB >= balanceB)
194194 else false
195195
196196 func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2)
197197
198198
199199 func invariantCalc (x,y) = {
200200 let sk = skewness(x, y)
201201 (fraction((x + y), scale16, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(x), toBigInt(y), toBigInt(scale8)), 0, toBigInt(5), 1, (digits8 / 2), DOWN)), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8)))
202202 }
203203
204204
205205 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
206206 let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
207207 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
208208 let x = (balanceA + tokenReceiveAmount)
209209 let y = (balanceB + tokenReceiveAmount)
210210 func getStepAmount (acc,step) = if ((acc._1 == -1))
211211 then {
212212 let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3))
213213 let stepInvariant = if ((tokenId == assetIdA))
214214 then invariantCalc(x, (balanceB - amountToSend))
215215 else invariantCalc((balanceA - amountToSend), y)
216216 if ((stepInvariant > invariant))
217217 then $Tuple2(amountToSend, stepInvariant)
218218 else $Tuple2(-1, 0)
219219 }
220220 else acc
221221
222222 let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000)
223223 if ((0 > amountToSendMin._1))
224224 then throw("Price is worse than minReceived")
225225 else {
226226 let invEstimated = if ((tokenId == assetIdA))
227227 then invariantCalc(x, (balanceB - amountToSendEstimated))
228228 else if ((tokenId == assetIdB))
229229 then invariantCalc((balanceA - amountToSendEstimated), y)
230230 else throw("Wrong asset in payment")
231231 if ((invariant > invEstimated))
232232 then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, invEstimated)))
233233 then throw("The requested price is too not profitable for user")
234234 else {
235235 let a = {
236236 let $l = [25, 200, 500]
237237 let $s = size($l)
238238 let $acc0 = $Tuple2(-1, 0)
239239 func $f0_1 ($a,$i) = if (($i >= $s))
240240 then $a
241241 else getStepAmount($a, $l[$i])
242242
243243 func $f0_2 ($a,$i) = if (($i >= $s))
244244 then $a
245245 else throw("List size exceeds 3")
246246
247247 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
248248 }
249249 if ((0 > a._1))
250250 then amountToSendMin._1
251251 else a._1
252252 }
253253 else {
254254 let a = {
255255 let $l = [-500, -200, -25]
256256 let $s = size($l)
257257 let $acc0 = $Tuple2(-1, 0)
258258 func $f0_1 ($a,$i) = if (($i >= $s))
259259 then $a
260260 else getStepAmount($a, $l[$i])
261261
262262 func $f0_2 ($a,$i) = if (($i >= $s))
263263 then $a
264264 else throw("List size exceeds 3")
265265
266266 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
267267 }
268268 let tupleSendBetter = if ((0 > a._1))
269269 then $Tuple2(amountToSendEstimated, invEstimated)
270270 else a
271271 if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, tupleSendBetter._2)))
272272 then throw("The requested price is too not profitable for user")
273273 else tupleSendBetter._1
274274 }
275275 }
276276 }
277277
278278
279279 func getAssetInfo (assetId) = match assetId {
280280 case id: ByteVector =>
281281 let stringId = toBase58String(id)
282282 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
283283 $Tuple3(stringId, info.name, info.decimals)
284284 case waves: Unit =>
285285 $Tuple3("WAVES", "WAVES", 8)
286286 case _ =>
287287 throw("Match error")
288288 }
289289
290290
291291 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
292292
293293
294294 func throwIsActive () = throw("DApp is already active")
295295
296296
297297 func isActive () = if (active)
298298 then unit
299299 else throw("DApp is inactive at this moment")
300300
301301
302302 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
303303 then unit
304304 else throw("Only admin can call this function")
305305
306306
307307 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
308308
309309
310310 func throwOnePayment () = throw("One attached payment expected")
311311
312312
313313 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
314314
315315
316316 func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB))
317317
318318
319319 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
320320 then $Tuple2("lockNeutrino", stakingUSDNAddress)
321321 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
322322
323323
324324 func calcStakingParams (stake,amount,assetId) = if (stake)
325325 then {
326326 let $t093629428 = calcStakingFuncAndAddres(stake, assetId)
327327 let call = $t093629428._1
328328 let stakingAddr = $t093629428._2
329329 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
330330 }
331331 else {
332332 let $t095149580 = calcStakingFuncAndAddres(stake, assetId)
333333 let call = $t095149580._1
334334 let stakingAddr = $t095149580._2
335335 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
336336 }
337337
338338
339339 func calculateFeeDiscount (userAddr) = {
340340 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
341341 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
342342 let discounts = split(getStringValue(oracle, kDiscounts), ",")
343343 if (if ((swopAmount >= parseIntValue(discountValues[0])))
344344 then (parseIntValue(discountValues[1]) > swopAmount)
345345 else false)
346346 then (feeScale6 - parseIntValue(discounts[0]))
347347 else if (if ((swopAmount >= parseIntValue(discountValues[1])))
348348 then (parseIntValue(discountValues[2]) > swopAmount)
349349 else false)
350350 then (feeScale6 - parseIntValue(discounts[1]))
351351 else if (if ((swopAmount >= parseIntValue(discountValues[2])))
352352 then (parseIntValue(discountValues[3]) > swopAmount)
353353 else false)
354354 then (feeScale6 - parseIntValue(discounts[2]))
355355 else if (if ((swopAmount >= parseIntValue(discountValues[3])))
356356 then (parseIntValue(discountValues[4]) > swopAmount)
357357 else false)
358358 then (feeScale6 - parseIntValue(discounts[3]))
359359 else if ((swopAmount >= parseIntValue(discountValues[4])))
360360 then (feeScale6 - parseIntValue(discounts[4]))
361361 else feeScale6
362362 }
363363
364364
365365 func calcBalanceAndPmtRatio (ABalance,BBalance,minAmountToReceive,pmtAmount,pmtAssetId) = if ((balanceA > balanceB))
366366 then {
367367 let ratio = fraction(scale8, balanceA, balanceB)
368368 let pratio = if ((pmtAssetId == assetIdA))
369369 then fraction(scale8, minAmountToReceive, pmtAmount)
370370 else fraction(scale8, pmtAmount, minAmountToReceive)
371371 $Tuple2(ratio, pratio)
372372 }
373373 else {
374374 let ratio = fraction(scale8, balanceB, balanceA)
375375 let pratio = if ((pmtAssetId == assetIdA))
376376 then fraction(scale8, pmtAmount, minAmountToReceive)
377377 else fraction(scale8, minAmountToReceive, pmtAmount)
378378 $Tuple2(ratio, pratio)
379379 }
380380
381381
382382 @Callable(i)
383383 func init () = {
384384 let $t01149811575 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
385385 let pmtAmountA = $t01149811575._1
386386 let pmtAssetIdA = $t01149811575._2
387387 let $t01158011657 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
388388 let pmtAmountB = $t01158011657._1
389389 let pmtAssetIdB = $t01158011657._2
390390 let $t01166211739 = getAssetInfo(pmtAssetIdA)
391391 let pmtStrAssetIdA = $t01166211739._1
392392 let pmtAssetNameA = $t01166211739._2
393393 let pmtDecimalsA = $t01166211739._3
394394 let $t01174411821 = getAssetInfo(pmtAssetIdB)
395395 let pmtStrAssetIdB = $t01174411821._1
396396 let pmtAssetNameB = $t01174411821._2
397397 let pmtDecimalsB = $t01174411821._3
398398 if (isDefined(getBoolean(this, kActive)))
399399 then throwIsActive()
400400 else if ((pmtAssetIdA == pmtAssetIdB))
401401 then throw("Assets must be different")
402402 else {
403403 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
404404 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
405405 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
406406 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
407407 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
408408 let shareIssueId = calculateAssetId(shareIssue)
409409 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
410410 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
411411 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
412412 else 0
413413 if ((stake1 == stake1))
414414 then {
415415 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
416416 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
417417 else 0
418418 if ((stake2 == stake2))
419419 then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
420420 else throw("Strict value is not equal to itself.")
421421 }
422422 else throw("Strict value is not equal to itself.")
423423 }
424424 }
425425
426426
427427
428428 @Callable(i)
429429 func replenishWithTwoTokens () = valueOrElse(isActive(), {
430430 let pmtAssetIdA = i.payments[0].assetId
431431 let pmtAssetIdB = i.payments[1].assetId
432432 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
433433 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
434434 let $t01446914546 = getAssetInfo(pmtAssetIdA)
435435 let pmtStrAssetIdA = $t01446914546._1
436436 let pmtAssetNameA = $t01446914546._2
437437 let pmtDecimalsA = $t01446914546._3
438438 let $t01455114668 = getAssetInfo(pmtAssetIdB)
439439 let pmtStrAssetIdB = $t01455114668._1
440440 let pmtAssetNameB = $t01455114668._2
441441 let pmtDecimalsB = $t01455114668._3
442442 let $t01467315177 = if ((ratioShareTokensInB > ratioShareTokensInA))
443443 then {
444444 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
445445 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
446446 }
447447 else {
448448 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
449449 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
450450 }
451451 let pmtAmountA = $t01467315177._1
452452 let pmtAmountB = $t01467315177._2
453453 let change = $t01467315177._3
454454 let changeAssetId = $t01467315177._4
455455 let shareTokenRatio = $t01467315177._5
456456 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
457457 if ((size(i.payments) != 2))
458458 then throw("Two attached assets expected")
459459 else if (if ((pmtAssetIdA != assetIdA))
460460 then true
461461 else (pmtAssetIdB != assetIdB))
462462 then throwAssets()
463463 else if ((shareTokenToPayAmount == 0))
464464 then throw("Too small amount to replenish")
465465 else if ((0 > change))
466466 then throw("Change < 0")
467467 else if (!(hasEnoughBalance))
468468 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
469469 else {
470470 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
471471 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
472472 else 0
473473 if ((stake1 == stake1))
474474 then {
475475 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
476476 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
477477 else 0
478478 if ((stake2 == stake2))
479479 then [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), ScriptTransfer(i.caller, change, changeAssetId)]
480480 else throw("Strict value is not equal to itself.")
481481 }
482482 else throw("Strict value is not equal to itself.")
483483 }
484484 })
485485
486486
487487
488488 @Callable(i)
489489 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), {
490490 let $t01691016985 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
491491 let pmtAmount = $t01691016985._1
492492 let pmtAssetId = $t01691016985._2
493493 let $t01699017063 = getAssetInfo(pmtAssetId)
494494 let pmtStrAssetId = $t01699017063._1
495495 let pmtAssetName = $t01699017063._2
496496 let pmtDecimals = $t01699017063._3
497497 let pmtMinThreshold = 5000000
498498 let thresholdValueForMinTolerance = 50000000
499499 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
500500 then 100000
501501 else 1
502502 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
503503 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
504504 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
505505 if ((pmtMinThreshold > pmtAmount))
506506 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
507507 else if ((size(i.payments) != 1))
508508 then throwOnePayment()
509509 else if (!(hasEnoughBalance))
510510 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
511511 else if (if ((pmtAssetId != assetIdA))
512512 then (pmtAssetId != assetIdB)
513513 else false)
514514 then throwAssets()
515515 else {
516516 let $t01804118683 = if ((pmtAssetId == assetIdA))
517517 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
518518 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
519519 let virtualReplenishA = $t01804118683._1
520520 let virtualReplenishB = $t01804118683._2
521521 let balanceAfterSwapA = $t01804118683._3
522522 let balanceAfterSwapB = $t01804118683._4
523523 let newBalanceA = $t01804118683._5
524524 let newBalanceB = $t01804118683._6
525525 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
526526 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
527527 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
528528 then true
529529 else (invariant > invariantNew))
530530 then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
531531 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
532532 then true
533533 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
534534 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
535535 else {
536536 let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
537537 let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
538538 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
539539 let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
540540 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
541541 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
542542 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
543543 let $t02039420689 = if ((pmtStrAssetId == strAssetIdA))
544544 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
545545 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
546546 let stakeAmount = $t02039420689._1
547547 let unstakeAmount = $t02039420689._2
548548 let unstakeAsset = $t02039420689._3
549549 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
550550 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
551551 else 0
552552 if ((stake1 == stake1))
553553 then {
554554 let stake2 = if (containsElement(stakingAssets, unstakeAsset))
555555 then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
556556 else 0
557557 if ((stake2 == stake2))
558558 then [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId), ScriptTransfer(moneyBoxAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(moneyBoxAddress, governanceRewardTokenB, assetIdB), IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB)))]
559559 else throw("Strict value is not equal to itself.")
560560 }
561561 else throw("Strict value is not equal to itself.")
562562 }
563563 }
564564 })
565565
566566
567567
568568 @Callable(i)
569569 func withdraw () = valueOrElse(isActive(), {
570570 let $t02197622051 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
571571 let pmtAmount = $t02197622051._1
572572 let pmtAssetId = $t02197622051._2
573573 let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply)
574574 let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply)
575575 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
576576 if ((size(i.payments) != 1))
577577 then throwOnePayment()
578578 else if ((pmtAssetId != shareAssetId))
579579 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
580580 else if (!(hasEnoughBalance))
581581 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
582582 else {
583583 let stake1 = if (containsElement(stakingAssets, strAssetIdA))
584584 then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
585585 else 0
586586 if ((stake1 == stake1))
587587 then {
588588 let stake2 = if (containsElement(stakingAssets, strAssetIdB))
589589 then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
590590 else 0
591591 if ((stake2 == stake2))
592592 then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
593593 else throw("Strict value is not equal to itself.")
594594 }
595595 else throw("Strict value is not equal to itself.")
596596 }
597597 })
598598
599599
600600
601601 @Callable(i)
602602 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
603603 let $t02360223677 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
604604 let pmtAmount = $t02360223677._1
605605 let pmtAssetId = $t02360223677._2
606606 if ((0 >= estimatedAmountToReceive))
607607 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
608608 else if ((minAmountToReceive > estimatedAmountToReceive))
609609 then throw("Minimal amount can't be greater than estimated.")
610610 else if ((size(i.payments) != 1))
611611 then throwOnePayment()
612612 else if (!(hasEnoughBalance))
613613 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
614614 else if (if ((pmtAssetId != assetIdA))
615615 then (pmtAssetId != assetIdB)
616616 else false)
617617 then throwAssets()
618618 else if ((10000000 > pmtAmount))
619619 then throw("Only swap of 10.000000 or more tokens is allowed")
620620 else {
621621 let $t02436324479 = calcBalanceAndPmtRatio(balanceA, balanceB, minAmountToReceive, pmtAmount, pmtAssetId)
622622 let balanceRatio = $t02436324479._1
623623 let pmtRatio = $t02436324479._2
624- if ((pmtRatio > (exchangeRatioLimit - fraction(exchangeRatioLimitCoef, balanceRatio, scale8))))
624+ if (((exchangeRatioLimit - fraction(exchangeRatioLimitCoef, balanceRatio, scale8)) > pmtRatio))
625625 then throw("Incorrect args and pmt ratio")
626626 else {
627627 let sendAssetId = if ((pmtAssetId == assetIdA))
628628 then assetIdB
629629 else assetIdA
630630 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
631631 let feeDiscount = calculateFeeDiscount(i.originCaller)
632632 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
633633 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
634634 let $t02523425512 = if ((pmtAssetId == assetIdA))
635635 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
636636 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
637637 let newBalanceA = $t02523425512._1
638638 let newBalanceB = $t02523425512._2
639639 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
640640 if (if ((dAppThresholdAmount > newBalanceA))
641641 then true
642642 else (dAppThresholdAmount > newBalanceB))
643643 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
644644 else {
645645 let $t02583125904 = getAssetInfo(pmtAssetId)
646646 let pmtStrAssetId = $t02583125904._1
647647 let pmtAssetName = $t02583125904._2
648648 let pmtDecimals = $t02583125904._3
649649 let $t02592125998 = getAssetInfo(sendAssetId)
650650 let sendStrAssetId = $t02592125998._1
651651 let sendAssetName = $t02592125998._2
652652 let sendDecimals = $t02592125998._3
653653 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
654654 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
655655 else 0
656656 if ((stake1 == stake1))
657657 then {
658658 let stake2 = if (containsElement(stakingAssets, sendStrAssetId))
659659 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
660660 else 0
661661 if ((stake2 == stake2))
662662 then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], $Tuple2(amountMinusFee, sendAssetId))
663663 else throw("Strict value is not equal to itself.")
664664 }
665665 else throw("Strict value is not equal to itself.")
666666 }
667667 }
668668 }
669669 })
670670
671671
672672
673673 @Callable(i)
674674 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
675675 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
676676 else suspend("Paused by admin"))
677677
678678
679679
680680 @Callable(i)
681681 func activate () = valueOrElse(isAdminCall(i), if (active)
682682 then throwIsActive()
683683 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
684684
685685
686686
687687 @Callable(i)
688688 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
689689 let amountEnrollA = (accountBalanceWithStakedA - balanceA)
690690 let amountEnrollB = (accountBalanceWithStakedB - balanceB)
691691 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
692692 if ((i.caller != moneyBoxAddress))
693693 then throw("Only the money box can call this function")
694694 else if (if ((0 > amountEnrollA))
695695 then true
696696 else (0 > amountEnrollB))
697697 then suspend("Enroll amount negative")
698698 else if (if ((amountEnrollA == 0))
699699 then (amountEnrollB == 0)
700700 else false)
701701 then throw("No money to take")
702702 else {
703703 let stake1 = if (if (containsElement(stakingAssets, strAssetIdA))
704704 then (amountEnrollA > 0)
705705 else false)
706706 then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
707707 else 0
708708 if ((stake1 == stake1))
709709 then {
710710 let stake2 = if (if (containsElement(stakingAssets, strAssetIdB))
711711 then (amountEnrollB > 0)
712712 else false)
713713 then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
714714 else 0
715715 if ((stake2 == stake2))
716716 then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
717717 else throw("Strict value is not equal to itself.")
718718 }
719719 else throw("Strict value is not equal to itself.")
720720 }
721721 })
722722
723723
724724
725725 @Callable(i)
726726 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
727727 then throw("Only contract itself can invoke this function")
728728 else {
729729 let $t02904129144 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
730730 let call = $t02904129144._1
731731 let addr = $t02904129144._2
732732 let params = $t02904129144._3
733733 let payments = $t02904129144._4
734734 let inv = invoke(addr, call, params, payments)
735735 if ((inv == inv))
736736 then nil
737737 else throw("Strict value is not equal to itself.")
738738 }
739739
740740
741741
742742 @Callable(i)
743743 func toBigIntInvariant () = valueOrElse(isAdminCall(i), [IntegerEntry(kInvariant, invariantCalc(balanceA, balanceB))])
744744
745745
746746 @Verifier(tx)
747747 func verify () = {
748748 let multiSignedByAdmins = {
749749 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
750750 then 1
751751 else 0
752752 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
753753 then 1
754754 else 0
755755 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
756756 then 1
757757 else 0
758758 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
759759 }
760760 match tx {
761761 case inv: InvokeScriptTransaction =>
762762 let callTakeIntoAccount = if ((inv.dApp == this))
763763 then (inv.function == "takeIntoAccountExtraFunds")
764764 else false
765765 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
766766 then true
767767 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
768768 then true
769769 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
770770 then true
771771 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
772772 if (if (callTakeIntoAccount)
773773 then signedByAdmin
774774 else false)
775775 then true
776776 else multiSignedByAdmins
777777 case _ =>
778778 multiSignedByAdmins
779779 }
780780 }
781781

github/deemru/w8io/026f985 
75.80 ms