tx · N7vTyvyfrBbkgu8GAUZkfkKbPZMgg1iTrwSUnadsCeS 3N5yiweseimjbiBTU1JAYkCjr5zrKNYPCkB: -0.01400000 Waves 2021.03.07 18:24 [1427452] smart account 3N5yiweseimjbiBTU1JAYkCjr5zrKNYPCkB > SELF 0.00000000 Waves
{ "type": 13, "id": "N7vTyvyfrBbkgu8GAUZkfkKbPZMgg1iTrwSUnadsCeS", "fee": 1400000, "feeAssetId": null, "timestamp": 1615130654768, "version": 1, "sender": "3N5yiweseimjbiBTU1JAYkCjr5zrKNYPCkB", "senderPublicKey": "DY7p8fMhtqqGvpJPFECpdPY9vRFLtLHRgt1K7DugA84t", "proofs": [ "28rZCQQ2w3dW7M8t1pBPCAra8a1hdvDzXAbixcrcMzpAwgqZqxce3SAFXLB9PirvQR7FFVRmCHF5mrMJ8gcMbMoN" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEYAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAAZrQ2F1c2UCAAAADnNodXRkb3duX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bEIFAAAAA25pbAAAAABZUiFb", "chainId": 84, "height": 1427452, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
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 amountToSend | |
186 | + | else acc | |
187 | + | } | |
188 | + | ||
189 | + | let stepAmount = { | |
190 | + | let $list57965839 = [1, 2, 3, 4, 5] | |
191 | + | let $size57965839 = size($list57965839) | |
192 | + | let $acc057965839 = -1 | |
193 | + | if (($size57965839 == 0)) | |
194 | + | then $acc057965839 | |
195 | + | else { | |
196 | + | let $acc157965839 = getStepAmount($acc057965839, $list57965839[0]) | |
197 | + | if (($size57965839 == 1)) | |
198 | + | then $acc157965839 | |
199 | + | else { | |
200 | + | let $acc257965839 = getStepAmount($acc157965839, $list57965839[1]) | |
201 | + | if (($size57965839 == 2)) | |
202 | + | then $acc257965839 | |
203 | + | else { | |
204 | + | let $acc357965839 = getStepAmount($acc257965839, $list57965839[2]) | |
205 | + | if (($size57965839 == 3)) | |
206 | + | then $acc357965839 | |
207 | + | else { | |
208 | + | let $acc457965839 = getStepAmount($acc357965839, $list57965839[3]) | |
209 | + | if (($size57965839 == 4)) | |
210 | + | then $acc457965839 | |
211 | + | else { | |
212 | + | let $acc557965839 = getStepAmount($acc457965839, $list57965839[4]) | |
213 | + | if (($size57965839 == 5)) | |
214 | + | then $acc557965839 | |
215 | + | else { | |
216 | + | let $acc657965839 = getStepAmount($acc557965839, $list57965839[5]) | |
217 | + | throw("List size exceed 5") | |
218 | + | } | |
219 | + | } | |
220 | + | } | |
221 | + | } | |
222 | + | } | |
223 | + | } | |
224 | + | } | |
225 | + | if ((0 > stepAmount)) | |
226 | + | then throw("something went wrong while working with amountToSend") | |
227 | + | else if (if ((invariantEstimatedRatio > slippageValue)) | |
228 | + | then (invariantNew > invariant) | |
229 | + | else false) | |
230 | + | then amountToSendEstimated | |
231 | + | else ((stepAmount * (feeScale6 - fee)) / feeScale6) | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func getAssetInfo (assetId) = match assetId { | |
236 | + | case id: ByteVector => | |
237 | + | let stringId = toBase58String(id) | |
238 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
239 | + | $Tuple3(stringId, info.name, info.decimals) | |
240 | + | case waves: Unit => | |
241 | + | $Tuple3("WAVES", "WAVES", 8) | |
242 | + | case _ => | |
243 | + | throw("Match error") | |
244 | + | } | |
245 | + | ||
246 | + | ||
247 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
248 | + | ||
249 | + | ||
250 | + | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
251 | + | then { | |
252 | + | let result = (amount - stakingFeeInUSDN) | |
253 | + | if ((0 >= result)) | |
254 | + | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
255 | + | else result | |
256 | + | } | |
257 | + | else amount | |
258 | + | ||
259 | + | ||
260 | + | func throwIsActive () = throw("DApp is already active") | |
261 | + | ||
262 | + | ||
263 | + | func throwIsInactive () = throw("DApp is inactive at this moment") | |
264 | + | ||
265 | + | ||
266 | + | func throwOnlyAdmin () = throw("Only admin can call this function") | |
267 | + | ||
268 | + | ||
269 | + | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
270 | + | ||
271 | + | ||
272 | + | 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)) | |
273 | + | ||
274 | + | ||
275 | + | 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")) | |
276 | + | ||
277 | + | ||
278 | + | 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")) | |
279 | + | ||
280 | + | ||
281 | + | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
282 | + | ||
283 | + | ||
284 | + | @Callable(i) | |
285 | + | func init () = { | |
286 | + | let $t085508627 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
287 | + | let pmtAmountA = $t085508627._1 | |
288 | + | let pmtAssetIdA = $t085508627._2 | |
289 | + | let $t086328709 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
290 | + | let pmtAmountB = $t086328709._1 | |
291 | + | let pmtAssetIdB = $t086328709._2 | |
292 | + | let $t087148791 = getAssetInfo(pmtAssetIdA) | |
293 | + | let pmtStrAssetIdA = $t087148791._1 | |
294 | + | let pmtAssetNameA = $t087148791._2 | |
295 | + | let pmtDecimalsA = $t087148791._3 | |
296 | + | let $t087968873 = getAssetInfo(pmtAssetIdB) | |
297 | + | let pmtStrAssetIdB = $t087968873._1 | |
298 | + | let pmtAssetNameB = $t087968873._2 | |
299 | + | let pmtDecimalsB = $t087968873._3 | |
300 | + | if (isDefined(getBoolean(this, kActive))) | |
301 | + | then throwIsActive() | |
302 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
303 | + | then throw("Assets must be different") | |
304 | + | else { | |
305 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
306 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
307 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
308 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
309 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
310 | + | let shareIssueId = calculateAssetId(shareIssue) | |
311 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
312 | + | [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)] | |
313 | + | } | |
314 | + | } | |
315 | + | ||
316 | + | ||
317 | + | ||
318 | + | @Callable(i) | |
319 | + | func replenishWithTwoTokens (slippageTolerance) = { | |
320 | + | let pmtAssetIdA = i.payments[0].assetId | |
321 | + | let pmtAssetIdB = i.payments[1].assetId | |
322 | + | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
323 | + | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
324 | + | let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB)) | |
325 | + | let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA) | |
326 | + | let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB) | |
327 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
328 | + | let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB)) | |
329 | + | if (!(isActive)) | |
330 | + | then throwIsInactive() | |
331 | + | else if (if ((0 > slippageTolerance)) | |
332 | + | then true | |
333 | + | else (slippageTolerance > 10)) | |
334 | + | then throw("Slippage tolerance must be <= 1%") | |
335 | + | else if ((size(i.payments) != 2)) | |
336 | + | then throw("Two attached assets expected") | |
337 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
338 | + | then true | |
339 | + | else (pmtAssetIdB != assetIdB)) | |
340 | + | then throwAssets() | |
341 | + | else if (if ((((scale3 * (slippageScale3 - slippageTolerance)) / slippageScale3) > tokenRatio)) | |
342 | + | then true | |
343 | + | else (tokenRatio > ((scale3 * (slippageScale3 + slippageTolerance)) / slippageScale3))) | |
344 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
345 | + | else if ((shareTokenToPayAmount == 0)) | |
346 | + | then throw("Too small amount to replenish") | |
347 | + | else if (!(hasEnoughBalance)) | |
348 | + | then suspendSuspicious() | |
349 | + | 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)] | |
350 | + | } | |
351 | + | ||
352 | + | ||
353 | + | ||
354 | + | @Callable(i) | |
355 | + | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
356 | + | let $t01308813163 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
357 | + | let pmtAmount = $t01308813163._1 | |
358 | + | let pmtAssetId = $t01308813163._2 | |
359 | + | let pmtMinThreshold = 5000000 | |
360 | + | let thresholdValueForMinTolerance = 50000000 | |
361 | + | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
362 | + | then 100000 | |
363 | + | else 1 | |
364 | + | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
365 | + | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
366 | + | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
367 | + | let slippageValueMaxForSwap = (scale8 + ((scale8 * 1) / 10000000)) | |
368 | + | if (!(isActive)) | |
369 | + | then throwIsInactive() | |
370 | + | else if ((pmtMinThreshold > pmtAmount)) | |
371 | + | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
372 | + | else if ((size(i.payments) != 1)) | |
373 | + | then throw("One attached payment expected") | |
374 | + | else if (!(hasEnoughBalance)) | |
375 | + | then suspendSuspicious() | |
376 | + | else if (if ((pmtAssetId != assetIdA)) | |
377 | + | then (pmtAssetId != assetIdB) | |
378 | + | else false) | |
379 | + | then throwAssets() | |
380 | + | else { | |
381 | + | let $t01416514930 = if ((pmtAssetId == assetIdA)) | |
382 | + | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
383 | + | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
384 | + | let virtualReplenishA = $t01416514930._1 | |
385 | + | let virtualReplenishB = $t01416514930._2 | |
386 | + | let balanceAfterSwapA = $t01416514930._3 | |
387 | + | let balanceAfterSwapB = $t01416514930._4 | |
388 | + | let invariantCalculated = $t01416514930._5 | |
389 | + | let newBalanceA = $t01416514930._6 | |
390 | + | let newBalanceB = $t01416514930._7 | |
391 | + | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
392 | + | then IntegerEntry(kBalanceA, newBalanceA) | |
393 | + | else IntegerEntry(kBalanceB, newBalanceB) | |
394 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
395 | + | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
396 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
397 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
398 | + | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
399 | + | then true | |
400 | + | else (invariant > invariantNew)) | |
401 | + | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
402 | + | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
403 | + | then true | |
404 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
405 | + | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
406 | + | else if (if ((dAppThresholdAmount > newBalanceA)) | |
407 | + | then true | |
408 | + | else (dAppThresholdAmount > newBalanceB)) | |
409 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
410 | + | else { | |
411 | + | let ratioShareTokensInA = fraction(deductStakingFee(virtualReplenishA, assetIdA), scale8, balanceAfterSwapA) | |
412 | + | let ratioShareTokensInB = fraction(deductStakingFee(virtualReplenishB, assetIdB), scale8, balanceAfterSwapB) | |
413 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
414 | + | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
415 | + | } | |
416 | + | } | |
417 | + | } | |
418 | + | ||
419 | + | ||
420 | + | ||
421 | + | @Callable(i) | |
422 | + | func withdraw () = { | |
423 | + | let $t01708317226 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
424 | + | let pmtAmount = $t01708317226._1 | |
425 | + | let pmtAssetId = $t01708317226._2 | |
426 | + | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
427 | + | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
428 | + | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
429 | + | if (!(isActive)) | |
430 | + | then throwIsInactive() | |
431 | + | else if ((size(i.payments) != 1)) | |
432 | + | then throw("One attached payment expected") | |
433 | + | else if ((pmtAssetId != shareAssetId)) | |
434 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
435 | + | else if (!(hasEnoughBalance)) | |
436 | + | then suspendSuspicious() | |
437 | + | else if (if ((amountToPayA > availableBalanceA)) | |
438 | + | then true | |
439 | + | else (amountToPayB > availableBalanceB)) | |
440 | + | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
441 | + | 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)] | |
442 | + | } | |
443 | + | ||
444 | + | ||
445 | + | ||
446 | + | @Callable(i) | |
447 | + | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
448 | + | let $t01850918584 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
449 | + | let pmtAmount = $t01850918584._1 | |
450 | + | let pmtAssetId = $t01850918584._2 | |
451 | + | if (!(isActive)) | |
452 | + | then throwIsInactive() | |
453 | + | else if ((0 >= estimatedAmountToReceive)) | |
454 | + | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
455 | + | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
456 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
457 | + | else if ((size(i.payments) != 1)) | |
458 | + | then throw("One attached payment expected") | |
459 | + | else if (!(hasEnoughBalance)) | |
460 | + | then suspendSuspicious() | |
461 | + | else if (if ((pmtAssetId != assetIdA)) | |
462 | + | then (pmtAssetId != assetIdB) | |
463 | + | else false) | |
464 | + | then throwAssets() | |
465 | + | else if ((10000000 > pmtAmount)) | |
466 | + | then throw("Only swap of 10.000000 or more tokens is allowed") | |
467 | + | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
468 | + | then true | |
469 | + | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
470 | + | then throw("Incorrect args and pmt ratio") | |
471 | + | else { | |
472 | + | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
473 | + | then assetIdB | |
474 | + | else assetIdA | |
475 | + | let amountWithoutFee = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
476 | + | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
477 | + | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6) | |
478 | + | let $t01996420225 = if ((pmtAssetId == assetIdA)) | |
479 | + | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward)) | |
480 | + | else $Tuple2(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount)) | |
481 | + | let newBalanceA = $t01996420225._1 | |
482 | + | let newBalanceB = $t01996420225._2 | |
483 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
484 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
485 | + | then true | |
486 | + | else (dAppThresholdAmount > newBalanceB)) | |
487 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
488 | + | else if (if (if ((assetIdA == USDN)) | |
489 | + | then (sendAssetId == assetIdA) | |
490 | + | else false) | |
491 | + | then (stakedAmountUSDN >= newBalanceA) | |
492 | + | else false) | |
493 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
494 | + | else if (if (if ((assetIdB == USDN)) | |
495 | + | then (sendAssetId == assetIdB) | |
496 | + | else false) | |
497 | + | then (stakedAmountUSDN >= newBalanceB) | |
498 | + | else false) | |
499 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
500 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountWithFee, sendAssetId), ScriptTransfer(govAddr, governanceReward, sendAssetId)] | |
501 | + | } | |
502 | + | } | |
503 | + | ||
504 | + | ||
505 | + | ||
506 | + | @Callable(i) | |
507 | + | func shutdown () = if (!(isActive)) | |
508 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
509 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
510 | + | then throwOnlyAdmin() | |
511 | + | else suspend("Paused by admin") | |
512 | + | ||
513 | + | ||
514 | + | ||
515 | + | @Callable(i) | |
516 | + | func activate () = if (isActive) | |
517 | + | then throwIsActive() | |
518 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
519 | + | then throwOnlyAdmin() | |
520 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
521 | + | ||
522 | + | ||
523 | + | ||
524 | + | @Callable(i) | |
525 | + | func takeIntoAccountExtraFunds (amountLeave) = { | |
526 | + | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
527 | + | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
528 | + | let amountEnrollA = (uncountableA - (if ((assetIdA == USDN)) | |
529 | + | then amountLeave | |
530 | + | else 0)) | |
531 | + | let amountEnrollB = (uncountableB - (if ((assetIdB == USDN)) | |
532 | + | then amountLeave | |
533 | + | else 0)) | |
534 | + | if (!(isActive)) | |
535 | + | then throwIsInactive() | |
536 | + | else if ((i.caller != this)) | |
537 | + | then throwOnlyAdmin() | |
538 | + | else if ((0 > amountLeave)) | |
539 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
540 | + | else if (if ((0 > uncountableA)) | |
541 | + | then true | |
542 | + | else (0 > uncountableB)) | |
543 | + | then suspend("Enroll amount negative") | |
544 | + | else if (if ((0 > amountEnrollA)) | |
545 | + | then true | |
546 | + | else (0 > amountEnrollB)) | |
547 | + | then throw("Too large amountLeave") | |
548 | + | else [IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
549 | + | } | |
550 | + | ||
551 | + |
github/deemru/w8io/169f3d6 39.23 ms ◑