tx · 2FUX3QPP1xNYdkyuBgTEsMKbZ4pnaMDhCpRokRNei7W8

3N28mSmEFZr45PJLWYQQACMR6HJWswsEMZs:  -0.01400000 Waves

2021.03.07 15:20 [1427264] smart account 3N28mSmEFZr45PJLWYQQACMR6HJWswsEMZs > SELF 0.00000000 Waves

{ "type": 13, "id": "2FUX3QPP1xNYdkyuBgTEsMKbZ4pnaMDhCpRokRNei7W8", "fee": 1400000, "feeAssetId": null, "timestamp": 1615119620327, "version": 1, "sender": "3N28mSmEFZr45PJLWYQQACMR6HJWswsEMZs", "senderPublicKey": "691U4CfusBmvpHhAEj2gcbZD4GwA6eKNiBqb2M7YY2nU", "proofs": [ "2NiGfdzx2n43XNy3shQh5BfJiqGMv5YL31KEcQsMQHyfJwDzAjxcz7XQpWMvHZayLGxNRKx6eVmUiypJF9TGErNe" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEYAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAAZrQ2F1c2UCAAAADnNodXRkb3duX2N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GxCBQAAAANuaWwAAAAAS3/T8Q==", "chainId": 84, "height": 1427264, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let version = "2.0.0"
5+
6+let kVersion = "version"
7+
8+let kActive = "active"
9+
10+let kAssetIdA = "A_asset_id"
11+
12+let kAssetIdB = "B_asset_id"
13+
14+let kBalanceA = "A_asset_balance"
15+
16+let kBalanceB = "B_asset_balance"
17+
18+let kShareAssetId = "share_asset_id"
19+
20+let kShareAssetSupply = "share_asset_supply"
21+
22+let kFee = "commission"
23+
24+let kFeeScaleDelimiter = "commission_scale_delimiter"
25+
26+let kInvariant = "invariant"
27+
28+let kCause = "shutdown_cause"
29+
30+let adm1 = base58'7FhFLst7Htn4uYxGH7xYMTAmbydLVoiZef3eFghi7CG4'
31+
32+let adm2 = base58'7FhFLst7Htn4uYxGH7xYMTAmbydLVoiZef3eFghi7CG4'
33+
34+let adm3 = base58'7FhFLst7Htn4uYxGH7xYMTAmbydLVoiZef3eFghi7CG4'
35+
36+let admStartStop = base58'7FhFLst7Htn4uYxGH7xYMTAmbydLVoiZef3eFghi7CG4'
37+
38+let admStaking = base58'7FhFLst7Htn4uYxGH7xYMTAmbydLVoiZef3eFghi7CG4'
39+
40+let govAddr = Address(base58'3MqhxbxHEMtp2Rwy1gUb6cPSJHQepdap1Yp')
41+
42+let stakingAddress = Address(base58'3MqhxbxHEMtp2Rwy1gUb6cPSJHQepdap1Yp')
43+
44+let USDN = base58'3FUNGbzfNsQ1AZfvumCUqARXvpjjLQrvCzorYuDryQAq'
45+
46+let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee))
47+
48+let isActive = getBooleanValue(this, kActive)
49+
50+let strAssetIdA = getStringValue(this, kAssetIdA)
51+
52+let strAssetIdB = getStringValue(this, kAssetIdB)
53+
54+let assetIdA = if ((strAssetIdA == "WAVES"))
55+ then unit
56+ else fromBase58String(strAssetIdA)
57+
58+let assetIdB = if ((strAssetIdB == "WAVES"))
59+ then unit
60+ else fromBase58String(strAssetIdB)
61+
62+let assetNameA = match assetIdA {
63+ case id: ByteVector =>
64+ value(assetInfo(id)).name
65+ case waves: Unit =>
66+ "WAVES"
67+ case _ =>
68+ throw("Match error")
69+}
70+
71+let assetNameB = match assetIdB {
72+ case id: ByteVector =>
73+ value(assetInfo(id)).name
74+ case waves: Unit =>
75+ "WAVES"
76+ case _ =>
77+ throw("Match error")
78+}
79+
80+let balanceA = getIntegerValue(this, kBalanceA)
81+
82+let balanceB = getIntegerValue(this, kBalanceB)
83+
84+let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
85+
86+let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
87+
88+let invariant = getIntegerValue(this, kInvariant)
89+
90+let fee = 500
91+
92+let feeGovernance = 200
93+
94+let feeScale6 = 1000000
95+
96+let scale3 = 1000
97+
98+let scale8 = 100000000
99+
100+let scale12 = 1000000000000
101+
102+let slippageScale3 = 1000
103+
104+let digits8 = 8
105+
106+let dAppThreshold = 50
107+
108+let dAppThresholdScale2 = 100
109+
110+let exchangeRatioLimitMin = 90000000
111+
112+let exchangeRatioLimitMax = 110000000
113+
114+let alpha = 50
115+
116+let alphaDigits = 2
117+
118+let beta = 46000000
119+
120+func accountBalance (assetId) = match assetId {
121+ case id: ByteVector =>
122+ assetBalance(this, id)
123+ case waves: Unit =>
124+ wavesBalance(this).available
125+ case _ =>
126+ throw("Match error")
127+}
128+
129+
130+let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) {
131+ case staked: Int =>
132+ staked
133+ case nothing: Unit =>
134+ 0
135+ case _ =>
136+ throw("Match error")
137+}
138+
139+let availableBalanceA = (balanceA - (if ((assetIdA == USDN))
140+ then stakedAmountUSDN
141+ else 0))
142+
143+let availableBalanceB = (balanceB - (if ((assetIdB == USDN))
144+ then stakedAmountUSDN
145+ else 0))
146+
147+let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN))
148+ then stakedAmountUSDN
149+ else 0))
150+
151+let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN))
152+ then stakedAmountUSDN
153+ else 0))
154+
155+let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
156+ then (accountBalanceWithStakedB >= balanceB)
157+ else false
158+
159+func skewness (x,y) = (((fraction(scale12, x, y) + fraction(scale12, y, x)) / 2) / 10000)
160+
161+
162+func invariantCalc (x,y) = {
163+ let sk = skewness(x, y)
164+ (fraction((x + y), scale8, pow(sk, digits8, alpha, alphaDigits, digits8, UP)) + (2 * fraction(pow(fraction(x, y, scale8), 0, 5, 1, (digits8 / 2), DOWN), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8)))
165+ }
166+
167+
168+func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
169+ let slippageValue = (scale8 - ((scale8 * 1) / 10000000))
170+ let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
171+ let x = (balanceA + tokenReceiveAmount)
172+ let y = (balanceB + tokenReceiveAmount)
173+ let invariantNew = if ((tokenId == assetIdA))
174+ then invariantCalc(x, (balanceB - amountToSendEstimated))
175+ else if ((tokenId == assetIdB))
176+ then invariantCalc((balanceA - amountToSendEstimated), y)
177+ else throw("Wrong asset in payment")
178+ let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
179+ func getStepAmount (acc,step) = {
180+ let amountToSend = (amountToSendEstimated - ((step * deltaBetweenMaxAndMinSendValue) / 5))
181+ let stepInvariant = if ((tokenId == assetIdA))
182+ then invariantCalc(x, (balanceB - amountToSend))
183+ else invariantCalc((balanceA - amountToSend), y)
184+ if (true)
185+ then 1
186+ else acc
187+ }
188+
189+ let stepAmount = {
190+ let $list56555698 = [1, 2, 3, 4, 5]
191+ let $size56555698 = size($list56555698)
192+ let $acc056555698 = -1
193+ if (($size56555698 == 0))
194+ then $acc056555698
195+ else {
196+ let $acc156555698 = getStepAmount($acc056555698, $list56555698[0])
197+ if (($size56555698 == 1))
198+ then $acc156555698
199+ else {
200+ let $acc256555698 = getStepAmount($acc156555698, $list56555698[1])
201+ if (($size56555698 == 2))
202+ then $acc256555698
203+ else {
204+ let $acc356555698 = getStepAmount($acc256555698, $list56555698[2])
205+ if (($size56555698 == 3))
206+ then $acc356555698
207+ else {
208+ let $acc456555698 = getStepAmount($acc356555698, $list56555698[3])
209+ if (($size56555698 == 4))
210+ then $acc456555698
211+ else {
212+ let $acc556555698 = getStepAmount($acc456555698, $list56555698[4])
213+ if (($size56555698 == 5))
214+ then $acc556555698
215+ else {
216+ let $acc656555698 = getStepAmount($acc556555698, $list56555698[5])
217+ throw("List size exceed 5")
218+ }
219+ }
220+ }
221+ }
222+ }
223+ }
224+ }
225+ if (true)
226+ then throw(toString(stepAmount))
227+ else if ((0 > stepAmount))
228+ then throw("something went wrong while working with amountToSend")
229+ else if (if ((invariantEstimatedRatio > slippageValue))
230+ then (invariantNew > invariant)
231+ else false)
232+ then amountToSendEstimated
233+ else ((stepAmount * (feeScale6 - fee)) / feeScale6)
234+ }
235+
236+
237+func getAssetInfo (assetId) = match assetId {
238+ case id: ByteVector =>
239+ let stringId = toBase58String(id)
240+ let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
241+ $Tuple3(stringId, info.name, info.decimals)
242+ case waves: Unit =>
243+ $Tuple3("WAVES", "WAVES", 8)
244+ case _ =>
245+ throw("Match error")
246+}
247+
248+
249+func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
250+
251+
252+func deductStakingFee (amount,assetId) = if ((assetId == USDN))
253+ then {
254+ let result = (amount - stakingFeeInUSDN)
255+ if ((0 >= result))
256+ then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N"))
257+ else result
258+ }
259+ else amount
260+
261+
262+func throwIsActive () = throw("DApp is already active")
263+
264+
265+func throwIsInactive () = throw("DApp is inactive at this moment")
266+
267+
268+func throwOnlyAdmin () = throw("Only admin can call this function")
269+
270+
271+func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
272+
273+
274+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))
275+
276+
277+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"))
278+
279+
280+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"))
281+
282+
283+func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
284+
285+
286+@Callable(i)
287+func init () = {
288+ let $t084558532 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
289+ let pmtAmountA = $t084558532._1
290+ let pmtAssetIdA = $t084558532._2
291+ let $t085378614 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
292+ let pmtAmountB = $t085378614._1
293+ let pmtAssetIdB = $t085378614._2
294+ let $t086198696 = getAssetInfo(pmtAssetIdA)
295+ let pmtStrAssetIdA = $t086198696._1
296+ let pmtAssetNameA = $t086198696._2
297+ let pmtDecimalsA = $t086198696._3
298+ let $t087018778 = getAssetInfo(pmtAssetIdB)
299+ let pmtStrAssetIdB = $t087018778._1
300+ let pmtAssetNameB = $t087018778._2
301+ let pmtDecimalsB = $t087018778._3
302+ if (isDefined(getBoolean(this, kActive)))
303+ then throwIsActive()
304+ else if ((pmtAssetIdA == pmtAssetIdB))
305+ then throw("Assets must be different")
306+ else {
307+ let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
308+ let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
309+ let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
310+ let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN))
311+ let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
312+ let shareIssueId = calculateAssetId(shareIssue)
313+ let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
314+[StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
315+ }
316+ }
317+
318+
319+
320+@Callable(i)
321+func replenishWithTwoTokens (slippageTolerance) = {
322+ let pmtAssetIdA = i.payments[0].assetId
323+ let pmtAssetIdB = i.payments[1].assetId
324+ let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA)
325+ let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB)
326+ let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB))
327+ let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA)
328+ let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB)
329+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
330+ let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))
331+ if (!(isActive))
332+ then throwIsInactive()
333+ else if (if ((0 > slippageTolerance))
334+ then true
335+ else (slippageTolerance > 10))
336+ then throw("Slippage tolerance must be <= 1%")
337+ else if ((size(i.payments) != 2))
338+ then throw("Two attached assets expected")
339+ else if (if ((pmtAssetIdA != assetIdA))
340+ then true
341+ else (pmtAssetIdB != assetIdB))
342+ then throwAssets()
343+ else if (if ((((scale3 * (slippageScale3 - slippageTolerance)) / slippageScale3) > tokenRatio))
344+ then true
345+ else (tokenRatio > ((scale3 * (slippageScale3 + slippageTolerance)) / slippageScale3)))
346+ then throw("Incorrect assets amount: amounts must have the contract ratio")
347+ else if ((shareTokenToPayAmount == 0))
348+ then throw("Too small amount to replenish")
349+ else if (!(hasEnoughBalance))
350+ then suspendSuspicious()
351+ else [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
352+ }
353+
354+
355+
356+@Callable(i)
357+func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = {
358+ let $t01299313068 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
359+ let pmtAmount = $t01299313068._1
360+ let pmtAssetId = $t01299313068._2
361+ let pmtMinThreshold = 5000000
362+ let thresholdValueForMinTolerance = 50000000
363+ let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
364+ then 100000
365+ else 1
366+ let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
367+ let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
368+ let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
369+ let slippageValueMaxForSwap = (scale8 + ((scale8 * 1) / 10000000))
370+ if (!(isActive))
371+ then throwIsInactive()
372+ else if ((pmtMinThreshold > pmtAmount))
373+ then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
374+ else if ((size(i.payments) != 1))
375+ then throw("One attached payment expected")
376+ else if (!(hasEnoughBalance))
377+ then suspendSuspicious()
378+ else if (if ((pmtAssetId != assetIdA))
379+ then (pmtAssetId != assetIdB)
380+ else false)
381+ then throwAssets()
382+ else {
383+ let $t01407014835 = if ((pmtAssetId == assetIdA))
384+ then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB)
385+ else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount))
386+ let virtualReplenishA = $t01407014835._1
387+ let virtualReplenishB = $t01407014835._2
388+ let balanceAfterSwapA = $t01407014835._3
389+ let balanceAfterSwapB = $t01407014835._4
390+ let invariantCalculated = $t01407014835._5
391+ let newBalanceA = $t01407014835._6
392+ let newBalanceB = $t01407014835._7
393+ let newBalanceEntry = if ((pmtAssetId == assetIdA))
394+ then IntegerEntry(kBalanceA, newBalanceA)
395+ else IntegerEntry(kBalanceB, newBalanceB)
396+ let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
397+ let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
398+ let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
399+ let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
400+ if (if ((slippageValueMinForSwap >= invariantEstimatedRatio))
401+ then true
402+ else (invariant > invariantNew))
403+ then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
404+ else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
405+ then true
406+ else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
407+ then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
408+ else if (if ((dAppThresholdAmount > newBalanceA))
409+ then true
410+ else (dAppThresholdAmount > newBalanceB))
411+ then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
412+ else {
413+ let ratioShareTokensInA = fraction(deductStakingFee(virtualReplenishA, assetIdA), scale8, balanceAfterSwapA)
414+ let ratioShareTokensInB = fraction(deductStakingFee(virtualReplenishB, assetIdB), scale8, balanceAfterSwapB)
415+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
416+[Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)]
417+ }
418+ }
419+ }
420+
421+
422+
423+@Callable(i)
424+func withdraw () = {
425+ let $t01698817131 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
426+ let pmtAmount = $t01698817131._1
427+ let pmtAssetId = $t01698817131._2
428+ let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
429+ let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
430+ let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
431+ if (!(isActive))
432+ then throwIsInactive()
433+ else if ((size(i.payments) != 1))
434+ then throw("One attached payment expected")
435+ else if ((pmtAssetId != shareAssetId))
436+ then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
437+ else if (!(hasEnoughBalance))
438+ then suspendSuspicious()
439+ else if (if ((amountToPayA > availableBalanceA))
440+ then true
441+ else (amountToPayB > availableBalanceB))
442+ then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
443+ else [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)]
444+ }
445+
446+
447+
448+@Callable(i)
449+func exchange (estimatedAmountToReceive,minAmountToReceive) = {
450+ let $t01841418489 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
451+ let pmtAmount = $t01841418489._1
452+ let pmtAssetId = $t01841418489._2
453+ if (!(isActive))
454+ then throwIsInactive()
455+ else if ((0 >= estimatedAmountToReceive))
456+ then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
457+ else if ((minAmountToReceive > estimatedAmountToReceive))
458+ then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive)))
459+ else if ((size(i.payments) != 1))
460+ then throw("One attached payment expected")
461+ else if (!(hasEnoughBalance))
462+ then suspendSuspicious()
463+ else if (if ((pmtAssetId != assetIdA))
464+ then (pmtAssetId != assetIdB)
465+ else false)
466+ then throwAssets()
467+ else if ((10000000 > pmtAmount))
468+ then throw("Only swap of 10.000000 or more tokens is allowed")
469+ else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
470+ then true
471+ else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
472+ then throw("Incorrect args and pmt ratio")
473+ else {
474+ let sendAssetId = if ((pmtAssetId == assetIdA))
475+ then assetIdB
476+ else assetIdA
477+ let amountWithoutFee = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
478+ let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
479+ let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6)
480+ let $t01986920130 = if ((pmtAssetId == assetIdA))
481+ then $Tuple2((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward))
482+ else $Tuple2(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount))
483+ let newBalanceA = $t01986920130._1
484+ let newBalanceB = $t01986920130._2
485+ let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
486+ if (if ((dAppThresholdAmount > newBalanceA))
487+ then true
488+ else (dAppThresholdAmount > newBalanceB))
489+ then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
490+ else if (if (if ((assetIdA == USDN))
491+ then (sendAssetId == assetIdA)
492+ else false)
493+ then (stakedAmountUSDN >= newBalanceA)
494+ else false)
495+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
496+ else if (if (if ((assetIdB == USDN))
497+ then (sendAssetId == assetIdB)
498+ else false)
499+ then (stakedAmountUSDN >= newBalanceB)
500+ else false)
501+ then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
502+ else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountWithFee, sendAssetId), ScriptTransfer(govAddr, governanceReward, sendAssetId)]
503+ }
504+ }
505+
506+
507+
508+@Callable(i)
509+func shutdown () = if (!(isActive))
510+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
511+ else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey)))
512+ then throwOnlyAdmin()
513+ else suspend("Paused by admin")
514+
515+
516+
517+@Callable(i)
518+func activate () = if (isActive)
519+ then throwIsActive()
520+ else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey)))
521+ then throwOnlyAdmin()
522+ else [BooleanEntry(kActive, true), DeleteEntry(kCause)]
523+
524+
525+
526+@Callable(i)
527+func takeIntoAccountExtraFunds (amountLeave) = {
528+ let uncountableA = (accountBalanceWithStakedA - balanceA)
529+ let uncountableB = (accountBalanceWithStakedB - balanceB)
530+ let amountEnrollA = (uncountableA - (if ((assetIdA == USDN))
531+ then amountLeave
532+ else 0))
533+ let amountEnrollB = (uncountableB - (if ((assetIdB == USDN))
534+ then amountLeave
535+ else 0))
536+ if (!(isActive))
537+ then throwIsInactive()
538+ else if ((i.caller != this))
539+ then throwOnlyAdmin()
540+ else if ((0 > amountLeave))
541+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
542+ else if (if ((0 > uncountableA))
543+ then true
544+ else (0 > uncountableB))
545+ then suspend("Enroll amount negative")
546+ else if (if ((0 > amountEnrollA))
547+ then true
548+ else (0 > amountEnrollB))
549+ then throw("Too large amountLeave")
550+ else [IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
551+ }
552+
553+

github/deemru/w8io/026f985 
34.69 ms