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