tx · 3NTvgnx7bfCcHAKJDiNi9koN8qjyHcqNz5WdpTnJQP9A 3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz: -0.01400000 Waves 2021.03.21 16:10 [1447543] smart account 3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz > SELF 0.00000000 Waves
{ "type": 13, "id": "3NTvgnx7bfCcHAKJDiNi9koN8qjyHcqNz5WdpTnJQP9A", "fee": 1400000, "feeAssetId": null, "timestamp": 1616332330626, "version": 1, "sender": "3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz", "senderPublicKey": "dfNMTfdDV6jp9TzacEMKaaEXHWB1kXUU6SEg8t2vZR9", "proofs": [ "5JfeoByXej1Wz3ZntCr2eTYxUCFCM9FKtGp22u71BNWbcHXPJf9ubgDwhbnrjDUbbDgWGrWzpnHGLLmi9SBJSkVk" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEwAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAOa0ZlZUdvdmVybmFuY2UCAAAAFWNvbW1pc3Npb25fZ292ZXJ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YWxhbmNlQQUAAAANYW1vdW50RW5yb2xsQQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAJa0JhbGFuY2VCCQAAZAAAAAIFAAAACGJhbGFuY2VCBQAAAA1hbW91bnRFbnJvbGxCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADGxhc3RfaW5jb21lXwUAAAALc3RyQXNzZXRJZEEFAAAADWFtb3VudEVucm9sbEEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAMbGFzdF9pbmNvbWVfBQAAAAtzdHJBc3NldElkQgUAAAANYW1vdW50RW5yb2xsQgUAAAADbmlsAAAAAMhBeYg=", "chainId": 84, "height": 1447543, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DJGMwFD61XNfNMgbt6a6TkQvrU1qW4JwA5kkp7BFcQL6 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
394 | 394 | then { | |
395 | 395 | let ratioVirtualBalanceToVirtualReplenish = (fraction(balanceAfterSwapA, (scaleValue8 * scaleValue8), balanceAfterSwapB) / fraction(virtReplA, scaleValue8, virtReplB)) | |
396 | 396 | if (true) | |
397 | - | then throw(toString(ratioVirtualBalanceToVirtualReplenish)) | |
397 | + | then throw(((toString(ratioVirtualBalanceToVirtualReplenish) + " ") + toString(slippageValueMaxForReplenish))) | |
398 | 398 | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
399 | 399 | then true | |
400 | 400 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
457 | 457 | ||
458 | 458 | @Callable(i) | |
459 | 459 | func withdraw () = { | |
460 | - | let $ | |
461 | - | let pmtAmount = $ | |
462 | - | let pmtAssetId = $ | |
460 | + | let $t02209722240 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
461 | + | let pmtAmount = $t02209722240._1 | |
462 | + | let pmtAssetId = $t02209722240._2 | |
463 | 463 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
464 | 464 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
465 | 465 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
482 | 482 | ||
483 | 483 | @Callable(i) | |
484 | 484 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
485 | - | let $ | |
486 | - | let pmtAmount = $ | |
487 | - | let pmtAssetId = $ | |
485 | + | let $t02352323598 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
486 | + | let pmtAmount = $t02352323598._1 | |
487 | + | let pmtAssetId = $t02352323598._2 | |
488 | 488 | if (if ((exchangeRatioLimitMin > fraction(minAmountToReceive, scaleValue8, pmtAmount))) | |
489 | 489 | then true | |
490 | 490 | else (fraction(estimatedAmountToReceive, scaleValue8, pmtAmount) > exchangeRatioLimitMax)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
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 kAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let kAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let kBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let kBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let kShareAssetId = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let kShareAssetSupply = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let kFee = "commission" | |
23 | 23 | ||
24 | 24 | let kFeeScaleDelimiter = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let kFeeGovernance = "commission_governance" | |
27 | 27 | ||
28 | 28 | let kInvariant = "invariant" | |
29 | 29 | ||
30 | 30 | let kCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let adm1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
33 | 33 | ||
34 | 34 | let adm2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
35 | 35 | ||
36 | 36 | let adm3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
37 | 37 | ||
38 | 38 | let admStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
39 | 39 | ||
40 | 40 | let admStaking = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h' | |
41 | 41 | ||
42 | 42 | let govAddr = Address(base58'3P6J84oH51DzY6xk2mT5TheXRbrCwBMxonp') | |
43 | 43 | ||
44 | 44 | let stakingAddress = Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ') | |
45 | 45 | ||
46 | 46 | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
47 | 47 | ||
48 | 48 | let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee)) | |
49 | 49 | ||
50 | 50 | let isActive = getBooleanValue(this, kActive) | |
51 | 51 | ||
52 | 52 | let strAssetIdA = getStringValue(this, kAssetIdA) | |
53 | 53 | ||
54 | 54 | let strAssetIdB = getStringValue(this, kAssetIdB) | |
55 | 55 | ||
56 | 56 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
57 | 57 | then unit | |
58 | 58 | else fromBase58String(strAssetIdA) | |
59 | 59 | ||
60 | 60 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
61 | 61 | then unit | |
62 | 62 | else fromBase58String(strAssetIdB) | |
63 | 63 | ||
64 | 64 | let assetNameA = match assetIdA { | |
65 | 65 | case id: ByteVector => | |
66 | 66 | value(assetInfo(id)).name | |
67 | 67 | case waves: Unit => | |
68 | 68 | "WAVES" | |
69 | 69 | case _ => | |
70 | 70 | throw("Match error") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | let assetNameB = match assetIdB { | |
74 | 74 | case id: ByteVector => | |
75 | 75 | value(assetInfo(id)).name | |
76 | 76 | case waves: Unit => | |
77 | 77 | "WAVES" | |
78 | 78 | case _ => | |
79 | 79 | throw("Match error") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | let balanceA = getIntegerValue(this, kBalanceA) | |
83 | 83 | ||
84 | 84 | let balanceB = getIntegerValue(this, kBalanceB) | |
85 | 85 | ||
86 | 86 | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
87 | 87 | ||
88 | 88 | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
89 | 89 | ||
90 | 90 | let invariant = getIntegerValue(this, kInvariant) | |
91 | 91 | ||
92 | 92 | let fee = 500 | |
93 | 93 | ||
94 | 94 | let feeGovernance = 200 | |
95 | 95 | ||
96 | 96 | let feeScaleDelimiter = 1000000 | |
97 | 97 | ||
98 | 98 | let scaleValue3 = 1000 | |
99 | 99 | ||
100 | 100 | let scaleValue8 = 100000000 | |
101 | 101 | ||
102 | 102 | let scaleValue12 = 1000000000000 | |
103 | 103 | ||
104 | 104 | let slippageToleranceDelimiter = 1000 | |
105 | 105 | ||
106 | 106 | let scaleValue8Digits = 8 | |
107 | 107 | ||
108 | 108 | let scaleValue12Digits = 12 | |
109 | 109 | ||
110 | 110 | let dAppThreshold = 50 | |
111 | 111 | ||
112 | 112 | let dAppThresholdDelimiter = 100 | |
113 | 113 | ||
114 | 114 | let ratioThresholdMax = 100000000 | |
115 | 115 | ||
116 | 116 | let ratioThresholdMin = 99999000 | |
117 | 117 | ||
118 | 118 | let exchangeRatioLimitMin = 90000000 | |
119 | 119 | ||
120 | 120 | let exchangeRatioLimitMax = 110000000 | |
121 | 121 | ||
122 | 122 | let alpha = 50 | |
123 | 123 | ||
124 | 124 | let alphaDigits = 2 | |
125 | 125 | ||
126 | 126 | let beta = 46000000 | |
127 | 127 | ||
128 | 128 | let betaDigits = 8 | |
129 | 129 | ||
130 | 130 | func accountBalance (assetId) = match assetId { | |
131 | 131 | case id: ByteVector => | |
132 | 132 | assetBalance(this, id) | |
133 | 133 | case waves: Unit => | |
134 | 134 | wavesBalance(this).available | |
135 | 135 | case _ => | |
136 | 136 | throw("Match error") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) { | |
141 | 141 | case staked: Int => | |
142 | 142 | staked | |
143 | 143 | case nothing: Unit => | |
144 | 144 | 0 | |
145 | 145 | case _ => | |
146 | 146 | throw("Match error") | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
150 | 150 | then stakedAmountUSDN | |
151 | 151 | else 0)) | |
152 | 152 | ||
153 | 153 | let availableBalanceB = (balanceB - (if ((assetIdB == USDN)) | |
154 | 154 | then stakedAmountUSDN | |
155 | 155 | else 0)) | |
156 | 156 | ||
157 | 157 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN)) | |
158 | 158 | then stakedAmountUSDN | |
159 | 159 | else 0)) | |
160 | 160 | ||
161 | 161 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN)) | |
162 | 162 | then stakedAmountUSDN | |
163 | 163 | else 0)) | |
164 | 164 | ||
165 | 165 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
166 | 166 | then (accountBalanceWithStakedB >= balanceB) | |
167 | 167 | else false | |
168 | 168 | ||
169 | 169 | func skewness (x,y) = (((fraction(scaleValue12, x, y) + fraction(scaleValue12, y, x)) / 2) / 10000) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func invariantCalc (x,y) = { | |
173 | 173 | let sk = skewness(x, y) | |
174 | 174 | (fraction((x + y), scaleValue8, pow(sk, scaleValue8Digits, alpha, alphaDigits, scaleValue8Digits, UP)) + (2 * fraction(pow(fraction(x, y, scaleValue8), 0, 5, 1, (scaleValue8Digits / 2), DOWN), pow((sk - beta), scaleValue8Digits, alpha, alphaDigits, scaleValue8Digits, DOWN), scaleValue8))) | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func calculateHowManySendA (amountToSendEstimated,minTokenReceiveAmount,amountA,amountB,tokenReceiveAmount) = { | |
179 | 179 | let slippageValue = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
180 | 180 | let deltaMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
181 | 181 | let amountToSendStep1 = (amountToSendEstimated - ((1 * deltaMaxAndMinSendValue) / 5)) | |
182 | 182 | let amountToSendStep2 = (amountToSendEstimated - ((2 * deltaMaxAndMinSendValue) / 5)) | |
183 | 183 | let amountToSendStep3 = (amountToSendEstimated - ((3 * deltaMaxAndMinSendValue) / 5)) | |
184 | 184 | let amountToSendStep4 = (amountToSendEstimated - ((4 * deltaMaxAndMinSendValue) / 5)) | |
185 | 185 | let amountToSendStep5 = (amountToSendEstimated - ((5 * deltaMaxAndMinSendValue) / 5)) | |
186 | 186 | let y = (amountB + tokenReceiveAmount) | |
187 | 187 | let invariantNew = invariantCalc((amountA - amountToSendEstimated), y) | |
188 | 188 | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
189 | 189 | if ((0 >= (invariantCalc((amountA - amountToSendStep5), y) - invariant))) | |
190 | 190 | then throw("err1") | |
191 | 191 | else if (if ((invariantEstimatedRatio > slippageValue)) | |
192 | 192 | then ((invariantNew - invariant) > 0) | |
193 | 193 | else false) | |
194 | 194 | then amountToSendEstimated | |
195 | 195 | else if (((invariantCalc((amountA - amountToSendStep1), y) - invariant) > 0)) | |
196 | 196 | then ((amountToSendStep1 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
197 | 197 | else if (((invariantCalc((amountA - amountToSendStep2), y) - invariant) > 0)) | |
198 | 198 | then ((amountToSendStep2 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
199 | 199 | else if (((invariantCalc((amountA - amountToSendStep3), y) - invariant) > 0)) | |
200 | 200 | then ((amountToSendStep3 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
201 | 201 | else if (((invariantCalc((amountA - amountToSendStep4), y) - invariant) > 0)) | |
202 | 202 | then ((amountToSendStep4 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
203 | 203 | else if (((invariantCalc((amountA - amountToSendStep5), y) - invariant) > 0)) | |
204 | 204 | then ((amountToSendStep5 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
205 | 205 | else throw("err2") | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func calculateHowManySendB (amountToSendEstimated,minTokenReceiveAmount,amountA,amountB,tokenReceiveAmount) = { | |
210 | 210 | let slippageValue = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
211 | 211 | let deltaMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
212 | 212 | let amountToSendStep1 = (amountToSendEstimated - ((1 * deltaMaxAndMinSendValue) / 5)) | |
213 | 213 | let amountToSendStep2 = (amountToSendEstimated - ((2 * deltaMaxAndMinSendValue) / 5)) | |
214 | 214 | let amountToSendStep3 = (amountToSendEstimated - ((3 * deltaMaxAndMinSendValue) / 5)) | |
215 | 215 | let amountToSendStep4 = (amountToSendEstimated - ((4 * deltaMaxAndMinSendValue) / 5)) | |
216 | 216 | let amountToSendStep5 = (amountToSendEstimated - ((5 * deltaMaxAndMinSendValue) / 5)) | |
217 | 217 | let x = (amountA + tokenReceiveAmount) | |
218 | 218 | let invariantNew = invariantCalc(x, (amountB - amountToSendEstimated)) | |
219 | 219 | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
220 | 220 | if ((0 >= (invariantCalc(x, (amountB - amountToSendStep5)) - invariant))) | |
221 | 221 | then throw("err1") | |
222 | 222 | else if (if ((invariantEstimatedRatio > slippageValue)) | |
223 | 223 | then ((invariantNew - invariant) > 0) | |
224 | 224 | else false) | |
225 | 225 | then amountToSendEstimated | |
226 | 226 | else if (((invariantCalc(x, (amountB - amountToSendStep1)) - invariant) > 0)) | |
227 | 227 | then ((amountToSendStep1 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
228 | 228 | else if (((invariantCalc(x, (amountB - amountToSendStep2)) - invariant) > 0)) | |
229 | 229 | then ((amountToSendStep2 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
230 | 230 | else if (((invariantCalc(x, (amountB - amountToSendStep3)) - invariant) > 0)) | |
231 | 231 | then ((amountToSendStep3 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
232 | 232 | else if (((invariantCalc(x, (amountB - amountToSendStep4)) - invariant) > 0)) | |
233 | 233 | then ((amountToSendStep4 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
234 | 234 | else if (((invariantCalc(x, (amountB - amountToSendStep5)) - invariant) > 0)) | |
235 | 235 | then ((amountToSendStep5 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
236 | 236 | else throw("err2") | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func getAssetInfo (assetId) = match assetId { | |
241 | 241 | case id: ByteVector => | |
242 | 242 | let stringId = toBase58String(id) | |
243 | 243 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
244 | 244 | $Tuple3(stringId, info.name, info.decimals) | |
245 | 245 | case waves: Unit => | |
246 | 246 | $Tuple3("WAVES", "WAVES", 8) | |
247 | 247 | case _ => | |
248 | 248 | throw("Match error") | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
256 | 256 | then { | |
257 | 257 | let result = (amount - stakingFeeInUSDN) | |
258 | 258 | if ((0 >= result)) | |
259 | 259 | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
260 | 260 | else result | |
261 | 261 | } | |
262 | 262 | else amount | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func throwIsActive () = throw("DApp is already active") | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func throwIsInactive () = throw("DApp is inactive at this moment") | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func throwOnlyAdmin () = throw("Only admin can call this function") | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB)) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | 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")) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | 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")) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | @Callable(i) | |
290 | 290 | func init () = { | |
291 | 291 | let $t01115911236 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
292 | 292 | let pmtAmountA = $t01115911236._1 | |
293 | 293 | let pmtAssetIdA = $t01115911236._2 | |
294 | 294 | let $t01124111318 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
295 | 295 | let pmtAmountB = $t01124111318._1 | |
296 | 296 | let pmtAssetIdB = $t01124111318._2 | |
297 | 297 | let $t01132311400 = getAssetInfo(pmtAssetIdA) | |
298 | 298 | let pmtStrAssetIdA = $t01132311400._1 | |
299 | 299 | let pmtAssetNameA = $t01132311400._2 | |
300 | 300 | let pmtDecimalsA = $t01132311400._3 | |
301 | 301 | let $t01140511482 = getAssetInfo(pmtAssetIdB) | |
302 | 302 | let pmtStrAssetIdB = $t01140511482._1 | |
303 | 303 | let pmtAssetNameB = $t01140511482._2 | |
304 | 304 | let pmtDecimalsB = $t01140511482._3 | |
305 | 305 | if (isDefined(getBoolean(this, kActive))) | |
306 | 306 | then throwIsActive() | |
307 | 307 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
308 | 308 | then throw("Assets must be different") | |
309 | 309 | else { | |
310 | 310 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
311 | 311 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
312 | 312 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
313 | 313 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
314 | 314 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
315 | 315 | let shareIssueId = calculateAssetId(shareIssue) | |
316 | 316 | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
317 | 317 | [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScaleDelimiter), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(i) | |
324 | 324 | func replenishWithTwoTokens (slippageTolerance) = if ((slippageTolerance > 10)) | |
325 | 325 | then throw("slippage tolerance must be <= 1%") | |
326 | 326 | else { | |
327 | 327 | let pmtAssetIdA = i.payments[0].assetId | |
328 | 328 | let pmtAssetIdB = i.payments[1].assetId | |
329 | 329 | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
330 | 330 | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
331 | 331 | let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
332 | 332 | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
333 | 333 | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
334 | 334 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
335 | 335 | let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB)) | |
336 | 336 | if (!(isActive)) | |
337 | 337 | then throwIsInactive() | |
338 | 338 | else if (if ((0 > slippageTolerance)) | |
339 | 339 | then true | |
340 | 340 | else (slippageTolerance > slippageToleranceDelimiter)) | |
341 | 341 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
342 | 342 | else if ((size(i.payments) != 2)) | |
343 | 343 | then throw("Two attached assets expected") | |
344 | 344 | else if (if ((pmtAssetIdA != assetIdA)) | |
345 | 345 | then true | |
346 | 346 | else (pmtAssetIdB != assetIdB)) | |
347 | 347 | then throwAssets() | |
348 | 348 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
349 | 349 | then true | |
350 | 350 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
351 | 351 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
352 | 352 | else if ((shareTokenToPayAmount == 0)) | |
353 | 353 | then throw("Too small amount to replenish") | |
354 | 354 | else if (!(hasEnoughBalance)) | |
355 | 355 | then suspendSuspicious() | |
356 | 356 | else [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
357 | 357 | } | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | ||
361 | 361 | @Callable(i) | |
362 | 362 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
363 | 363 | let $t01602416099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
364 | 364 | let pmtAmount = $t01602416099._1 | |
365 | 365 | let pmtAssetId = $t01602416099._2 | |
366 | 366 | let pmtMinThreshold = 5000000 | |
367 | 367 | let thresholdValueForMinTolerance = 50000000 | |
368 | 368 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
369 | 369 | then 100000 | |
370 | 370 | else 1 | |
371 | 371 | let slippageValueMinForReplenish = (scaleValue8 - ((scaleValue8 * tolerance) / 10000000)) | |
372 | 372 | let slippageValueMaxForReplenish = (scaleValue8 + ((scaleValue8 * tolerance) / 10000000)) | |
373 | 373 | let slippageValueMinForSwap = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
374 | 374 | let slippageValueMaxForSwap = (scaleValue8 + ((scaleValue8 * 1) / 10000000)) | |
375 | 375 | if (!(isActive)) | |
376 | 376 | then throwIsInactive() | |
377 | 377 | else if ((pmtMinThreshold > pmtAmount)) | |
378 | 378 | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
379 | 379 | else if ((size(i.payments) != 1)) | |
380 | 380 | then throw("One attached payment expected") | |
381 | 381 | else if (!(hasEnoughBalance)) | |
382 | 382 | then suspendSuspicious() | |
383 | 383 | else if ((pmtAssetId == assetIdA)) | |
384 | 384 | then { | |
385 | 385 | let virtReplA = (pmtAmount - virtualSwapTokenPay) | |
386 | 386 | let virtReplB = virtualSwapTokenGet | |
387 | 387 | let balanceAfterSwapA = (balanceA + virtualSwapTokenPay) | |
388 | 388 | let balanceAfterSwapB = (balanceB - virtualSwapTokenGet) | |
389 | 389 | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
390 | 390 | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
391 | 391 | if (if ((invariantEstimatedRatio > slippageValueMinForSwap)) | |
392 | 392 | then ((invariantNew - invariant) >= 0) | |
393 | 393 | else false) | |
394 | 394 | then { | |
395 | 395 | let ratioVirtualBalanceToVirtualReplenish = (fraction(balanceAfterSwapA, (scaleValue8 * scaleValue8), balanceAfterSwapB) / fraction(virtReplA, scaleValue8, virtReplB)) | |
396 | 396 | if (true) | |
397 | - | then throw(toString(ratioVirtualBalanceToVirtualReplenish)) | |
397 | + | then throw(((toString(ratioVirtualBalanceToVirtualReplenish) + " ") + toString(slippageValueMaxForReplenish))) | |
398 | 398 | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
399 | 399 | then true | |
400 | 400 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
401 | 401 | then throw("Ratio after virtual swap incorrect") | |
402 | 402 | else { | |
403 | 403 | let ratioShareTokensInA = fraction(deductStakingFee(virtReplA, assetIdA), scaleValue8, balanceAfterSwapA) | |
404 | 404 | let ratioShareTokensInB = fraction(deductStakingFee(virtReplB, assetIdB), scaleValue8, balanceAfterSwapB) | |
405 | 405 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
406 | 406 | let invariantCalculated = invariantCalc((balanceA + pmtAmount), balanceB) | |
407 | 407 | let newBalanceA = (balanceA + pmtAmount) | |
408 | 408 | let newBalanceB = balanceB | |
409 | 409 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
410 | 410 | if (if ((dAppThresholdAmount > newBalanceA)) | |
411 | 411 | then true | |
412 | 412 | else (dAppThresholdAmount > newBalanceB)) | |
413 | 413 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
414 | 414 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kInvariant, invariantCalculated)] | |
415 | 415 | } | |
416 | 416 | } | |
417 | 417 | else throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
418 | 418 | } | |
419 | 419 | else if ((pmtAssetId == assetIdB)) | |
420 | 420 | then { | |
421 | 421 | let virtReplB = (pmtAmount - virtualSwapTokenPay) | |
422 | 422 | let virtReplA = virtualSwapTokenGet | |
423 | 423 | let balanceAfterSwapA = (balanceA - virtualSwapTokenGet) | |
424 | 424 | let balanceAfterSwapB = (balanceB + virtualSwapTokenPay) | |
425 | 425 | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
426 | 426 | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
427 | 427 | if (if ((invariantEstimatedRatio > slippageValueMinForSwap)) | |
428 | 428 | then ((invariantNew - invariant) >= 0) | |
429 | 429 | else false) | |
430 | 430 | then { | |
431 | 431 | let ratioVirtualBalanceToVirtualReplenish = (fraction(balanceAfterSwapA, (scaleValue8 * scaleValue8), balanceAfterSwapB) / fraction(virtReplA, scaleValue8, virtReplB)) | |
432 | 432 | if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
433 | 433 | then true | |
434 | 434 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
435 | 435 | then throw("Ratio after virtual swap incorrect") | |
436 | 436 | else { | |
437 | 437 | let ratioShareTokensInA = fraction(deductStakingFee(virtReplA, assetIdA), scaleValue8, balanceAfterSwapA) | |
438 | 438 | let ratioShareTokensInB = fraction(deductStakingFee(virtReplB, assetIdB), scaleValue8, balanceAfterSwapB) | |
439 | 439 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
440 | 440 | let invariantCalculated = invariantCalc(balanceA, (balanceB + pmtAmount)) | |
441 | 441 | let newBalanceA = balanceA | |
442 | 442 | let newBalanceB = (balanceB + pmtAmount) | |
443 | 443 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
444 | 444 | if (if ((dAppThresholdAmount > newBalanceA)) | |
445 | 445 | then true | |
446 | 446 | else (dAppThresholdAmount > newBalanceB)) | |
447 | 447 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
448 | 448 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalculated)] | |
449 | 449 | } | |
450 | 450 | } | |
451 | 451 | else throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
452 | 452 | } | |
453 | 453 | else throwAssets() | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | ||
458 | 458 | @Callable(i) | |
459 | 459 | func withdraw () = { | |
460 | - | let $ | |
461 | - | let pmtAmount = $ | |
462 | - | let pmtAssetId = $ | |
460 | + | let $t02209722240 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
461 | + | let pmtAmount = $t02209722240._1 | |
462 | + | let pmtAssetId = $t02209722240._2 | |
463 | 463 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
464 | 464 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
465 | 465 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
466 | 466 | if (!(isActive)) | |
467 | 467 | then throwIsInactive() | |
468 | 468 | else if ((size(i.payments) != 1)) | |
469 | 469 | then throw("One attached payment expected") | |
470 | 470 | else if ((pmtAssetId != shareAssetId)) | |
471 | 471 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
472 | 472 | else if (!(hasEnoughBalance)) | |
473 | 473 | then suspendSuspicious() | |
474 | 474 | else if (if ((amountToPayA > availableBalanceA)) | |
475 | 475 | then true | |
476 | 476 | else (amountToPayB > availableBalanceB)) | |
477 | 477 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
478 | 478 | else [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | ||
483 | 483 | @Callable(i) | |
484 | 484 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
485 | - | let $ | |
486 | - | let pmtAmount = $ | |
487 | - | let pmtAssetId = $ | |
485 | + | let $t02352323598 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
486 | + | let pmtAmount = $t02352323598._1 | |
487 | + | let pmtAssetId = $t02352323598._2 | |
488 | 488 | if (if ((exchangeRatioLimitMin > fraction(minAmountToReceive, scaleValue8, pmtAmount))) | |
489 | 489 | then true | |
490 | 490 | else (fraction(estimatedAmountToReceive, scaleValue8, pmtAmount) > exchangeRatioLimitMax)) | |
491 | 491 | then throw("Incorrect args and pmt ratio") | |
492 | 492 | else if (!(isActive)) | |
493 | 493 | then throwIsInactive() | |
494 | 494 | else if ((0 >= estimatedAmountToReceive)) | |
495 | 495 | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
496 | 496 | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
497 | 497 | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
498 | 498 | else if ((size(i.payments) != 1)) | |
499 | 499 | then throw("One attached payment expected") | |
500 | 500 | else if (!(hasEnoughBalance)) | |
501 | 501 | then suspendSuspicious() | |
502 | 502 | else if ((10000000 > pmtAmount)) | |
503 | 503 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
504 | 504 | else if ((pmtAssetId == assetIdA)) | |
505 | 505 | then { | |
506 | 506 | let assetIdSend = assetIdB | |
507 | 507 | let amountWithoutFee = calculateHowManySendB(estimatedAmountToReceive, minAmountToReceive, balanceA, balanceB, pmtAmount) | |
508 | 508 | let amountWithFee = fraction(amountWithoutFee, (feeScaleDelimiter - fee), feeScaleDelimiter) | |
509 | 509 | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScaleDelimiter) | |
510 | 510 | let newBalanceA = (balanceA + pmtAmount) | |
511 | 511 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
512 | 512 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
513 | 513 | if (if ((dAppThresholdAmount > newBalanceA)) | |
514 | 514 | then true | |
515 | 515 | else (dAppThresholdAmount > newBalanceB)) | |
516 | 516 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
517 | 517 | else if (if (if ((assetIdA == USDN)) | |
518 | 518 | then (stakedAmountUSDN >= newBalanceA) | |
519 | 519 | else false) | |
520 | 520 | then true | |
521 | 521 | else if ((assetIdB == USDN)) | |
522 | 522 | then (stakedAmountUSDN >= newBalanceB) | |
523 | 523 | else false) | |
524 | 524 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
525 | 525 | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward))), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(govAddr, governanceReward, assetIdSend)] | |
526 | 526 | } | |
527 | 527 | else if ((pmtAssetId == assetIdB)) | |
528 | 528 | then { | |
529 | 529 | let assetIdSend = assetIdA | |
530 | 530 | let amountWithoutFee = calculateHowManySendA(estimatedAmountToReceive, minAmountToReceive, balanceA, balanceB, pmtAmount) | |
531 | 531 | let amountWithFee = fraction(amountWithoutFee, (feeScaleDelimiter - fee), feeScaleDelimiter) | |
532 | 532 | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScaleDelimiter) | |
533 | 533 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
534 | 534 | let newBalanceB = (balanceB + pmtAmount) | |
535 | 535 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
536 | 536 | if (if ((dAppThresholdAmount > newBalanceA)) | |
537 | 537 | then true | |
538 | 538 | else (dAppThresholdAmount > newBalanceB)) | |
539 | 539 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
540 | 540 | else if (if (if ((assetIdA == USDN)) | |
541 | 541 | then (stakedAmountUSDN >= newBalanceA) | |
542 | 542 | else false) | |
543 | 543 | then true | |
544 | 544 | else if ((assetIdB == USDN)) | |
545 | 545 | then (stakedAmountUSDN >= newBalanceB) | |
546 | 546 | else false) | |
547 | 547 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
548 | 548 | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount))), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(govAddr, governanceReward, assetIdSend)] | |
549 | 549 | } | |
550 | 550 | else throwAssets() | |
551 | 551 | } | |
552 | 552 | ||
553 | 553 | ||
554 | 554 | ||
555 | 555 | @Callable(i) | |
556 | 556 | func shutdown () = if (!(isActive)) | |
557 | 557 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
558 | 558 | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
559 | 559 | then throwOnlyAdmin() | |
560 | 560 | else suspend("Paused by admin") | |
561 | 561 | ||
562 | 562 | ||
563 | 563 | ||
564 | 564 | @Callable(i) | |
565 | 565 | func activate () = if (isActive) | |
566 | 566 | then throwIsActive() | |
567 | 567 | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
568 | 568 | then throwOnlyAdmin() | |
569 | 569 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
570 | 570 | ||
571 | 571 | ||
572 | 572 | ||
573 | 573 | @Callable(i) | |
574 | 574 | func takeIntoAccountExtraFunds (amountLeave) = { | |
575 | 575 | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
576 | 576 | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
577 | 577 | let amountEnrollA = (uncountableA - (if ((assetIdA == USDN)) | |
578 | 578 | then amountLeave | |
579 | 579 | else 0)) | |
580 | 580 | let amountEnrollB = (uncountableB - (if ((assetIdB == USDN)) | |
581 | 581 | then amountLeave | |
582 | 582 | else 0)) | |
583 | 583 | if (!(isActive)) | |
584 | 584 | then throwIsInactive() | |
585 | 585 | else if ((i.caller != this)) | |
586 | 586 | then throwOnlyAdmin() | |
587 | 587 | else if ((0 > amountLeave)) | |
588 | 588 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
589 | 589 | else if (if ((0 > uncountableA)) | |
590 | 590 | then true | |
591 | 591 | else (0 > uncountableB)) | |
592 | 592 | then suspend("Enroll amount negative") | |
593 | 593 | else if (if ((0 > amountEnrollA)) | |
594 | 594 | then true | |
595 | 595 | else (0 > amountEnrollB)) | |
596 | 596 | then throw("Too large amountLeave") | |
597 | 597 | else [IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
598 | 598 | } | |
599 | 599 | ||
600 | 600 |
github/deemru/w8io/169f3d6 68.72 ms ◑