tx · 45bFnVCh46mMRUGLKp48ZdVSzKiW9Y2V4pv1zzHNuq5S

3N8dojSXm8by7TgRqTZLqMqDiYErg51rRhN:  -0.01400000 Waves

2021.09.12 17:50 [1699976] smart account 3N8dojSXm8by7TgRqTZLqMqDiYErg51rRhN > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
41.67 ms