tx · A39GaZW6jN363AdoaKKBJKb8j8a7gV5dGrA81BzYiNZE 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX: -0.03100000 Waves 2022.10.28 15:50 [2292277] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves
{ "type": 13, "id": "A39GaZW6jN363AdoaKKBJKb8j8a7gV5dGrA81BzYiNZE", "fee": 3100000, "feeAssetId": null, "timestamp": 1666961449067, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "2CVZ1vYLKqeUk9SyTD5FbDjY3zYro6rCHpyJQanwYLgEvGrSVnvKsM5JQUEAM7vDXBUqKNtpsd7dcFhg9QtS8NbL" ], "script": "base64:BgI/CAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIZgAHdmVyc2lvbgIFMi4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUACWtBc3NldElkQQIKQV9hc3NldF9pZAAJa0Fzc2V0SWRCAgpCX2Fzc2V0X2lkAAlrQmFsYW5jZUECD0FfYXNzZXRfYmFsYW5jZQAJa0JhbGFuY2VCAg9CX2Fzc2V0X2JhbGFuY2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9uAAprSW52YXJpYW50AglpbnZhcmlhbnQABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UADGtVU0ROQWRkcmVzcwIYc3Rha2luZ191c2RubnNidF9hZGRyZXNzAAxrRVVSTkFkZHJlc3MCFHN0YWtpbmdfZXVybl9hZGRyZXNzAAprRGlzY291bnRzAglkaXNjb3VudHMAD2tEaXNj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succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CPJBNgiqCoi4X64H6kPiZV8k5jRgYMuRPHtNh9CMpnJ4 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
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 kInvariant = "invariant" | |
25 | + | ||
26 | + | let kCause = "shutdown_cause" | |
27 | + | ||
28 | + | let kUSDNAddress = "staking_usdnnsbt_address" | |
29 | + | ||
30 | + | let kEURNAddress = "staking_eurn_address" | |
31 | + | ||
32 | + | let kDiscounts = "discounts" | |
33 | + | ||
34 | + | let kDiscountValues = "discount_values" | |
35 | + | ||
36 | + | let kUserSwopInGov = "_SWOP_amount" | |
37 | + | ||
38 | + | let kUserGSwopInGov = "_GSwop_amount" | |
39 | + | ||
40 | + | let kFirstHarvest = "first_harvest" | |
41 | + | ||
42 | + | let kFirstHarvestHeight = "first_harvest_height" | |
43 | + | ||
44 | + | let kShareLimit = "share_limit_on_first_harvest" | |
45 | + | ||
46 | + | let kBasePeriod = "base_period" | |
47 | + | ||
48 | + | let kPeriodLength = "period_length" | |
49 | + | ||
50 | + | let kStartHeight = "start_height" | |
51 | + | ||
52 | + | let kAdminPubKey1 = "admin_pub_1" | |
53 | + | ||
54 | + | let kAdminPubKey2 = "admin_pub_2" | |
55 | + | ||
56 | + | let kAdminPubKey3 = "admin_pub_3" | |
57 | + | ||
58 | + | let kAdminInvokePubKey = "admin_invoke_pub" | |
59 | + | ||
60 | + | let kMoneyBoxAddress = "money_box_address" | |
61 | + | ||
62 | + | let kGovAddress = "governance_address" | |
63 | + | ||
64 | + | let kFarmingAddress = "farming_address" | |
65 | + | ||
66 | + | let kVotingAddress = "voting_address" | |
67 | + | ||
68 | + | let kUSDNAssetId = "usdn_asset_id" | |
69 | + | ||
70 | + | let kStakingAssets = "staking_assets" | |
71 | + | ||
72 | + | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
73 | + | ||
74 | + | func getBase58FromOracle (key) = match getString(oracle, key) { | |
75 | + | case string: String => | |
76 | + | fromBase58String(string) | |
77 | + | case nothing => | |
78 | + | throw((key + "is empty")) | |
79 | + | } | |
80 | + | ||
81 | + | ||
82 | + | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
83 | + | ||
84 | + | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
85 | + | ||
86 | + | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
87 | + | ||
88 | + | let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey) | |
89 | + | ||
90 | + | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
91 | + | ||
92 | + | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
93 | + | ||
94 | + | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
95 | + | ||
96 | + | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
97 | + | ||
98 | + | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
99 | + | ||
100 | + | let USDN = getBase58FromOracle(kUSDNAssetId) | |
101 | + | ||
102 | + | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
103 | + | ||
104 | + | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
105 | + | ||
106 | + | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
107 | + | ||
108 | + | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
109 | + | ||
110 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
111 | + | ||
112 | + | let active = getBooleanValue(this, kActive) | |
113 | + | ||
114 | + | let strAssetIdA = getStringValue(this, kAssetIdA) | |
115 | + | ||
116 | + | let strAssetIdB = getStringValue(this, kAssetIdB) | |
117 | + | ||
118 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
119 | + | then unit | |
120 | + | else fromBase58String(strAssetIdA) | |
121 | + | ||
122 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
123 | + | then unit | |
124 | + | else fromBase58String(strAssetIdB) | |
125 | + | ||
126 | + | let assetNameA = match assetIdA { | |
127 | + | case id: ByteVector => | |
128 | + | value(assetInfo(id)).name | |
129 | + | case waves: Unit => | |
130 | + | "WAVES" | |
131 | + | case _ => | |
132 | + | throw("Match error") | |
133 | + | } | |
134 | + | ||
135 | + | let assetNameB = match assetIdB { | |
136 | + | case id: ByteVector => | |
137 | + | value(assetInfo(id)).name | |
138 | + | case waves: Unit => | |
139 | + | "WAVES" | |
140 | + | case _ => | |
141 | + | throw("Match error") | |
142 | + | } | |
143 | + | ||
144 | + | let balanceA = getIntegerValue(this, kBalanceA) | |
145 | + | ||
146 | + | let balanceB = getIntegerValue(this, kBalanceB) | |
147 | + | ||
148 | + | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
149 | + | ||
150 | + | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
151 | + | ||
152 | + | let invariant = getIntegerValue(this, kInvariant) | |
153 | + | ||
154 | + | let fee = getIntegerValue(this, kFee) | |
155 | + | ||
156 | + | let feeGovernance = fraction(fee, 40, 100) | |
157 | + | ||
158 | + | let feeScale6 = 1000000 | |
159 | + | ||
160 | + | let scale3 = 1000 | |
161 | + | ||
162 | + | let scale8 = 100000000 | |
163 | + | ||
164 | + | let scale16 = 10000000000000000 | |
165 | + | ||
166 | + | let digits8 = 8 | |
167 | + | ||
168 | + | let dAppThreshold = 50 | |
169 | + | ||
170 | + | let dAppThresholdScale2 = 100 | |
171 | + | ||
172 | + | let exchangeRatioLimitMin = 90000000 | |
173 | + | ||
174 | + | let exchangeRatioLimitMax = 110000000 | |
175 | + | ||
176 | + | let alpha = 50 | |
177 | + | ||
178 | + | let alphaDigits = 2 | |
179 | + | ||
180 | + | let beta = 4600000000000000 | |
181 | + | ||
182 | + | func accountBalance (assetId) = match assetId { | |
183 | + | case id: ByteVector => | |
184 | + | assetBalance(this, id) | |
185 | + | case waves: Unit => | |
186 | + | wavesBalance(this).available | |
187 | + | case _ => | |
188 | + | throw("Match error") | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | func stakedAmount (assetId) = { | |
193 | + | let stakedAmountCalculated = match assetId { | |
194 | + | case aId: ByteVector => | |
195 | + | if ((aId == USDN)) | |
196 | + | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
197 | + | else 0 | |
198 | + | case _: Unit => | |
199 | + | 0 | |
200 | + | case _ => | |
201 | + | throw("Match error") | |
202 | + | } | |
203 | + | match stakedAmountCalculated { | |
204 | + | case i: Int => | |
205 | + | i | |
206 | + | case _ => | |
207 | + | 0 | |
208 | + | } | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | let stakedAmountA = stakedAmount(assetIdA) | |
213 | + | ||
214 | + | let stakedAmountB = stakedAmount(assetIdB) | |
215 | + | ||
216 | + | let availableBalanceA = (balanceA - stakedAmountA) | |
217 | + | ||
218 | + | let availableBalanceB = (balanceB - stakedAmountB) | |
219 | + | ||
220 | + | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
221 | + | ||
222 | + | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
223 | + | ||
224 | + | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
225 | + | then (accountBalanceWithStakedB >= balanceB) | |
226 | + | else false | |
227 | + | ||
228 | + | func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2) | |
229 | + | ||
230 | + | ||
231 | + | func invariantCalc (x,y) = { | |
232 | + | let sk = skewness(x, y) | |
233 | + | (fraction((x + y), scale16, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(x), toBigInt(y), toBigInt(scale8)), 0, toBigInt(5), 1, (digits8 / 2), DOWN)), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8))) | |
234 | + | } | |
235 | + | ||
236 | + | ||
237 | + | func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId,balcA,balcB,invCur) = { | |
238 | + | let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000)) | |
239 | + | let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
240 | + | let x = (balcA + tokenReceiveAmount) | |
241 | + | let y = (balcB + tokenReceiveAmount) | |
242 | + | func getStepAmount (acc,step) = if ((acc._1 == -1)) | |
243 | + | then { | |
244 | + | let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3)) | |
245 | + | let stepInvariant = if ((tokenId == assetIdA)) | |
246 | + | then invariantCalc(x, (balcB - amountToSend)) | |
247 | + | else invariantCalc((balcA - amountToSend), y) | |
248 | + | if ((stepInvariant > invCur)) | |
249 | + | then $Tuple2(amountToSend, stepInvariant) | |
250 | + | else $Tuple2(-1, 0) | |
251 | + | } | |
252 | + | else acc | |
253 | + | ||
254 | + | let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000) | |
255 | + | if ((0 > amountToSendMin._1)) | |
256 | + | then throw("Price is worse than minReceived") | |
257 | + | else { | |
258 | + | let invEstimated = if ((tokenId == assetIdA)) | |
259 | + | then invariantCalc(x, (balcB - amountToSendEstimated)) | |
260 | + | else if ((tokenId == assetIdB)) | |
261 | + | then invariantCalc((balcA - amountToSendEstimated), y) | |
262 | + | else throw("Wrong asset in payment") | |
263 | + | if ((invCur > invEstimated)) | |
264 | + | then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, invEstimated))) | |
265 | + | then throw("The requested price is too not profitable for user") | |
266 | + | else { | |
267 | + | let a = { | |
268 | + | let $l = [25, 200, 500] | |
269 | + | let $s = size($l) | |
270 | + | let $acc0 = $Tuple2(-1, 0) | |
271 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
272 | + | then $a | |
273 | + | else getStepAmount($a, $l[$i]) | |
274 | + | ||
275 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
276 | + | then $a | |
277 | + | else throw("List size exceeds 3") | |
278 | + | ||
279 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
280 | + | } | |
281 | + | if ((0 > a._1)) | |
282 | + | then amountToSendMin._1 | |
283 | + | else a._1 | |
284 | + | } | |
285 | + | else { | |
286 | + | let a = { | |
287 | + | let $l = [-500, -200, -25] | |
288 | + | let $s = size($l) | |
289 | + | let $acc0 = $Tuple2(-1, 0) | |
290 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
291 | + | then $a | |
292 | + | else getStepAmount($a, $l[$i]) | |
293 | + | ||
294 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
295 | + | then $a | |
296 | + | else throw("List size exceeds 3") | |
297 | + | ||
298 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
299 | + | } | |
300 | + | let tupleSendBetter = if ((0 > a._1)) | |
301 | + | then $Tuple2(amountToSendEstimated, invEstimated) | |
302 | + | else a | |
303 | + | if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, tupleSendBetter._2))) | |
304 | + | then throw("The requested price is too not profitable for user") | |
305 | + | else tupleSendBetter._1 | |
306 | + | } | |
307 | + | } | |
308 | + | } | |
309 | + | ||
310 | + | ||
311 | + | func getAssetInfo (assetId) = match assetId { | |
312 | + | case id: ByteVector => | |
313 | + | let stringId = toBase58String(id) | |
314 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
315 | + | $Tuple3(stringId, info.name, info.decimals) | |
316 | + | case waves: Unit => | |
317 | + | $Tuple3("WAVES", "WAVES", 8) | |
318 | + | case _ => | |
319 | + | throw("Match error") | |
320 | + | } | |
321 | + | ||
322 | + | ||
323 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
324 | + | ||
325 | + | ||
326 | + | func throwIsActive () = throw("DApp is already active") | |
327 | + | ||
328 | + | ||
329 | + | func isActive () = if (active) | |
330 | + | then unit | |
331 | + | else throw("DApp is inactive at this moment") | |
332 | + | ||
333 | + | ||
334 | + | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
335 | + | then unit | |
336 | + | else throw("Only admin can call this function") | |
337 | + | ||
338 | + | ||
339 | + | func isSelfCall (i) = if ((this == i.caller)) | |
340 | + | then unit | |
341 | + | else throw("Only contract itself can call this function") | |
342 | + | ||
343 | + | ||
344 | + | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
345 | + | ||
346 | + | ||
347 | + | func throwOnePayment () = throw("One attached payment expected") | |
348 | + | ||
349 | + | ||
350 | + | 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)) | |
351 | + | ||
352 | + | ||
353 | + | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
354 | + | ||
355 | + | ||
356 | + | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
357 | + | then $Tuple2("lockNeutrino", stakingUSDNAddress) | |
358 | + | else $Tuple2("unlockNeutrino", stakingUSDNAddress) | |
359 | + | ||
360 | + | ||
361 | + | func calcStakingParams (stake,amount,assetId) = if (stake) | |
362 | + | then { | |
363 | + | let $t01038310449 = calcStakingFuncAndAddres(stake, assetId) | |
364 | + | let call = $t01038310449._1 | |
365 | + | let stakingAddr = $t01038310449._2 | |
366 | + | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
367 | + | } | |
368 | + | else { | |
369 | + | let $t01053510601 = calcStakingFuncAndAddres(stake, assetId) | |
370 | + | let call = $t01053510601._1 | |
371 | + | let stakingAddr = $t01053510601._2 | |
372 | + | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
373 | + | } | |
374 | + | ||
375 | + | ||
376 | + | func calculateFeeDiscount (userAddr) = { | |
377 | + | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
378 | + | let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), 0) | |
379 | + | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
380 | + | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
381 | + | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
382 | + | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
383 | + | else false) | |
384 | + | then (feeScale6 - parseIntValue(discounts[0])) | |
385 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
386 | + | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
387 | + | else false) | |
388 | + | then (feeScale6 - parseIntValue(discounts[1])) | |
389 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
390 | + | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
391 | + | else false) | |
392 | + | then (feeScale6 - parseIntValue(discounts[2])) | |
393 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
394 | + | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
395 | + | else false) | |
396 | + | then (feeScale6 - parseIntValue(discounts[3])) | |
397 | + | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
398 | + | then (feeScale6 - parseIntValue(discounts[4])) | |
399 | + | else feeScale6 | |
400 | + | } | |
401 | + | ||
402 | + | ||
403 | + | @Callable(i) | |
404 | + | func init (firstHarvest) = { | |
405 | + | let $t01190111978 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
406 | + | let pmtAmountA = $t01190111978._1 | |
407 | + | let pmtAssetIdA = $t01190111978._2 | |
408 | + | let $t01198312060 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
409 | + | let pmtAmountB = $t01198312060._1 | |
410 | + | let pmtAssetIdB = $t01198312060._2 | |
411 | + | let $t01206512142 = getAssetInfo(pmtAssetIdA) | |
412 | + | let pmtStrAssetIdA = $t01206512142._1 | |
413 | + | let pmtAssetNameA = $t01206512142._2 | |
414 | + | let pmtDecimalsA = $t01206512142._3 | |
415 | + | let $t01214712224 = getAssetInfo(pmtAssetIdB) | |
416 | + | let pmtStrAssetIdB = $t01214712224._1 | |
417 | + | let pmtAssetNameB = $t01214712224._2 | |
418 | + | let pmtDecimalsB = $t01214712224._3 | |
419 | + | if (isDefined(getBoolean(this, kActive))) | |
420 | + | then throwIsActive() | |
421 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
422 | + | then throw("Assets must be different") | |
423 | + | else { | |
424 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
425 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
426 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
427 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
428 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
429 | + | let shareIssueId = calculateAssetId(shareIssue) | |
430 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
431 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
432 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
433 | + | else 0 | |
434 | + | if ((stake1 == stake1)) | |
435 | + | then { | |
436 | + | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
437 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
438 | + | else 0 | |
439 | + | if ((stake2 == stake2)) | |
440 | + | then { | |
441 | + | 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, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
442 | + | if (firstHarvest) | |
443 | + | then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
444 | + | else baseEntry | |
445 | + | } | |
446 | + | else throw("Strict value is not equal to itself.") | |
447 | + | } | |
448 | + | else throw("Strict value is not equal to itself.") | |
449 | + | } | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | @Callable(i) | |
455 | + | func replenishWithTwoTokens (stakeFarming,lockType) = valueOrElse(isActive(), { | |
456 | + | let pmtAssetIdA = i.payments[0].assetId | |
457 | + | let pmtAssetIdB = i.payments[1].assetId | |
458 | + | let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA) | |
459 | + | let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB) | |
460 | + | let $t01519415271 = getAssetInfo(pmtAssetIdA) | |
461 | + | let pmtStrAssetIdA = $t01519415271._1 | |
462 | + | let pmtAssetNameA = $t01519415271._2 | |
463 | + | let pmtDecimalsA = $t01519415271._3 | |
464 | + | let $t01527615393 = getAssetInfo(pmtAssetIdB) | |
465 | + | let pmtStrAssetIdB = $t01527615393._1 | |
466 | + | let pmtAssetNameB = $t01527615393._2 | |
467 | + | let pmtDecimalsB = $t01527615393._3 | |
468 | + | let $t01539815902 = if ((ratioShareTokensInB > ratioShareTokensInA)) | |
469 | + | then { | |
470 | + | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
471 | + | $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA) | |
472 | + | } | |
473 | + | else { | |
474 | + | let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING) | |
475 | + | $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB) | |
476 | + | } | |
477 | + | let pmtAmountA = $t01539815902._1 | |
478 | + | let pmtAmountB = $t01539815902._2 | |
479 | + | let change = $t01539815902._3 | |
480 | + | let changeAssetId = $t01539815902._4 | |
481 | + | let shareTokenRatio = $t01539815902._5 | |
482 | + | let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8) | |
483 | + | if (if ((size(i.payments) != 2)) | |
484 | + | then (size(i.payments) != 3) | |
485 | + | else false) | |
486 | + | then throw("Two or three payments expected") | |
487 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
488 | + | then true | |
489 | + | else (pmtAssetIdB != assetIdB)) | |
490 | + | then throwAssets() | |
491 | + | else if ((shareTokenToPayAmount == 0)) | |
492 | + | then throw("Too small amount to replenish") | |
493 | + | else if ((0 > change)) | |
494 | + | then throw("Change < 0") | |
495 | + | else if (!(hasEnoughBalance)) | |
496 | + | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
497 | + | else { | |
498 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
499 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
500 | + | else 0 | |
501 | + | if ((stake1 == stake1)) | |
502 | + | then { | |
503 | + | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
504 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
505 | + | else 0 | |
506 | + | if ((stake2 == stake2)) | |
507 | + | then { | |
508 | + | let scriptActions = [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), ScriptTransfer(i.caller, change, changeAssetId)] | |
509 | + | if (stakeFarming) | |
510 | + | then { | |
511 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(i.payments) == 3)) | |
512 | + | then [AttachedPayment(i.payments[2].assetId, i.payments[2].amount)] | |
513 | + | else nil)) | |
514 | + | let re = invoke(this, "reissueShare", [shareTokenToPayAmount], nil) | |
515 | + | if ((re == re)) | |
516 | + | then { | |
517 | + | let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], stPayments) | |
518 | + | if ((s == s)) | |
519 | + | then scriptActions | |
520 | + | else throw("Strict value is not equal to itself.") | |
521 | + | } | |
522 | + | else throw("Strict value is not equal to itself.") | |
523 | + | } | |
524 | + | else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]) | |
525 | + | } | |
526 | + | else throw("Strict value is not equal to itself.") | |
527 | + | } | |
528 | + | else throw("Strict value is not equal to itself.") | |
529 | + | } | |
530 | + | }) | |
531 | + | ||
532 | + | ||
533 | + | ||
534 | + | @Callable(i) | |
535 | + | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), { | |
536 | + | let $t01828118356 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
537 | + | let pmtAmount = $t01828118356._1 | |
538 | + | let pmtAssetId = $t01828118356._2 | |
539 | + | let $t01836118434 = getAssetInfo(pmtAssetId) | |
540 | + | let pmtStrAssetId = $t01836118434._1 | |
541 | + | let pmtAssetName = $t01836118434._2 | |
542 | + | let pmtDecimals = $t01836118434._3 | |
543 | + | let pmtMinThreshold = 5000000 | |
544 | + | let thresholdValueForMinTolerance = 50000000 | |
545 | + | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
546 | + | then 100000 | |
547 | + | else 1 | |
548 | + | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
549 | + | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
550 | + | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
551 | + | if ((pmtMinThreshold > pmtAmount)) | |
552 | + | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
553 | + | else if (if ((size(i.payments) != 1)) | |
554 | + | then (size(i.payments) != 2) | |
555 | + | else false) | |
556 | + | then throw("One or two payments expected") | |
557 | + | else if (!(hasEnoughBalance)) | |
558 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
559 | + | else if (if ((pmtAssetId != assetIdA)) | |
560 | + | then (pmtAssetId != assetIdB) | |
561 | + | else false) | |
562 | + | then throwAssets() | |
563 | + | else { | |
564 | + | let $t01944120083 = if ((pmtAssetId == assetIdA)) | |
565 | + | then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB) | |
566 | + | else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount)) | |
567 | + | let virtualReplenishA = $t01944120083._1 | |
568 | + | let virtualReplenishB = $t01944120083._2 | |
569 | + | let balanceAfterSwapA = $t01944120083._3 | |
570 | + | let balanceAfterSwapB = $t01944120083._4 | |
571 | + | let newBalanceA = $t01944120083._5 | |
572 | + | let newBalanceB = $t01944120083._6 | |
573 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
574 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
575 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
576 | + | if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew))) | |
577 | + | then true | |
578 | + | else (invariant > invariantNew)) | |
579 | + | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
580 | + | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
581 | + | then true | |
582 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
583 | + | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
584 | + | else if (if ((dAppThresholdAmount > newBalanceA)) | |
585 | + | then true | |
586 | + | else (dAppThresholdAmount > newBalanceB)) | |
587 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
588 | + | else { | |
589 | + | let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA) | |
590 | + | let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB) | |
591 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
592 | + | let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6) | |
593 | + | let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6) | |
594 | + | let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply) | |
595 | + | let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply) | |
596 | + | let $t02207322368 = if ((pmtStrAssetId == strAssetIdA)) | |
597 | + | then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB) | |
598 | + | else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA) | |
599 | + | let stakeAmount = $t02207322368._1 | |
600 | + | let unstakeAmount = $t02207322368._2 | |
601 | + | let unstakeAsset = $t02207322368._3 | |
602 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetId)) | |
603 | + | then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil) | |
604 | + | else 0 | |
605 | + | if ((stake1 == stake1)) | |
606 | + | then { | |
607 | + | let stake2 = if (contains(stakingAssets, unstakeAsset)) | |
608 | + | then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil) | |
609 | + | else 0 | |
610 | + | if ((stake2 == stake2)) | |
611 | + | then { | |
612 | + | let scriptActions = [IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB))), ScriptTransfer(moneyBoxAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(moneyBoxAddress, governanceRewardTokenB, assetIdB)] | |
613 | + | if (stakeFarming) | |
614 | + | then { | |
615 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmountAfterFee)] ++ (if ((size(i.payments) == 2)) | |
616 | + | then [AttachedPayment(i.payments[1].assetId, i.payments[1].amount)] | |
617 | + | else nil)) | |
618 | + | let re = invoke(this, "reissueShare", [shareTokenToPayAmountAfterFee], nil) | |
619 | + | if ((re == re)) | |
620 | + | then { | |
621 | + | let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], stPayments) | |
622 | + | if ((s == s)) | |
623 | + | then scriptActions | |
624 | + | else throw("Strict value is not equal to itself.") | |
625 | + | } | |
626 | + | else throw("Strict value is not equal to itself.") | |
627 | + | } | |
628 | + | else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId)]) | |
629 | + | } | |
630 | + | else throw("Strict value is not equal to itself.") | |
631 | + | } | |
632 | + | else throw("Strict value is not equal to itself.") | |
633 | + | } | |
634 | + | } | |
635 | + | }) | |
636 | + | ||
637 | + | ||
638 | + | ||
639 | + | @Callable(i) | |
640 | + | func withdraw (unlockAmount) = valueOrElse(isActive(), { | |
641 | + | let $t02429724632 = if ((size(i.payments) == 1)) | |
642 | + | then if ((i.payments[0].assetId != shareAssetId)) | |
643 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
644 | + | else $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
645 | + | else $Tuple2(0, shareAssetId) | |
646 | + | let pmtAmount = $t02429724632._1 | |
647 | + | let pmtAssetId = $t02429724632._2 | |
648 | + | if (!(hasEnoughBalance)) | |
649 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
650 | + | else { | |
651 | + | let unlock = if ((unlockAmount > 0)) | |
652 | + | then invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
653 | + | else 0 | |
654 | + | if ((unlock == unlock)) | |
655 | + | then { | |
656 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
657 | + | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
658 | + | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
659 | + | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
660 | + | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
661 | + | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
662 | + | else 0 | |
663 | + | if ((stake1 == stake1)) | |
664 | + | then { | |
665 | + | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
666 | + | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
667 | + | else 0 | |
668 | + | if ((stake2 == stake2)) | |
669 | + | then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
670 | + | else throw("Strict value is not equal to itself.") | |
671 | + | } | |
672 | + | else throw("Strict value is not equal to itself.") | |
673 | + | } | |
674 | + | else throw("Strict value is not equal to itself.") | |
675 | + | } | |
676 | + | }) | |
677 | + | ||
678 | + | ||
679 | + | ||
680 | + | @Callable(i) | |
681 | + | func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = { | |
682 | + | let $t02624826583 = if ((size(i.payments) == 1)) | |
683 | + | then if ((i.payments[0].assetId != shareAssetId)) | |
684 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
685 | + | else $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
686 | + | else $Tuple2(0, shareAssetId) | |
687 | + | let pmtAmount = $t02624826583._1 | |
688 | + | let pmtAssetId = $t02624826583._2 | |
689 | + | if (if ((withdrawAsset != strAssetIdA)) | |
690 | + | then (withdrawAsset != strAssetIdB) | |
691 | + | else false) | |
692 | + | then throw("Incorrect withdraw asset") | |
693 | + | else if (!(hasEnoughBalance)) | |
694 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
695 | + | else { | |
696 | + | let unlock = if ((unlockAmount > 0)) | |
697 | + | then invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
698 | + | else 0 | |
699 | + | if ((unlock == unlock)) | |
700 | + | then { | |
701 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
702 | + | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
703 | + | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
704 | + | let newVirtBalcA = (balanceA - amountToPayA) | |
705 | + | let newVirtBalcB = (balanceB - amountToPayB) | |
706 | + | let feeDiscount = calculateFeeDiscount(i.originCaller) | |
707 | + | let amountExchangedWithFee = if ((withdrawAsset == strAssetIdA)) | |
708 | + | then calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayB, assetIdB, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB)) | |
709 | + | else calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayA, assetIdA, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB)) | |
710 | + | let govReward = fraction(amountExchangedWithFee, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6) | |
711 | + | let amountExchanged = fraction(amountExchangedWithFee, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6) | |
712 | + | let $t02809428423 = if ((withdrawAsset == strAssetIdA)) | |
713 | + | then $Tuple3((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB) | |
714 | + | else $Tuple3((amountToPayB + amountExchanged), balanceA, (((balanceB - amountToPayB) - amountExchanged) - govReward)) | |
715 | + | let amountToPay = $t02809428423._1 | |
716 | + | let balanceANew = $t02809428423._2 | |
717 | + | let balanceBNew = $t02809428423._3 | |
718 | + | let invariantCalculated = invariantCalc(balanceANew, balanceBNew) | |
719 | + | let stake1 = if (contains(stakingAssets, withdrawAsset)) | |
720 | + | then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil) | |
721 | + | else 0 | |
722 | + | if ((stake1 == stake1)) | |
723 | + | then [IntegerEntry(kBalanceA, balanceANew), IntegerEntry(kBalanceB, balanceBNew), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPay, fromBase58String(withdrawAsset)), ScriptTransfer(moneyBoxAddress, govReward, fromBase58String(withdrawAsset))] | |
724 | + | else throw("Strict value is not equal to itself.") | |
725 | + | } | |
726 | + | else throw("Strict value is not equal to itself.") | |
727 | + | } | |
728 | + | } | |
729 | + | ||
730 | + | ||
731 | + | ||
732 | + | @Callable(i) | |
733 | + | func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), { | |
734 | + | let $t02929529370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
735 | + | let pmtAmount = $t02929529370._1 | |
736 | + | let pmtAssetId = $t02929529370._2 | |
737 | + | if ((0 >= estimatedAmountToReceive)) | |
738 | + | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
739 | + | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
740 | + | then throw("Minimal amount can't be greater than estimated.") | |
741 | + | else if ((size(i.payments) != 1)) | |
742 | + | then throwOnePayment() | |
743 | + | else if (!(hasEnoughBalance)) | |
744 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
745 | + | else if (if ((pmtAssetId != assetIdA)) | |
746 | + | then (pmtAssetId != assetIdB) | |
747 | + | else false) | |
748 | + | then throwAssets() | |
749 | + | else if ((10000000 > pmtAmount)) | |
750 | + | then throw("Only swap of 10.000000 or more tokens is allowed") | |
751 | + | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
752 | + | then true | |
753 | + | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
754 | + | then throw("Incorrect args and pmt ratio") | |
755 | + | else { | |
756 | + | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
757 | + | then assetIdB | |
758 | + | else assetIdA | |
759 | + | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId, balanceA, balanceB, invariant) | |
760 | + | let feeDiscount = calculateFeeDiscount(i.originCaller) | |
761 | + | let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6) | |
762 | + | let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6) | |
763 | + | let $t03085431116 = if ((pmtAssetId == assetIdA)) | |
764 | + | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
765 | + | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
766 | + | let newBalanceA = $t03085431116._1 | |
767 | + | let newBalanceB = $t03085431116._2 | |
768 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
769 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
770 | + | then true | |
771 | + | else (dAppThresholdAmount > newBalanceB)) | |
772 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
773 | + | else { | |
774 | + | let $t03141531488 = getAssetInfo(pmtAssetId) | |
775 | + | let pmtStrAssetId = $t03141531488._1 | |
776 | + | let pmtAssetName = $t03141531488._2 | |
777 | + | let pmtDecimals = $t03141531488._3 | |
778 | + | let $t03150131578 = getAssetInfo(sendAssetId) | |
779 | + | let sendStrAssetId = $t03150131578._1 | |
780 | + | let sendAssetName = $t03150131578._2 | |
781 | + | let sendDecimals = $t03150131578._3 | |
782 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetId)) | |
783 | + | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
784 | + | else 0 | |
785 | + | if ((stake1 == stake1)) | |
786 | + | then { | |
787 | + | let stake2 = if (contains(stakingAssets, sendStrAssetId)) | |
788 | + | then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil) | |
789 | + | else 0 | |
790 | + | if ((stake2 == stake2)) | |
791 | + | then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], [amountMinusFee, sendAssetId]) | |
792 | + | else throw("Strict value is not equal to itself.") | |
793 | + | } | |
794 | + | else throw("Strict value is not equal to itself.") | |
795 | + | } | |
796 | + | } | |
797 | + | }) | |
798 | + | ||
799 | + | ||
800 | + | ||
801 | + | @Callable(msg) | |
802 | + | func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)]) | |
803 | + | ||
804 | + | ||
805 | + | ||
806 | + | @Callable(i) | |
807 | + | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
808 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
809 | + | else suspend("Paused by admin")) | |
810 | + | ||
811 | + | ||
812 | + | ||
813 | + | @Callable(i) | |
814 | + | func activate () = valueOrElse(isAdminCall(i), if (active) | |
815 | + | then throwIsActive() | |
816 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
817 | + | ||
818 | + | ||
819 | + | ||
820 | + | @Callable(i) | |
821 | + | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), { | |
822 | + | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
823 | + | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
824 | + | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
825 | + | if ((i.caller != moneyBoxAddress)) | |
826 | + | then throw("Only the money box can call this function") | |
827 | + | else if (if ((0 > amountEnrollA)) | |
828 | + | then true | |
829 | + | else (0 > amountEnrollB)) | |
830 | + | then suspend("Enroll amount negative") | |
831 | + | else if (if ((amountEnrollA == 0)) | |
832 | + | then (amountEnrollB == 0) | |
833 | + | else false) | |
834 | + | then throw("No money to take") | |
835 | + | else { | |
836 | + | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
837 | + | then (amountEnrollA > 0) | |
838 | + | else false) | |
839 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
840 | + | else 0 | |
841 | + | if ((stake1 == stake1)) | |
842 | + | then { | |
843 | + | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
844 | + | then (amountEnrollB > 0) | |
845 | + | else false) | |
846 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
847 | + | else 0 | |
848 | + | if ((stake2 == stake2)) | |
849 | + | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))] | |
850 | + | else throw("Strict value is not equal to itself.") | |
851 | + | } | |
852 | + | else throw("Strict value is not equal to itself.") | |
853 | + | } | |
854 | + | }) | |
855 | + | ||
856 | + | ||
857 | + | ||
858 | + | @Callable(i) | |
859 | + | func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [IntegerEntry(kShareLimit, shareLimit)])) | |
860 | + | ||
861 | + | ||
862 | + | ||
863 | + | @Callable(i) | |
864 | + | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
865 | + | then throw("Only contract itself can invoke this function") | |
866 | + | else { | |
867 | + | let $t03488034983 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
868 | + | let call = $t03488034983._1 | |
869 | + | let addr = $t03488034983._2 | |
870 | + | let params = $t03488034983._3 | |
871 | + | let payments = $t03488034983._4 | |
872 | + | let inv = invoke(addr, call, params, payments) | |
873 | + | if ((inv == inv)) | |
874 | + | then nil | |
875 | + | else throw("Strict value is not equal to itself.") | |
876 | + | } | |
877 | + | ||
878 | + | ||
879 | + | @Verifier(tx) | |
880 | + | func verify () = { | |
881 | + | let multiSignedByAdmins = { | |
882 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
883 | + | then 1 | |
884 | + | else 0 | |
885 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
886 | + | then 1 | |
887 | + | else 0 | |
888 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
889 | + | then 1 | |
890 | + | else 0 | |
891 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
892 | + | } | |
893 | + | match tx { | |
894 | + | case inv: InvokeScriptTransaction => | |
895 | + | let callTakeIntoAccount = if ((inv.dApp == this)) | |
896 | + | then (inv.function == "takeIntoAccountExtraFunds") | |
897 | + | else false | |
898 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
899 | + | then true | |
900 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
901 | + | then true | |
902 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
903 | + | then true | |
904 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke) | |
905 | + | if (if (callTakeIntoAccount) | |
906 | + | then signedByAdmin | |
907 | + | else false) | |
908 | + | then true | |
909 | + | else multiSignedByAdmins | |
910 | + | case _ => | |
911 | + | multiSignedByAdmins | |
912 | + | } | |
913 | + | } | |
914 | + |
github/deemru/w8io/026f985 46.05 ms ◑