tx · 8snZuBhgf3Ls2nZGPoGZxSiDUgdnM8Ecv2Tt47pro7QJ

3N64F2TmjbhPX19wiqwTdeng1oHJCsnEp7R:  -0.01000000 Waves

2021.09.10 01:25 [1696111] smart account 3N64F2TmjbhPX19wiqwTdeng1oHJCsnEp7R > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
44.22 ms