tx · FoSco38YsY8cB83qsD7Vk1Qmdq6ZPZDcUK51nJXkDh3w 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37: -0.01400000 Waves 2021.09.20 18:23 [1711553] smart account 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37 > SELF 0.00000000 Waves
{ "type": 13, "id": "FoSco38YsY8cB83qsD7Vk1Qmdq6ZPZDcUK51nJXkDh3w", "fee": 1400000, "feeAssetId": null, "timestamp": 1632151436420, "version": 2, "chainId": 84, "sender": "3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37", "senderPublicKey": "4bwUHdA4vTBJ1k43dYKiPYTDqm3QqiZXNGXoQstGAD1k", "proofs": [ "3SAYn5EGhyC9iTwh8WGfXU9EgHNM1qNbbqLWdrUyqnt6y9wsU9woDbnc77PN69iXyzCD98L3iSNUmx7r7KH83F2W", "2TDGWNpi8UfBSqk2k7GaFgWwt2KgG4LG2PdaozqUJfsu3SpHSMLdNw3n1TXRRLU6T6KFnv6LzUyLbiaszRuHYUe3" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2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AAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEmFkbWluUHViS2V5U3Rha2luZwMDAwMDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAFmNhbGxFbmFibGVGaXJzdEhhcnZlc3QGBQAAAAtjYWxsU3Rha2luZwYFAAAAD2V4Y2hhbmdlVG9XYXZlcwYFAAAAD2V4Y2hhbmdlVG9OU0JUcwUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zJUlBNA==", "height": 1711553, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AJaFgiazFXzqBC6rLaRvMMuRP19zPPa7XBbT5NNsANQK Next: XUffMTW8u96tuEEdo6pzM95BGXPT9Q8TQw442wiijpa Diff:
Old | New | Differences | |
---|---|---|---|
343 | 343 | } | |
344 | 344 | let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999) | |
345 | 345 | let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999) | |
346 | - | let $ | |
346 | + | let $t01006910296 = if ((asset2Priority > asset1Priority)) | |
347 | 347 | then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1) | |
348 | 348 | else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2) | |
349 | - | let pmtAmountA = $ | |
350 | - | let pmtAssetIdA = $ | |
351 | - | let pmtAmountB = $ | |
352 | - | let pmtAssetIdB = $ | |
353 | - | let $ | |
354 | - | let pmtStrAssetIdA = $ | |
355 | - | let pmtAssetNameA = $ | |
356 | - | let pmtDecimalsA = $ | |
357 | - | let $ | |
358 | - | let pmtStrAssetIdB = $ | |
359 | - | let pmtAssetNameB = $ | |
360 | - | let pmtDecimalsB = $ | |
349 | + | let pmtAmountA = $t01006910296._1 | |
350 | + | let pmtAssetIdA = $t01006910296._2 | |
351 | + | let pmtAmountB = $t01006910296._3 | |
352 | + | let pmtAssetIdB = $t01006910296._4 | |
353 | + | let $t01030510382 = getAssetInfo(pmtAssetIdA) | |
354 | + | let pmtStrAssetIdA = $t01030510382._1 | |
355 | + | let pmtAssetNameA = $t01030510382._2 | |
356 | + | let pmtDecimalsA = $t01030510382._3 | |
357 | + | let $t01039110468 = getAssetInfo(pmtAssetIdB) | |
358 | + | let pmtStrAssetIdB = $t01039110468._1 | |
359 | + | let pmtAssetNameB = $t01039110468._2 | |
360 | + | let pmtDecimalsB = $t01039110468._3 | |
361 | 361 | let addParams = [toString(this), ((pmtAssetNameA + "_") + pmtAssetNameB), pmtStrAssetIdA, pmtStrAssetIdB] | |
362 | 362 | let addPool = invoke(oracle, "addPool", addParams, nil) | |
363 | 363 | if ((addPool == addPool)) | |
401 | 401 | then (balanceB == 0) | |
402 | 402 | else false) | |
403 | 403 | then { | |
404 | - | let $ | |
405 | - | let pmtStrAssetIdA = $ | |
406 | - | let pmtAssetNameA = $ | |
407 | - | let pmtDecimalsA = $ | |
408 | - | let $ | |
409 | - | let pmtStrAssetIdB = $ | |
410 | - | let pmtAssetNameB = $ | |
411 | - | let pmtDecimalsB = $ | |
404 | + | let $t01338813465 = getAssetInfo(pmtAssetIdA) | |
405 | + | let pmtStrAssetIdA = $t01338813465._1 | |
406 | + | let pmtAssetNameA = $t01338813465._2 | |
407 | + | let pmtDecimalsA = $t01338813465._3 | |
408 | + | let $t01347413551 = getAssetInfo(pmtAssetIdB) | |
409 | + | let pmtStrAssetIdB = $t01347413551._1 | |
410 | + | let pmtAssetNameB = $t01347413551._2 | |
411 | + | let pmtDecimalsB = $t01347413551._3 | |
412 | 412 | let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
413 | 413 | if ((pmtAssetIdA == pmtAssetIdB)) | |
414 | 414 | then throw("Assets must be different") | |
471 | 471 | ||
472 | 472 | @Callable(i) | |
473 | 473 | func withdraw () = { | |
474 | - | let $ | |
475 | - | let pmtAmount = $ | |
476 | - | let pmtAssetId = $ | |
474 | + | let $t01795018100 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
475 | + | let pmtAmount = $t01795018100._1 | |
476 | + | let pmtAssetId = $t01795018100._2 | |
477 | 477 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB) | |
478 | 478 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA) | |
479 | 479 | if (!(isActive)) | |
495 | 495 | ||
496 | 496 | @Callable(i) | |
497 | 497 | func exchange (minAmountToReceive) = { | |
498 | - | let $ | |
499 | - | let pmtAmount = $ | |
500 | - | let pmtAssetId = $ | |
498 | + | let $t01932619401 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
499 | + | let pmtAmount = $t01932619401._1 | |
500 | + | let pmtAssetId = $t01932619401._2 | |
501 | 501 | func calculateFees (tokenFrom,tokenTo) = { | |
502 | 502 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
503 | 503 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
522 | 522 | else if ((pmtAssetId == assetIdA)) | |
523 | 523 | then { | |
524 | 524 | let assetIdSend = assetIdB | |
525 | - | let $ | |
526 | - | let amountWithoutFee = $ | |
527 | - | let amountWithFee = $ | |
528 | - | let governanceReward = $ | |
525 | + | let $t02067520766 = calculateFees(balanceA, balanceB) | |
526 | + | let amountWithoutFee = $t02067520766._1 | |
527 | + | let amountWithFee = $t02067520766._2 | |
528 | + | let governanceReward = $t02067520766._3 | |
529 | 529 | let newBalanceA = (balanceA + pmtAmount) | |
530 | 530 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
531 | 531 | if (if ((stakedAmountA >= newBalanceA)) | |
537 | 537 | else if ((pmtAssetId == assetIdB)) | |
538 | 538 | then { | |
539 | 539 | let assetIdSend = assetIdA | |
540 | - | let $ | |
541 | - | let amountWithoutFee = $ | |
542 | - | let amountWithFee = $ | |
543 | - | let governanceReward = $ | |
540 | + | let $t02158521676 = calculateFees(balanceB, balanceA) | |
541 | + | let amountWithoutFee = $t02158521676._1 | |
542 | + | let amountWithFee = $t02158521676._2 | |
543 | + | let governanceReward = $t02158521676._3 | |
544 | 544 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
545 | 545 | let newBalanceB = (balanceB + pmtAmount) | |
546 | 546 | if (if ((stakedAmountA >= newBalanceA)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let keyVersion = "version" | |
7 | 7 | ||
8 | 8 | let keyActive = "active" | |
9 | 9 | ||
10 | 10 | let keyAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let keyAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let keyBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let keyBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let keyBalanceInitA = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let keyBalanceInitB = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let keyShareAssetId = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let keyShareAssetSupply = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let keyCommission = "commission" | |
27 | 27 | ||
28 | 28 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let keyCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let keyFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let keyFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let keyShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let keyBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let keyPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let keyStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let keyOracleAssetPriority = "asset_priority_" | |
45 | 45 | ||
46 | 46 | let keyOracleScriptHash = "script_hash_cpmm" | |
47 | 47 | ||
48 | 48 | let keyInitPoolHeight = "init_pool_height" | |
49 | 49 | ||
50 | 50 | let keyAdminPubKey1 = "admin_pub_1" | |
51 | 51 | ||
52 | 52 | let keyAdminPubKey2 = "admin_pub_2" | |
53 | 53 | ||
54 | 54 | let keyAdminPubKey3 = "admin_pub_3" | |
55 | 55 | ||
56 | 56 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
57 | 57 | ||
58 | 58 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
59 | 59 | case string: String => | |
60 | 60 | fromBase58String(string) | |
61 | 61 | case nothing => | |
62 | 62 | throw("Admin public key is empty") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
67 | 67 | ||
68 | 68 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
69 | 69 | ||
70 | 70 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
71 | 71 | ||
72 | 72 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
73 | 73 | ||
74 | 74 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
75 | 75 | ||
76 | 76 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
77 | 77 | ||
78 | 78 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
79 | 79 | ||
80 | 80 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
81 | 81 | ||
82 | 82 | let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
83 | 83 | ||
84 | 84 | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
85 | 85 | ||
86 | 86 | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
87 | 87 | ||
88 | 88 | let stakingUSDNNSBTAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
89 | 89 | ||
90 | 90 | let stakingEURNAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE') | |
91 | 91 | ||
92 | 92 | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
93 | 93 | ||
94 | 94 | let USDNToNSBTExchanger = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA') | |
95 | 95 | ||
96 | 96 | let stakingFeeInUSDN = 270000 | |
97 | 97 | ||
98 | 98 | let stakingFeeInEURN = 234000 | |
99 | 99 | ||
100 | 100 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, keyBasePeriod), "Empty keyBasePeriod") | |
101 | 101 | ||
102 | 102 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, keyStartHeight), "Empty keyStartHeight") | |
103 | 103 | ||
104 | 104 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, keyPeriodLength), "Empty keyPeriodLength") | |
105 | 105 | ||
106 | 106 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1) | |
107 | 107 | ||
108 | 108 | let isActive = getBooleanValue(this, keyActive) | |
109 | 109 | ||
110 | 110 | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
111 | 111 | ||
112 | 112 | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
113 | 113 | ||
114 | 114 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
115 | 115 | then unit | |
116 | 116 | else fromBase58String(strAssetIdA) | |
117 | 117 | ||
118 | 118 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
119 | 119 | then unit | |
120 | 120 | else fromBase58String(strAssetIdB) | |
121 | 121 | ||
122 | 122 | let assetNameA = match assetIdA { | |
123 | 123 | case id: ByteVector => | |
124 | 124 | value(assetInfo(id)).name | |
125 | 125 | case waves: Unit => | |
126 | 126 | "WAVES" | |
127 | 127 | case _ => | |
128 | 128 | throw("Match error") | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let assetNameB = match assetIdB { | |
132 | 132 | case id: ByteVector => | |
133 | 133 | value(assetInfo(id)).name | |
134 | 134 | case waves: Unit => | |
135 | 135 | "WAVES" | |
136 | 136 | case _ => | |
137 | 137 | throw("Match error") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | let balanceA = getIntegerValue(this, keyBalanceA) | |
141 | 141 | ||
142 | 142 | let balanceB = getIntegerValue(this, keyBalanceB) | |
143 | 143 | ||
144 | 144 | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
145 | 145 | ||
146 | 146 | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
147 | 147 | ||
148 | 148 | let commission = 3000 | |
149 | 149 | ||
150 | 150 | let commissionGovernance = 1200 | |
151 | 151 | ||
152 | 152 | let commissionScaleDelimiter = 1000000 | |
153 | 153 | ||
154 | 154 | let scaleValue3 = 1000 | |
155 | 155 | ||
156 | 156 | let scaleValue8 = 100000000 | |
157 | 157 | ||
158 | 158 | let slippageToleranceDelimiter = 1000 | |
159 | 159 | ||
160 | 160 | let scaleValue8Digits = 8 | |
161 | 161 | ||
162 | 162 | let comissionForInitalization = 1000000000 | |
163 | 163 | ||
164 | 164 | func accountBalance (assetId) = match assetId { | |
165 | 165 | case id: ByteVector => | |
166 | 166 | assetBalance(this, id) | |
167 | 167 | case waves: Unit => | |
168 | 168 | wavesBalance(this).available | |
169 | 169 | case _ => | |
170 | 170 | throw("Match error") | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func stakedAmount (assetId) = { | |
175 | 175 | let stakedAmountCalculated = match assetId { | |
176 | 176 | case aId: ByteVector => | |
177 | 177 | if (if ((aId == USDN)) | |
178 | 178 | then true | |
179 | 179 | else (aId == NSBT)) | |
180 | 180 | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
181 | 181 | else if ((aId == EURN)) | |
182 | 182 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
183 | 183 | else 0 | |
184 | 184 | case _: Unit => | |
185 | 185 | 0 | |
186 | 186 | case _ => | |
187 | 187 | throw("Match error") | |
188 | 188 | } | |
189 | 189 | match stakedAmountCalculated { | |
190 | 190 | case i: Int => | |
191 | 191 | i | |
192 | 192 | case _ => | |
193 | 193 | 0 | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func isAllowedAsset (assetId) = match assetId { | |
199 | 199 | case id: ByteVector => | |
200 | 200 | if (if ((id == USDN)) | |
201 | 201 | then true | |
202 | 202 | else (id == SWOP)) | |
203 | 203 | then true | |
204 | 204 | else false | |
205 | 205 | case waves: Unit => | |
206 | 206 | true | |
207 | 207 | case _ => | |
208 | 208 | throw("Match error") | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let stakedAmountA = stakedAmount(assetIdA) | |
213 | 213 | ||
214 | 214 | let stakedAmountB = stakedAmount(assetIdB) | |
215 | 215 | ||
216 | 216 | let assetInitA = getIntegerValue(this, keyBalanceInitA) | |
217 | 217 | ||
218 | 218 | let assetInitB = getIntegerValue(this, keyBalanceInitB) | |
219 | 219 | ||
220 | 220 | let availableBalanceA = (balanceA - stakedAmountA) | |
221 | 221 | ||
222 | 222 | let availableBalanceB = (balanceB - stakedAmountB) | |
223 | 223 | ||
224 | 224 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
225 | 225 | ||
226 | 226 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
227 | 227 | ||
228 | 228 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
229 | 229 | then (accountBalanceWithStakedB >= balanceB) | |
230 | 230 | else false | |
231 | 231 | ||
232 | 232 | func getAssetInfo (assetId) = match assetId { | |
233 | 233 | case id: ByteVector => | |
234 | 234 | let stringId = toBase58String(id) | |
235 | 235 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
236 | 236 | $Tuple3(stringId, info.name, info.decimals) | |
237 | 237 | case waves: Unit => | |
238 | 238 | $Tuple3("WAVES", "WAVES", 8) | |
239 | 239 | case _ => | |
240 | 240 | throw("Match error") | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
245 | 245 | then $Tuple3("WAVES", "WAVES", 8) | |
246 | 246 | else { | |
247 | 247 | let stringId = assetStr | |
248 | 248 | let id = fromBase58String(assetStr) | |
249 | 249 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
250 | 250 | $Tuple3(stringId, info.name, info.decimals) | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func deductStakingFee (amount,assetId,secondAssetId) = if (if ((assetId == USDN)) | |
258 | 258 | then true | |
259 | 259 | else (assetId == EURN)) | |
260 | 260 | then { | |
261 | 261 | let stakinFee = if ((assetId == USDN)) | |
262 | 262 | then (stakingFeeInUSDN * (if ((secondAssetId == NSBT)) | |
263 | 263 | then 2 | |
264 | 264 | else 1)) | |
265 | 265 | else if ((assetId == EURN)) | |
266 | 266 | then stakingFeeInEURN | |
267 | 267 | else 0 | |
268 | 268 | let result = (amount - stakinFee) | |
269 | 269 | if ((0 >= result)) | |
270 | 270 | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakinFee)) + "USDN/EURN")) | |
271 | 271 | else result | |
272 | 272 | } | |
273 | 273 | else amount | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func getStakingFee (assetId,secondAssetId) = if ((assetId == USDN)) | |
277 | 277 | then (stakingFeeInUSDN * (if ((secondAssetId == NSBT)) | |
278 | 278 | then 2 | |
279 | 279 | else 1)) | |
280 | 280 | else if ((assetId == EURN)) | |
281 | 281 | then stakingFeeInEURN | |
282 | 282 | else 0 | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB)) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(i) | |
295 | 295 | func init (userAddressStr) = { | |
296 | 296 | let $t083608437 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
297 | 297 | let pmtAmount1 = $t083608437._1 | |
298 | 298 | let pmtAssetId1 = $t083608437._2 | |
299 | 299 | let $t084428519 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
300 | 300 | let pmtAmount2 = $t084428519._1 | |
301 | 301 | let pmtAssetId2 = $t084428519._2 | |
302 | 302 | let $t085248607 = $Tuple2(i.payments[2].amount, i.payments[2].assetId) | |
303 | 303 | let pmtAmountSWOP = $t085248607._1 | |
304 | 304 | let pmtAssetIdSWOP = $t085248607._2 | |
305 | 305 | let check = isDataStorageUntouched(this) | |
306 | 306 | let userScriptHash = scriptHash(this) | |
307 | 307 | let userAddress = addressFromStringValue(userAddressStr) | |
308 | 308 | let oracleCpmmHash = value(getBinary(oracle, keyOracleScriptHash)) | |
309 | 309 | if ((i.caller == this)) | |
310 | 310 | then throw("You can't call yourself") | |
311 | 311 | else if (if ((pmtAssetIdSWOP != SWOP)) | |
312 | 312 | then true | |
313 | 313 | else (pmtAmountSWOP != comissionForInitalization)) | |
314 | 314 | then throw("You need to attach 10 SWOP tokens") | |
315 | 315 | else if (if (!(isAllowedAsset(pmtAssetId1))) | |
316 | 316 | then !(isAllowedAsset(pmtAssetId2)) | |
317 | 317 | else false) | |
318 | 318 | then throw("One of assets must be USDN, WAVES or SWOP") | |
319 | 319 | else if (if ((userScriptHash != oracleCpmmHash)) | |
320 | 320 | then true | |
321 | 321 | else !(check)) | |
322 | 322 | then throw("Unexpected script was found.") | |
323 | 323 | else if (isDefined(getBoolean(this, keyActive))) | |
324 | 324 | then throw("DApp is already active") | |
325 | 325 | else if ((pmtAssetId1 == pmtAssetId2)) | |
326 | 326 | then throw("Assets must be different") | |
327 | 327 | else { | |
328 | 328 | let pmtStrAssetId1 = match pmtAssetId1 { | |
329 | 329 | case id: ByteVector => | |
330 | 330 | toBase58String(id) | |
331 | 331 | case waves: Unit => | |
332 | 332 | "WAVES" | |
333 | 333 | case _ => | |
334 | 334 | throw("Match error") | |
335 | 335 | } | |
336 | 336 | let pmtStrAssetId2 = match pmtAssetId2 { | |
337 | 337 | case id: ByteVector => | |
338 | 338 | toBase58String(id) | |
339 | 339 | case waves: Unit => | |
340 | 340 | "WAVES" | |
341 | 341 | case _ => | |
342 | 342 | throw("Match error") | |
343 | 343 | } | |
344 | 344 | let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999) | |
345 | 345 | let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999) | |
346 | - | let $ | |
346 | + | let $t01006910296 = if ((asset2Priority > asset1Priority)) | |
347 | 347 | then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1) | |
348 | 348 | else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2) | |
349 | - | let pmtAmountA = $ | |
350 | - | let pmtAssetIdA = $ | |
351 | - | let pmtAmountB = $ | |
352 | - | let pmtAssetIdB = $ | |
353 | - | let $ | |
354 | - | let pmtStrAssetIdA = $ | |
355 | - | let pmtAssetNameA = $ | |
356 | - | let pmtDecimalsA = $ | |
357 | - | let $ | |
358 | - | let pmtStrAssetIdB = $ | |
359 | - | let pmtAssetNameB = $ | |
360 | - | let pmtDecimalsB = $ | |
349 | + | let pmtAmountA = $t01006910296._1 | |
350 | + | let pmtAssetIdA = $t01006910296._2 | |
351 | + | let pmtAmountB = $t01006910296._3 | |
352 | + | let pmtAssetIdB = $t01006910296._4 | |
353 | + | let $t01030510382 = getAssetInfo(pmtAssetIdA) | |
354 | + | let pmtStrAssetIdA = $t01030510382._1 | |
355 | + | let pmtAssetNameA = $t01030510382._2 | |
356 | + | let pmtDecimalsA = $t01030510382._3 | |
357 | + | let $t01039110468 = getAssetInfo(pmtAssetIdB) | |
358 | + | let pmtStrAssetIdB = $t01039110468._1 | |
359 | + | let pmtAssetNameB = $t01039110468._2 | |
360 | + | let pmtDecimalsB = $t01039110468._3 | |
361 | 361 | let addParams = [toString(this), ((pmtAssetNameA + "_") + pmtAssetNameB), pmtStrAssetIdA, pmtStrAssetIdB] | |
362 | 362 | let addPool = invoke(oracle, "addPool", addParams, nil) | |
363 | 363 | if ((addPool == addPool)) | |
364 | 364 | then if (!(isDefined(getString(oracle, ("pool_" + toString(this)))))) | |
365 | 365 | then throw("Pool is not added") | |
366 | 366 | else { | |
367 | 367 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
368 | 368 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
369 | 369 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
370 | 370 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
371 | 371 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
372 | 372 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
373 | 373 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
374 | 374 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
375 | 375 | let shareIssueId = calculateAssetId(shareIssue) | |
376 | 376 | let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), IntegerEntry(keyInitPoolHeight, height), ScriptTransfer(userAddress, shareInitialSupply, shareIssueId), ScriptTransfer(walletAddress, comissionForInitalization, SWOP)] | |
377 | 377 | baseEntry | |
378 | 378 | } | |
379 | 379 | else throw("Strict value is not equal to itself.") | |
380 | 380 | } | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(i) | |
386 | 386 | func keepLimitForFirstHarvest (shareLimit) = if (!(isActive)) | |
387 | 387 | then throw("DApp is inactive at this moment") | |
388 | 388 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
389 | 389 | then throw("Only admin can call this function") | |
390 | 390 | else [IntegerEntry(keyShareLimit, shareLimit)] | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(i) | |
395 | 395 | func replenishWithTwoTokens (slippageTolerance) = { | |
396 | 396 | let pmtAssetIdA = i.payments[0].assetId | |
397 | 397 | let pmtAssetIdB = i.payments[1].assetId | |
398 | 398 | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA, pmtAssetIdB) | |
399 | 399 | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB, pmtAssetIdA) | |
400 | 400 | if (if ((balanceA == 0)) | |
401 | 401 | then (balanceB == 0) | |
402 | 402 | else false) | |
403 | 403 | then { | |
404 | - | let $ | |
405 | - | let pmtStrAssetIdA = $ | |
406 | - | let pmtAssetNameA = $ | |
407 | - | let pmtDecimalsA = $ | |
408 | - | let $ | |
409 | - | let pmtStrAssetIdB = $ | |
410 | - | let pmtAssetNameB = $ | |
411 | - | let pmtDecimalsB = $ | |
404 | + | let $t01338813465 = getAssetInfo(pmtAssetIdA) | |
405 | + | let pmtStrAssetIdA = $t01338813465._1 | |
406 | + | let pmtAssetNameA = $t01338813465._2 | |
407 | + | let pmtDecimalsA = $t01338813465._3 | |
408 | + | let $t01347413551 = getAssetInfo(pmtAssetIdB) | |
409 | + | let pmtStrAssetIdB = $t01347413551._1 | |
410 | + | let pmtAssetNameB = $t01347413551._2 | |
411 | + | let pmtDecimalsB = $t01347413551._3 | |
412 | 412 | let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
413 | 413 | if ((pmtAssetIdA == pmtAssetIdB)) | |
414 | 414 | then throw("Assets must be different") | |
415 | 415 | else { | |
416 | 416 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
417 | 417 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
418 | 418 | if (!(isActive)) | |
419 | 419 | then throw("DApp is inactive at this moment") | |
420 | 420 | else if (if ((0 > slippageTolerance)) | |
421 | 421 | then true | |
422 | 422 | else (slippageTolerance > slippageToleranceDelimiter)) | |
423 | 423 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
424 | 424 | else if ((size(i.payments) != 2)) | |
425 | 425 | then throw("Two attached assets expected") | |
426 | 426 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
427 | 427 | then true | |
428 | 428 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
429 | 429 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
430 | 430 | else if (if ((pmtAssetIdA != assetIdA)) | |
431 | 431 | then true | |
432 | 432 | else (pmtAssetIdB != assetIdB)) | |
433 | 433 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
434 | 434 | else if ((shareInitialSupply == 0)) | |
435 | 435 | then throw("Too small amount to replenish") | |
436 | 436 | else if (!(hasEnoughBalance)) | |
437 | 437 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
438 | 438 | else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)] | |
439 | 439 | } | |
440 | 440 | } | |
441 | 441 | else { | |
442 | 442 | let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
443 | 443 | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
444 | 444 | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
445 | 445 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
446 | 446 | if (!(isActive)) | |
447 | 447 | then throw("DApp is inactive at this moment") | |
448 | 448 | else if (if ((0 > slippageTolerance)) | |
449 | 449 | then true | |
450 | 450 | else (slippageTolerance > slippageToleranceDelimiter)) | |
451 | 451 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
452 | 452 | else if ((size(i.payments) != 2)) | |
453 | 453 | then throw("Two attached assets expected") | |
454 | 454 | else if (if ((pmtAssetIdA != assetIdA)) | |
455 | 455 | then true | |
456 | 456 | else (pmtAssetIdB != assetIdB)) | |
457 | 457 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
458 | 458 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
459 | 459 | then true | |
460 | 460 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
461 | 461 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
462 | 462 | else if ((shareTokenToPayAmount == 0)) | |
463 | 463 | then throw("Too small amount to replenish") | |
464 | 464 | else if (!(hasEnoughBalance)) | |
465 | 465 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
466 | 466 | else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
467 | 467 | } | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | ||
472 | 472 | @Callable(i) | |
473 | 473 | func withdraw () = { | |
474 | - | let $ | |
475 | - | let pmtAmount = $ | |
476 | - | let pmtAssetId = $ | |
474 | + | let $t01795018100 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
475 | + | let pmtAmount = $t01795018100._1 | |
476 | + | let pmtAssetId = $t01795018100._2 | |
477 | 477 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB) | |
478 | 478 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA) | |
479 | 479 | if (!(isActive)) | |
480 | 480 | then throw("DApp is inactive at this moment") | |
481 | 481 | else if ((size(i.payments) != 1)) | |
482 | 482 | then throw("One attached payment expected") | |
483 | 483 | else if ((pmtAssetId != shareAssetId)) | |
484 | 484 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
485 | 485 | else if (!(hasEnoughBalance)) | |
486 | 486 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
487 | 487 | else if (if ((amountToPayA > availableBalanceA)) | |
488 | 488 | then true | |
489 | 489 | else (amountToPayB > availableBalanceB)) | |
490 | 490 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
491 | 491 | else [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
492 | 492 | } | |
493 | 493 | ||
494 | 494 | ||
495 | 495 | ||
496 | 496 | @Callable(i) | |
497 | 497 | func exchange (minAmountToReceive) = { | |
498 | - | let $ | |
499 | - | let pmtAmount = $ | |
500 | - | let pmtAssetId = $ | |
498 | + | let $t01932619401 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
499 | + | let pmtAmount = $t01932619401._1 | |
500 | + | let pmtAssetId = $t01932619401._2 | |
501 | 501 | func calculateFees (tokenFrom,tokenTo) = { | |
502 | 502 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
503 | 503 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
504 | 504 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
505 | 505 | if ((minAmountToReceive > amountWithFee)) | |
506 | 506 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
507 | 507 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
508 | 508 | } | |
509 | 509 | ||
510 | 510 | if (!(isActive)) | |
511 | 511 | then throw("DApp is inactive at this moment") | |
512 | 512 | else if (if ((balanceA == 0)) | |
513 | 513 | then true | |
514 | 514 | else (balanceB == 0)) | |
515 | 515 | then throw("Can't exchange with zero balance") | |
516 | 516 | else if ((0 >= minAmountToReceive)) | |
517 | 517 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
518 | 518 | else if ((size(i.payments) != 1)) | |
519 | 519 | then throw("One attached payment expected") | |
520 | 520 | else if (!(hasEnoughBalance)) | |
521 | 521 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
522 | 522 | else if ((pmtAssetId == assetIdA)) | |
523 | 523 | then { | |
524 | 524 | let assetIdSend = assetIdB | |
525 | - | let $ | |
526 | - | let amountWithoutFee = $ | |
527 | - | let amountWithFee = $ | |
528 | - | let governanceReward = $ | |
525 | + | let $t02067520766 = calculateFees(balanceA, balanceB) | |
526 | + | let amountWithoutFee = $t02067520766._1 | |
527 | + | let amountWithFee = $t02067520766._2 | |
528 | + | let governanceReward = $t02067520766._3 | |
529 | 529 | let newBalanceA = (balanceA + pmtAmount) | |
530 | 530 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
531 | 531 | if (if ((stakedAmountA >= newBalanceA)) | |
532 | 532 | then true | |
533 | 533 | else (stakedAmountB >= newBalanceB)) | |
534 | 534 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
535 | 535 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
536 | 536 | } | |
537 | 537 | else if ((pmtAssetId == assetIdB)) | |
538 | 538 | then { | |
539 | 539 | let assetIdSend = assetIdA | |
540 | - | let $ | |
541 | - | let amountWithoutFee = $ | |
542 | - | let amountWithFee = $ | |
543 | - | let governanceReward = $ | |
540 | + | let $t02158521676 = calculateFees(balanceB, balanceA) | |
541 | + | let amountWithoutFee = $t02158521676._1 | |
542 | + | let amountWithFee = $t02158521676._2 | |
543 | + | let governanceReward = $t02158521676._3 | |
544 | 544 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
545 | 545 | let newBalanceB = (balanceB + pmtAmount) | |
546 | 546 | if (if ((stakedAmountA >= newBalanceA)) | |
547 | 547 | then true | |
548 | 548 | else (stakedAmountB >= newBalanceB)) | |
549 | 549 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
550 | 550 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
551 | 551 | } | |
552 | 552 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
553 | 553 | } | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | ||
557 | 557 | @Callable(i) | |
558 | 558 | func shutdown () = if (!(isActive)) | |
559 | 559 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
560 | 560 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
561 | 561 | then throw("Only admin can call this function") | |
562 | 562 | else suspend("Paused by admin") | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(i) | |
567 | 567 | func activate () = if (isActive) | |
568 | 568 | then throw("DApp is already active") | |
569 | 569 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
570 | 570 | then throw("Only admin can call this function") | |
571 | 571 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | ||
575 | 575 | @Callable(i) | |
576 | 576 | func takeIntoAccountExtraFunds (amountLeave) = { | |
577 | 577 | let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA) | |
578 | 578 | let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB) | |
579 | 579 | let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit)) | |
580 | 580 | then amountLeave | |
581 | 581 | else 0)) | |
582 | 582 | let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit)) | |
583 | 583 | then amountLeave | |
584 | 584 | else 0)) | |
585 | 585 | if (!(isActive)) | |
586 | 586 | then throw("DApp is inactive at this moment") | |
587 | 587 | else if ((i.caller != this)) | |
588 | 588 | then throw("Only the DApp itself can call this function") | |
589 | 589 | else if ((0 > amountLeave)) | |
590 | 590 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
591 | 591 | else if (if ((0 > uncountableAmountEnrollAssetA)) | |
592 | 592 | then true | |
593 | 593 | else (0 > uncountableAmountEnrollAssetB)) | |
594 | 594 | then suspend("Enroll amount negative") | |
595 | 595 | else if (if ((0 > amountEnrollA)) | |
596 | 596 | then true | |
597 | 597 | else (0 > amountEnrollB)) | |
598 | 598 | then throw("Too large amountLeave") | |
599 | 599 | else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
600 | 600 | } | |
601 | 601 | ||
602 | 602 | ||
603 | 603 | ||
604 | 604 | @Callable(i) | |
605 | 605 | func enableFirstHarvest () = [BooleanEntry(keyFirstHarvest, true), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))] | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | @Verifier(tx) | |
609 | 609 | func verify () = { | |
610 | 610 | let multiSignedByAdmins = { | |
611 | 611 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
612 | 612 | then 1 | |
613 | 613 | else 0 | |
614 | 614 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
615 | 615 | then 1 | |
616 | 616 | else 0 | |
617 | 617 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
618 | 618 | then 1 | |
619 | 619 | else 0 | |
620 | 620 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
621 | 621 | } | |
622 | 622 | match tx { | |
623 | 623 | case inv: InvokeScriptTransaction => | |
624 | 624 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
625 | 625 | then (inv.function == "takeIntoAccountExtraFunds") | |
626 | 626 | else false | |
627 | 627 | let callEnableFirstHarvest = if ((inv.dApp == this)) | |
628 | 628 | then (inv.function == "enableFirstHarvest") | |
629 | 629 | else false | |
630 | 630 | let callStaking = if (if ((inv.dApp == stakingUSDNNSBTAddress)) | |
631 | 631 | then if (if (if ((inv.function == "lockNeutrino")) | |
632 | 632 | then (size(inv.payments) == 1) | |
633 | 633 | else false) | |
634 | 634 | then if ((inv.payments[0].assetId == USDN)) | |
635 | 635 | then true | |
636 | 636 | else (inv.payments[0].assetId == NSBT) | |
637 | 637 | else false) | |
638 | 638 | then true | |
639 | 639 | else if ((inv.function == "unlockNeutrino")) | |
640 | 640 | then (size(inv.payments) == 0) | |
641 | 641 | else false | |
642 | 642 | else false) | |
643 | 643 | then true | |
644 | 644 | else if ((inv.dApp == stakingEURNAddress)) | |
645 | 645 | then if (if (if ((inv.function == "startStaking")) | |
646 | 646 | then (size(inv.payments) == 1) | |
647 | 647 | else false) | |
648 | 648 | then (inv.payments[0].assetId == EURN) | |
649 | 649 | else false) | |
650 | 650 | then true | |
651 | 651 | else if ((inv.function == "stopStaking")) | |
652 | 652 | then (size(inv.payments) == 0) | |
653 | 653 | else false | |
654 | 654 | else false | |
655 | 655 | let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger)) | |
656 | 656 | then (inv.function == "exchange") | |
657 | 657 | else false) | |
658 | 658 | then (assetIdA == USDN) | |
659 | 659 | else false) | |
660 | 660 | then true | |
661 | 661 | else if (if ((assetIdB == USDN)) | |
662 | 662 | then (size(inv.payments) == 1) | |
663 | 663 | else false) | |
664 | 664 | then (inv.payments[0].assetId == USDN) | |
665 | 665 | else false | |
666 | 666 | let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger)) | |
667 | 667 | then (inv.function == "exchange") | |
668 | 668 | else false) | |
669 | 669 | then (assetIdA == NSBT) | |
670 | 670 | else false) | |
671 | 671 | then true | |
672 | 672 | else if (if ((assetIdB == NSBT)) | |
673 | 673 | then (size(inv.payments) == 1) | |
674 | 674 | else false) | |
675 | 675 | then (inv.payments[0].assetId == USDN) | |
676 | 676 | else false | |
677 | 677 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
678 | 678 | then true | |
679 | 679 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
680 | 680 | then true | |
681 | 681 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
682 | 682 | then true | |
683 | 683 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
684 | 684 | if (if (if (if (if (if (callTakeIntoAccount) | |
685 | 685 | then true | |
686 | 686 | else callEnableFirstHarvest) | |
687 | 687 | then true | |
688 | 688 | else callStaking) | |
689 | 689 | then true | |
690 | 690 | else exchangeToWaves) | |
691 | 691 | then true | |
692 | 692 | else exchangeToNSBTs) | |
693 | 693 | then signedByAdmin | |
694 | 694 | else false) | |
695 | 695 | then true | |
696 | 696 | else multiSignedByAdmins | |
697 | 697 | case _ => | |
698 | 698 | multiSignedByAdmins | |
699 | 699 | } | |
700 | 700 | } | |
701 | 701 |
github/deemru/w8io/026f985 98.91 ms ◑