tx · 8dDN8z9AMD3ETxEkGTzBRJxncDAjBt2V4ewwuFNu19Sd 3N7ztbfp5FWETUA1Qepj3CjKjiFNiR7y6Bd: -0.01000000 Waves 2021.05.26 12:13 [1542442] smart account 3N7ztbfp5FWETUA1Qepj3CjKjiFNiR7y6Bd > SELF 0.00000000 Waves
{ "type": 13, "id": "8dDN8z9AMD3ETxEkGTzBRJxncDAjBt2V4ewwuFNu19Sd", "fee": 1000000, "feeAssetId": null, "timestamp": 1622020418967, "version": 2, "chainId": 84, "sender": "3N7ztbfp5FWETUA1Qepj3CjKjiFNiR7y6Bd", "senderPublicKey": "EV6dgfC6dpnsYoTSKuiy4zWYTQcCus9HZTWaQVdyFPRh", "proofs": [ "fVgeNbQ6mToCqnvsYComxorCbCowZUew3P7M31mGSEvDy5sjQNKZMNBBj3tx11QyDfMwcTRKsc9raVbVUm9pExf" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEYAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAAZrQ2F1c2U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AAAAAAUAAAAEYWRtMgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAARhZG0zBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACmFkbVN0YWtpbmcDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BgUAAAALY2FsbFN0YWtpbmcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5e555wg==", "height": 1542442, "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'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
31 | + | ||
32 | + | let adm2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
33 | + | ||
34 | + | let adm3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
35 | + | ||
36 | + | let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
37 | + | ||
38 | + | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
39 | + | ||
40 | + | let govAddr = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
41 | + | ||
42 | + | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
43 | + | ||
44 | + | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
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) = if ((acc == -1)) | |
180 | + | then { | |
181 | + | let amountToSend = (amountToSendEstimated - ((step * deltaBetweenMaxAndMinSendValue) / 5)) | |
182 | + | let stepInvariant = if ((tokenId == assetIdA)) | |
183 | + | then invariantCalc(x, (balanceB - amountToSend)) | |
184 | + | else invariantCalc((balanceA - amountToSend), y) | |
185 | + | if ((stepInvariant > invariant)) | |
186 | + | then amountToSend | |
187 | + | else -1 | |
188 | + | } | |
189 | + | else acc | |
190 | + | ||
191 | + | let stepAmount = { | |
192 | + | let $list56775720 = [1, 2, 3, 4, 5] | |
193 | + | let $size56775720 = size($list56775720) | |
194 | + | let $acc056775720 = -1 | |
195 | + | if (($size56775720 == 0)) | |
196 | + | then $acc056775720 | |
197 | + | else { | |
198 | + | let $acc156775720 = getStepAmount($acc056775720, $list56775720[0]) | |
199 | + | if (($size56775720 == 1)) | |
200 | + | then $acc156775720 | |
201 | + | else { | |
202 | + | let $acc256775720 = getStepAmount($acc156775720, $list56775720[1]) | |
203 | + | if (($size56775720 == 2)) | |
204 | + | then $acc256775720 | |
205 | + | else { | |
206 | + | let $acc356775720 = getStepAmount($acc256775720, $list56775720[2]) | |
207 | + | if (($size56775720 == 3)) | |
208 | + | then $acc356775720 | |
209 | + | else { | |
210 | + | let $acc456775720 = getStepAmount($acc356775720, $list56775720[3]) | |
211 | + | if (($size56775720 == 4)) | |
212 | + | then $acc456775720 | |
213 | + | else { | |
214 | + | let $acc556775720 = getStepAmount($acc456775720, $list56775720[4]) | |
215 | + | if (($size56775720 == 5)) | |
216 | + | then $acc556775720 | |
217 | + | else { | |
218 | + | let $acc656775720 = getStepAmount($acc556775720, $list56775720[5]) | |
219 | + | throw("List size exceed 5") | |
220 | + | } | |
221 | + | } | |
222 | + | } | |
223 | + | } | |
224 | + | } | |
225 | + | } | |
226 | + | } | |
227 | + | 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 | |
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 $t084008477 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
289 | + | let pmtAmountA = $t084008477._1 | |
290 | + | let pmtAssetIdA = $t084008477._2 | |
291 | + | let $t084828559 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
292 | + | let pmtAmountB = $t084828559._1 | |
293 | + | let pmtAssetIdB = $t084828559._2 | |
294 | + | let $t085648641 = getAssetInfo(pmtAssetIdA) | |
295 | + | let pmtStrAssetIdA = $t085648641._1 | |
296 | + | let pmtAssetNameA = $t085648641._2 | |
297 | + | let pmtDecimalsA = $t085648641._3 | |
298 | + | let $t086468723 = getAssetInfo(pmtAssetIdB) | |
299 | + | let pmtStrAssetIdB = $t086468723._1 | |
300 | + | let pmtAssetNameB = $t086468723._2 | |
301 | + | let pmtDecimalsB = $t086468723._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 $t01293813013 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
359 | + | let pmtAmount = $t01293813013._1 | |
360 | + | let pmtAssetId = $t01293813013._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 | + | if (!(isActive)) | |
370 | + | then throwIsInactive() | |
371 | + | else if ((pmtMinThreshold > pmtAmount)) | |
372 | + | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
373 | + | else if ((size(i.payments) != 1)) | |
374 | + | then throw("One attached payment expected") | |
375 | + | else if (!(hasEnoughBalance)) | |
376 | + | then suspendSuspicious() | |
377 | + | else if (if ((pmtAssetId != assetIdA)) | |
378 | + | then (pmtAssetId != assetIdB) | |
379 | + | else false) | |
380 | + | then throwAssets() | |
381 | + | else { | |
382 | + | let $t01395014715 = if ((pmtAssetId == assetIdA)) | |
383 | + | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
384 | + | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
385 | + | let virtualReplenishA = $t01395014715._1 | |
386 | + | let virtualReplenishB = $t01395014715._2 | |
387 | + | let balanceAfterSwapA = $t01395014715._3 | |
388 | + | let balanceAfterSwapB = $t01395014715._4 | |
389 | + | let invariantCalculated = $t01395014715._5 | |
390 | + | let newBalanceA = $t01395014715._6 | |
391 | + | let newBalanceB = $t01395014715._7 | |
392 | + | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
393 | + | then IntegerEntry(kBalanceA, newBalanceA) | |
394 | + | else IntegerEntry(kBalanceB, newBalanceB) | |
395 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
396 | + | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
397 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
398 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
399 | + | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
400 | + | then true | |
401 | + | else (invariant > invariantNew)) | |
402 | + | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
403 | + | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
404 | + | then true | |
405 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
406 | + | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
407 | + | else if (if ((dAppThresholdAmount > newBalanceA)) | |
408 | + | then true | |
409 | + | else (dAppThresholdAmount > newBalanceB)) | |
410 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
411 | + | else { | |
412 | + | let ratioShareTokensInA = fraction(deductStakingFee(virtualReplenishA, assetIdA), scale8, balanceAfterSwapA) | |
413 | + | let ratioShareTokensInB = fraction(deductStakingFee(virtualReplenishB, assetIdB), scale8, balanceAfterSwapB) | |
414 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
415 | + | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
416 | + | } | |
417 | + | } | |
418 | + | } | |
419 | + | ||
420 | + | ||
421 | + | ||
422 | + | @Callable(i) | |
423 | + | func withdraw () = { | |
424 | + | let $t01686817011 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
425 | + | let pmtAmount = $t01686817011._1 | |
426 | + | let pmtAssetId = $t01686817011._2 | |
427 | + | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
428 | + | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
429 | + | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
430 | + | if (!(isActive)) | |
431 | + | then throwIsInactive() | |
432 | + | else if ((size(i.payments) != 1)) | |
433 | + | then throw("One attached payment expected") | |
434 | + | else if ((pmtAssetId != shareAssetId)) | |
435 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
436 | + | else if (!(hasEnoughBalance)) | |
437 | + | then suspendSuspicious() | |
438 | + | else if (if ((amountToPayA > availableBalanceA)) | |
439 | + | then true | |
440 | + | else (amountToPayB > availableBalanceB)) | |
441 | + | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
442 | + | 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)] | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | @Callable(i) | |
448 | + | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
449 | + | let $t01829418369 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
450 | + | let pmtAmount = $t01829418369._1 | |
451 | + | let pmtAssetId = $t01829418369._2 | |
452 | + | if (!(isActive)) | |
453 | + | then throwIsInactive() | |
454 | + | else if ((0 >= estimatedAmountToReceive)) | |
455 | + | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
456 | + | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
457 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
458 | + | else if ((size(i.payments) != 1)) | |
459 | + | then throw("One attached payment expected") | |
460 | + | else if (!(hasEnoughBalance)) | |
461 | + | then suspendSuspicious() | |
462 | + | else if (if ((pmtAssetId != assetIdA)) | |
463 | + | then (pmtAssetId != assetIdB) | |
464 | + | else false) | |
465 | + | then throwAssets() | |
466 | + | else if ((10000000 > pmtAmount)) | |
467 | + | then throw("Only swap of 10.000000 or more tokens is allowed") | |
468 | + | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
469 | + | then true | |
470 | + | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
471 | + | then throw("Incorrect args and pmt ratio") | |
472 | + | else { | |
473 | + | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
474 | + | then assetIdB | |
475 | + | else assetIdA | |
476 | + | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
477 | + | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
478 | + | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
479 | + | let $t01972019983 = if ((pmtAssetId == assetIdA)) | |
480 | + | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
481 | + | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
482 | + | let newBalanceA = $t01972019983._1 | |
483 | + | let newBalanceB = $t01972019983._2 | |
484 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
485 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
486 | + | then true | |
487 | + | else (dAppThresholdAmount > newBalanceB)) | |
488 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
489 | + | else if (if (if ((assetIdA == USDN)) | |
490 | + | then (sendAssetId == assetIdA) | |
491 | + | else false) | |
492 | + | then (stakedAmountUSDN >= newBalanceA) | |
493 | + | else false) | |
494 | + | then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceA, assetNameA) | |
495 | + | else if (if (if ((assetIdB == USDN)) | |
496 | + | then (sendAssetId == assetIdB) | |
497 | + | else false) | |
498 | + | then (stakedAmountUSDN >= newBalanceB) | |
499 | + | else false) | |
500 | + | then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceB, assetNameB) | |
501 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(govAddr, governanceReward, sendAssetId)] | |
502 | + | } | |
503 | + | } | |
504 | + | ||
505 | + | ||
506 | + | ||
507 | + | @Callable(i) | |
508 | + | func shutdown () = if (!(isActive)) | |
509 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
510 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
511 | + | then throwOnlyAdmin() | |
512 | + | else suspend("Paused by admin") | |
513 | + | ||
514 | + | ||
515 | + | ||
516 | + | @Callable(i) | |
517 | + | func activate () = if (isActive) | |
518 | + | then throwIsActive() | |
519 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
520 | + | then throwOnlyAdmin() | |
521 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
522 | + | ||
523 | + | ||
524 | + | ||
525 | + | @Callable(i) | |
526 | + | func takeIntoAccountExtraFunds (amountLeave) = { | |
527 | + | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
528 | + | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
529 | + | let amountEnrollA = (uncountableA - (if ((assetIdA == USDN)) | |
530 | + | then amountLeave | |
531 | + | else 0)) | |
532 | + | let amountEnrollB = (uncountableB - (if ((assetIdB == USDN)) | |
533 | + | then amountLeave | |
534 | + | else 0)) | |
535 | + | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
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(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
551 | + | } | |
552 | + | ||
553 | + | ||
554 | + | @Verifier(tx) | |
555 | + | func verify () = match tx { | |
556 | + | case invoke: InvokeScriptTransaction => | |
557 | + | let callTakeIntoAccount = if ((invoke.dApp == this)) | |
558 | + | then (invoke.function == "takeIntoAccountExtraFunds") | |
559 | + | else false | |
560 | + | let callStaking = if ((invoke.dApp == stakingAddress)) | |
561 | + | then if (if (if ((invoke.function == "lockNeutrino")) | |
562 | + | then (size(invoke.payments) == 1) | |
563 | + | else false) | |
564 | + | then (invoke.payments[0].assetId == USDN) | |
565 | + | else false) | |
566 | + | then true | |
567 | + | else if ((invoke.function == "unlockNeutrino")) | |
568 | + | then (size(invoke.payments) == 0) | |
569 | + | else false | |
570 | + | else false | |
571 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adm1)) | |
572 | + | then true | |
573 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adm2)) | |
574 | + | then true | |
575 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adm3)) | |
576 | + | then true | |
577 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
578 | + | if (callTakeIntoAccount) | |
579 | + | then true | |
580 | + | else callStaking | |
581 | + | case _ => | |
582 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
583 | + | } | |
584 | + |
github/deemru/w8io/169f3d6 45.52 ms ◑