tx · BDWz5N7ntXe63Yugr3RJtRLBKW9UrBz3xR8TB8MQ3Seh 3N8rRK2qY9gks7UiTZbno3oU9ZxHsjf6Nxg: -0.03200000 Waves 2022.09.01 20:39 [2210377] smart account 3N8rRK2qY9gks7UiTZbno3oU9ZxHsjf6Nxg > SELF 0.00000000 Waves
{ "type": 13, "id": "BDWz5N7ntXe63Yugr3RJtRLBKW9UrBz3xR8TB8MQ3Seh", "fee": 3200000, "feeAssetId": null, "timestamp": 1662054011163, "version": 2, "chainId": 84, "sender": "3N8rRK2qY9gks7UiTZbno3oU9ZxHsjf6Nxg", "senderPublicKey": "BGaHqWWh2PA55UDpG3EMuoSRrrPo348kqpXax829kygz", "proofs": [ "3CkTVyWjUiTq4nr7AJ3X4sHSS6S3aa2mCwHsZh6sUCBYd19AG4au2CvLn55gqZdHYJqxbw3sD4hhvhDx19fhi1ZT" ], "script": "base64:BgJiCAISBAoCEQESBQoDCAEEEgQKAgEEEgMKAQESBgoECAgBCBIECgIIARIDCgEREgQKAhEBEgUKAwEICBIECgIIARIFCgMIAQESABIAEgQKAhEEEgQKAgEBEgASABIAEgMKAQFbAAlQUkVDSVNJT04AwIQ9AAVNQVhfQQDAhD0ADE1BWF9BX0NIQU5HRQAKAAhERUNJTUFMUwAGAA1NSU5fUkFNUF9USU1FCQBpAgCAowUAPAAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rU2hhcmVBc3NldElkAg5zaGFyZV9hc3NldF9pZAARa1NoYXJlQXNzZXRTdXBwbHkCEnNoYXJlX2Fzc2V0X3N1cHBseQAEa0ZlZQIKY29tbWlzc2lvbgASa0RBcHBUaHJlc2hvbGRDb2VmAhFkQXBwVGhyZXNob2xkQ29lZgAMa1VTRE5BZGRyZXNzAhhzdGFraW5nX3VzZG5uc2J0X2FkZHJlc3MACmtEaXNj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nlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zT8HInQ==", "height": 2210377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5YdwjdmbsLb2JEDf8wDCL6akoENR8wpxrPuiSRFpuTWC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let PRECISION = 1000000 | |
5 | + | ||
6 | + | let MAX_A = 1000000 | |
7 | + | ||
8 | + | let MAX_A_CHANGE = 10 | |
9 | + | ||
10 | + | let DECIMALS = 6 | |
11 | + | ||
12 | + | let MIN_RAMP_TIME = (86400 / 60) | |
13 | + | ||
14 | + | let kAssets = "asset_ids" | |
15 | + | ||
16 | + | let kAssetBalance = "_balance" | |
17 | + | ||
18 | + | let kActive = "active" | |
19 | + | ||
20 | + | let kCause = "shutdown_cause" | |
21 | + | ||
22 | + | let kShareAssetId = "share_asset_id" | |
23 | + | ||
24 | + | let kShareAssetSupply = "share_asset_supply" | |
25 | + | ||
26 | + | let kFee = "commission" | |
27 | + | ||
28 | + | let kDAppThresholdCoef = "dAppThresholdCoef" | |
29 | + | ||
30 | + | let kUSDNAddress = "staking_usdnnsbt_address" | |
31 | + | ||
32 | + | let kDiscounts = "discounts" | |
33 | + | ||
34 | + | let kDiscountValues = "discount_values" | |
35 | + | ||
36 | + | let kUserSwopInGov = "_SWOP_amount" | |
37 | + | ||
38 | + | let kFirstHarvest = "first_harvest" | |
39 | + | ||
40 | + | let kFirstHarvestHeight = "first_harvest_height" | |
41 | + | ||
42 | + | let kShareLimit = "share_limit_on_first_harvest" | |
43 | + | ||
44 | + | let kBasePeriod = "base_period" | |
45 | + | ||
46 | + | let kPeriodLength = "period_length" | |
47 | + | ||
48 | + | let kStartHeight = "start_height" | |
49 | + | ||
50 | + | let kAdminPubKey1 = "admin_pub_1" | |
51 | + | ||
52 | + | let kAdminPubKey2 = "admin_pub_2" | |
53 | + | ||
54 | + | let kAdminPubKey3 = "admin_pub_3" | |
55 | + | ||
56 | + | let kAdminInvokePubKey = "admin_invoke_pub" | |
57 | + | ||
58 | + | let kMoneyBoxAddress = "money_box_address" | |
59 | + | ||
60 | + | let kGovAddress = "governance_address" | |
61 | + | ||
62 | + | let kVotingAddress = "voting_address" | |
63 | + | ||
64 | + | let kFarmingAddress = "farming_address" | |
65 | + | ||
66 | + | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
67 | + | ||
68 | + | func getBase58FromOracle (key) = match getString(oracle, key) { | |
69 | + | case string: String => | |
70 | + | fromBase58String(string) | |
71 | + | case nothing => | |
72 | + | throw((key + "is empty")) | |
73 | + | } | |
74 | + | ||
75 | + | ||
76 | + | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
77 | + | ||
78 | + | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
79 | + | ||
80 | + | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
81 | + | ||
82 | + | let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey) | |
83 | + | ||
84 | + | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
85 | + | ||
86 | + | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
87 | + | ||
88 | + | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
89 | + | ||
90 | + | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
91 | + | ||
92 | + | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
93 | + | ||
94 | + | let capMoneyBoxAddress = Address(base58'3MxXHaGvmKQHH3kNrPBunhve1sDXf7M5RZt') | |
95 | + | ||
96 | + | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
97 | + | ||
98 | + | let stakingAssets = [toBase58String(USDN)] | |
99 | + | ||
100 | + | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
101 | + | ||
102 | + | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
103 | + | ||
104 | + | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
105 | + | ||
106 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
107 | + | ||
108 | + | let active = getBooleanValue(this, kActive) | |
109 | + | ||
110 | + | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
111 | + | ||
112 | + | let shareSupply = getIntegerValue(this, kShareAssetSupply) | |
113 | + | ||
114 | + | let feeScale6 = 1000000 | |
115 | + | ||
116 | + | let fee = getIntegerValue(this, kFee) | |
117 | + | ||
118 | + | let feeGovernance = fraction(40, feeScale6, 100) | |
119 | + | ||
120 | + | let initial_A = getIntegerValue(this, "initial_A") | |
121 | + | ||
122 | + | let future_A = getIntegerValue(this, "future_A") | |
123 | + | ||
124 | + | let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
125 | + | ||
126 | + | let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0) | |
127 | + | ||
128 | + | let assetIds = split(getStringValue(this, kAssets), ",") | |
129 | + | ||
130 | + | let nCoins = size(assetIds) | |
131 | + | ||
132 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
133 | + | ||
134 | + | ||
135 | + | func throwIsActive () = throw("DApp is already active") | |
136 | + | ||
137 | + | ||
138 | + | func isActive () = if (active) | |
139 | + | then unit | |
140 | + | else throw("DApp is inactive at this moment") | |
141 | + | ||
142 | + | ||
143 | + | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
144 | + | then unit | |
145 | + | else throw("Only admin can call this function") | |
146 | + | ||
147 | + | ||
148 | + | func isSelfCall (i) = if ((this == i.caller)) | |
149 | + | then unit | |
150 | + | else throw("Only contract itself can call this function") | |
151 | + | ||
152 | + | ||
153 | + | let big2 = toBigInt(2) | |
154 | + | ||
155 | + | let blockTimestamp = height | |
156 | + | ||
157 | + | func assert (a) = if (a) | |
158 | + | then false | |
159 | + | else true | |
160 | + | ||
161 | + | ||
162 | + | func calculateFeeDiscount (userAddr) = { | |
163 | + | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
164 | + | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
165 | + | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
166 | + | if (if ((swopAmount >= parseIntValue(discountValues[0]))) | |
167 | + | then (parseIntValue(discountValues[1]) > swopAmount) | |
168 | + | else false) | |
169 | + | then (feeScale6 - parseIntValue(discounts[0])) | |
170 | + | else if (if ((swopAmount >= parseIntValue(discountValues[1]))) | |
171 | + | then (parseIntValue(discountValues[2]) > swopAmount) | |
172 | + | else false) | |
173 | + | then (feeScale6 - parseIntValue(discounts[1])) | |
174 | + | else if (if ((swopAmount >= parseIntValue(discountValues[2]))) | |
175 | + | then (parseIntValue(discountValues[3]) > swopAmount) | |
176 | + | else false) | |
177 | + | then (feeScale6 - parseIntValue(discounts[2])) | |
178 | + | else if (if ((swopAmount >= parseIntValue(discountValues[3]))) | |
179 | + | then (parseIntValue(discountValues[4]) > swopAmount) | |
180 | + | else false) | |
181 | + | then (feeScale6 - parseIntValue(discounts[3])) | |
182 | + | else if ((swopAmount >= parseIntValue(discountValues[4]))) | |
183 | + | then (feeScale6 - parseIntValue(discounts[4])) | |
184 | + | else feeScale6 | |
185 | + | } | |
186 | + | ||
187 | + | ||
188 | + | func _A () = { | |
189 | + | let t1 = future_A_time | |
190 | + | let A1 = future_A | |
191 | + | if ((t1 > blockTimestamp)) | |
192 | + | then { | |
193 | + | let A0 = initial_A | |
194 | + | let t0 = initial_A_time | |
195 | + | if ((A1 > A0)) | |
196 | + | then (A0 + (((A1 - A0) * (blockTimestamp - t0)) / (t1 - t0))) | |
197 | + | else (A0 - (((A0 - A1) * (blockTimestamp - t0)) / (t1 - t0))) | |
198 | + | } | |
199 | + | else A1 | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func _xp () = { | |
204 | + | func assetBalances (acc,assetId) = (acc :+ valueOrElse(getInteger(this, (assetId + kAssetBalance)), 0)) | |
205 | + | ||
206 | + | let $l = assetIds | |
207 | + | let $s = size($l) | |
208 | + | let $acc0 = nil | |
209 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
210 | + | then $a | |
211 | + | else assetBalances($a, $l[$i]) | |
212 | + | ||
213 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
214 | + | then $a | |
215 | + | else throw("List size exceeds 15") | |
216 | + | ||
217 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | func _xp_mem (xp) = xp | |
222 | + | ||
223 | + | ||
224 | + | func sumList (acc,element) = (acc + element) | |
225 | + | ||
226 | + | ||
227 | + | func get_D (xp,amp) = { | |
228 | + | let @ = invoke(this, "D", [xp, amp], nil) | |
229 | + | if ($isInstanceOf(@, "Int")) | |
230 | + | then @ | |
231 | + | else throw(($getType(invoke(this, "D", [xp, amp], nil)) + " couldn't be cast to Int")) | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func get_D_internal (xp,amp) = { | |
236 | + | let S = { | |
237 | + | let $l = xp | |
238 | + | let $s = size($l) | |
239 | + | let $acc0 = 0 | |
240 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
241 | + | then $a | |
242 | + | else sumList($a, $l[$i]) | |
243 | + | ||
244 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
245 | + | then $a | |
246 | + | else throw("List size exceeds 15") | |
247 | + | ||
248 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
249 | + | } | |
250 | + | if ((S == 0)) | |
251 | + | then 0 | |
252 | + | else { | |
253 | + | let Ann = (amp * nCoins) | |
254 | + | let AnnS = (toBigInt(Ann) * toBigInt(S)) | |
255 | + | let Ann1 = toBigInt((Ann - 1)) | |
256 | + | func Dproc (acc,i) = if ((acc._2 == true)) | |
257 | + | then acc | |
258 | + | else { | |
259 | + | let Dprev = acc._1 | |
260 | + | func D_PProc (D_P,i) = if ((nCoins > i)) | |
261 | + | then ((D_P * Dprev) / (toBigInt(xp[i]) * toBigInt(nCoins))) | |
262 | + | else D_P | |
263 | + | ||
264 | + | let D_P = { | |
265 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
266 | + | let $s = size($l) | |
267 | + | let $acc0 = Dprev | |
268 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
269 | + | then $a | |
270 | + | else D_PProc($a, $l[$i]) | |
271 | + | ||
272 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
273 | + | then $a | |
274 | + | else throw("List size exceeds 15") | |
275 | + | ||
276 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
277 | + | } | |
278 | + | let D = fraction((AnnS + (toBigInt(nCoins) * D_P)), Dprev, ((Ann1 * Dprev) + (toBigInt((nCoins + 1)) * D_P))) | |
279 | + | if ((D > Dprev)) | |
280 | + | then if ((1 >= toInt((D - Dprev)))) | |
281 | + | then $Tuple2(D, true) | |
282 | + | else $Tuple2(D, false) | |
283 | + | else if ((1 >= toInt((Dprev - D)))) | |
284 | + | then $Tuple2(D, true) | |
285 | + | else $Tuple2(D, false) | |
286 | + | } | |
287 | + | ||
288 | + | let $t066286740 = { | |
289 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
290 | + | let $s = size($l) | |
291 | + | let $acc0 = $Tuple2(toBigInt(S), false) | |
292 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
293 | + | then $a | |
294 | + | else Dproc($a, $l[$i]) | |
295 | + | ||
296 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
297 | + | then $a | |
298 | + | else throw("List size exceeds 15") | |
299 | + | ||
300 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
301 | + | } | |
302 | + | let D = $t066286740._1 | |
303 | + | let finished = $t066286740._2 | |
304 | + | if ((finished == false)) | |
305 | + | then throw(("get_D() not finished with " + toString(D))) | |
306 | + | else toInt(D) | |
307 | + | } | |
308 | + | } | |
309 | + | ||
310 | + | ||
311 | + | func getDMem (xp,amp) = get_D(_xp_mem(xp), amp) | |
312 | + | ||
313 | + | ||
314 | + | func getY (in,out,x,xp_) = if (assert((in != out))) | |
315 | + | then throw("same coin") | |
316 | + | else if (assert(if ((out >= 0)) | |
317 | + | then (in >= 0) | |
318 | + | else false)) | |
319 | + | then throw("below zero") | |
320 | + | else if (assert(if ((nCoins > out)) | |
321 | + | then (nCoins > in) | |
322 | + | else false)) | |
323 | + | then throw("above N_COINS") | |
324 | + | else { | |
325 | + | let amp = _A() | |
326 | + | let D = get_D(xp_, amp) | |
327 | + | let Ann = (amp * nCoins) | |
328 | + | func S_c (acc,i) = { | |
329 | + | let $t073117328 = acc | |
330 | + | let S_ = $t073117328._1 | |
331 | + | let c = $t073117328._2 | |
332 | + | let x_ = if ((in == i)) | |
333 | + | then x | |
334 | + | else xp_[i] | |
335 | + | if (if ((i != out)) | |
336 | + | then (nCoins > i) | |
337 | + | else false) | |
338 | + | then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins)))) | |
339 | + | else $Tuple2(S_, c) | |
340 | + | } | |
341 | + | ||
342 | + | let $t075367637 = { | |
343 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
344 | + | let $s = size($l) | |
345 | + | let $acc0 = $Tuple2(0, toBigInt(D)) | |
346 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
347 | + | then $a | |
348 | + | else S_c($a, $l[$i]) | |
349 | + | ||
350 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
351 | + | then $a | |
352 | + | else throw("List size exceeds 15") | |
353 | + | ||
354 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
355 | + | } | |
356 | + | let S_ = $t075367637._1 | |
357 | + | let c_ = $t075367637._2 | |
358 | + | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
359 | + | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
360 | + | func y_proc (acc,_i) = if ((acc._2 == true)) | |
361 | + | then acc | |
362 | + | else { | |
363 | + | let y_prev = acc._1 | |
364 | + | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
365 | + | if ((y > y_prev)) | |
366 | + | then if ((1 >= toInt((y - y_prev)))) | |
367 | + | then $Tuple2(y, true) | |
368 | + | else $Tuple2(y, false) | |
369 | + | else if ((1 >= toInt((y_prev - y)))) | |
370 | + | then $Tuple2(y, true) | |
371 | + | else $Tuple2(y, false) | |
372 | + | } | |
373 | + | ||
374 | + | let $t081198236 = { | |
375 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
376 | + | let $s = size($l) | |
377 | + | let $acc0 = $Tuple2(toBigInt(D), false) | |
378 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
379 | + | then $a | |
380 | + | else y_proc($a, $l[$i]) | |
381 | + | ||
382 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
383 | + | then $a | |
384 | + | else throw("List size exceeds 16") | |
385 | + | ||
386 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
387 | + | } | |
388 | + | let y = $t081198236._1 | |
389 | + | let finished = $t081198236._2 | |
390 | + | if ((finished == false)) | |
391 | + | then throw(("getY() not finished with " + toString(y))) | |
392 | + | else toInt(y) | |
393 | + | } | |
394 | + | ||
395 | + | ||
396 | + | func get_y_D (A_,in,xp,D) = if (assert((in >= 0))) | |
397 | + | then throw("i below zero") | |
398 | + | else if (assert((nCoins > in))) | |
399 | + | then throw("i above N_COINS") | |
400 | + | else { | |
401 | + | let Ann = (A_ * nCoins) | |
402 | + | func S_c (acc,i) = { | |
403 | + | let $t086158632 = acc | |
404 | + | let S_ = $t086158632._1 | |
405 | + | let c = $t086158632._2 | |
406 | + | let x_ = if (if ((in != i)) | |
407 | + | then (nCoins > i) | |
408 | + | else false) | |
409 | + | then xp[i] | |
410 | + | else 0 | |
411 | + | if (if ((nCoins > i)) | |
412 | + | then (in != i) | |
413 | + | else false) | |
414 | + | then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins)))) | |
415 | + | else $Tuple2(S_, c) | |
416 | + | } | |
417 | + | ||
418 | + | let $t088528953 = { | |
419 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
420 | + | let $s = size($l) | |
421 | + | let $acc0 = $Tuple2(0, toBigInt(D)) | |
422 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
423 | + | then $a | |
424 | + | else S_c($a, $l[$i]) | |
425 | + | ||
426 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
427 | + | then $a | |
428 | + | else throw("List size exceeds 15") | |
429 | + | ||
430 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
431 | + | } | |
432 | + | let S_ = $t088528953._1 | |
433 | + | let c_ = $t088528953._2 | |
434 | + | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
435 | + | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
436 | + | func y_D_proc (acc,i) = if ((acc._2 == true)) | |
437 | + | then acc | |
438 | + | else { | |
439 | + | let y_prev = acc._1 | |
440 | + | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
441 | + | if ((y > y_prev)) | |
442 | + | then if ((1 >= toInt((y - y_prev)))) | |
443 | + | then $Tuple2(y, true) | |
444 | + | else $Tuple2(y, false) | |
445 | + | else if ((1 >= toInt((y_prev - y)))) | |
446 | + | then $Tuple2(y, true) | |
447 | + | else $Tuple2(y, false) | |
448 | + | } | |
449 | + | ||
450 | + | let $t094369555 = { | |
451 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
452 | + | let $s = size($l) | |
453 | + | let $acc0 = $Tuple2(toBigInt(D), false) | |
454 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
455 | + | then $a | |
456 | + | else y_D_proc($a, $l[$i]) | |
457 | + | ||
458 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
459 | + | then $a | |
460 | + | else throw("List size exceeds 16") | |
461 | + | ||
462 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
463 | + | } | |
464 | + | let y = $t094369555._1 | |
465 | + | let finished = $t094369555._2 | |
466 | + | if ((finished == false)) | |
467 | + | then throw(("get_y_D() not finished with " + toString(y))) | |
468 | + | else toInt(y) | |
469 | + | } | |
470 | + | ||
471 | + | ||
472 | + | func _calcWithdrawOneCoin (xp,_token_amount,i,caller) = { | |
473 | + | let feeDiscount = calculateFeeDiscount(caller) | |
474 | + | let amp = _A() | |
475 | + | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
476 | + | let total_supply = shareSupply | |
477 | + | let D0 = get_D(xp, amp) | |
478 | + | let D1 = (D0 - fraction(_token_amount, D0, total_supply)) | |
479 | + | let new_y = get_y_D(amp, i, xp, D1) | |
480 | + | let dy_0 = (xp[i] - new_y) | |
481 | + | func xp_reduced_proc (acc,xp_j) = { | |
482 | + | let $t01019610225 = acc | |
483 | + | let xp_reduced = $t01019610225._1 | |
484 | + | let index = $t01019610225._2 | |
485 | + | let dx_expected = if ((index == i)) | |
486 | + | then (fraction(xp_j, D1, D0) - new_y) | |
487 | + | else (xp_j - fraction(xp_j, D1, D0)) | |
488 | + | $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1)) | |
489 | + | } | |
490 | + | ||
491 | + | let $t01048710551 = { | |
492 | + | let $l = xp | |
493 | + | let $s = size($l) | |
494 | + | let $acc0 = $Tuple2(nil, 0) | |
495 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
496 | + | then $a | |
497 | + | else xp_reduced_proc($a, $l[$i]) | |
498 | + | ||
499 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
500 | + | then $a | |
501 | + | else throw("List size exceeds 15") | |
502 | + | ||
503 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
504 | + | } | |
505 | + | let xp_reduced = $t01048710551._1 | |
506 | + | let index = $t01048710551._2 | |
507 | + | let xp_reduced_i = xp_reduced[i] | |
508 | + | let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1) | |
509 | + | $Tuple2(dy, (dy_0 - dy)) | |
510 | + | } | |
511 | + | ||
512 | + | ||
513 | + | func getStrAssetId (assetId) = match assetId { | |
514 | + | case id: ByteVector => | |
515 | + | toBase58String(id) | |
516 | + | case waves: Unit => | |
517 | + | "WAVES" | |
518 | + | case _ => | |
519 | + | throw("Match error") | |
520 | + | } | |
521 | + | ||
522 | + | ||
523 | + | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
524 | + | then $Tuple2("lockNeutrino", stakingUSDNAddress) | |
525 | + | else $Tuple2("unlockNeutrino", stakingUSDNAddress) | |
526 | + | ||
527 | + | ||
528 | + | func calcStakingParams (stake,amount,assetId) = if (stake) | |
529 | + | then { | |
530 | + | let $t01111511181 = calcStakingFuncAndAddres(stake, assetId) | |
531 | + | let call = $t01111511181._1 | |
532 | + | let stakingAddr = $t01111511181._2 | |
533 | + | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
534 | + | } | |
535 | + | else { | |
536 | + | let $t01126711333 = calcStakingFuncAndAddres(stake, assetId) | |
537 | + | let call = $t01126711333._1 | |
538 | + | let stakingAddr = $t01126711333._2 | |
539 | + | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
540 | + | } | |
541 | + | ||
542 | + | ||
543 | + | func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
544 | + | then { | |
545 | + | let $t01152011622 = calcStakingParams(true, amount, fromBase58String(assetIdString)) | |
546 | + | let call = $t01152011622._1 | |
547 | + | let addr = $t01152011622._2 | |
548 | + | let params = $t01152011622._3 | |
549 | + | let payments = $t01152011622._4 | |
550 | + | invoke(addr, call, params, payments) | |
551 | + | } | |
552 | + | else 0 | |
553 | + | ||
554 | + | ||
555 | + | func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
556 | + | then { | |
557 | + | let $t01180711910 = calcStakingParams(false, amount, fromBase58String(assetIdString)) | |
558 | + | let call = $t01180711910._1 | |
559 | + | let addr = $t01180711910._2 | |
560 | + | let params = $t01180711910._3 | |
561 | + | let payments = $t01180711910._4 | |
562 | + | invoke(addr, call, params, payments) | |
563 | + | } | |
564 | + | else 0 | |
565 | + | ||
566 | + | ||
567 | + | func stakedAmount (assetId) = { | |
568 | + | let stakedAmountCalculated = match assetId { | |
569 | + | case aId: ByteVector => | |
570 | + | if ((aId == USDN)) | |
571 | + | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
572 | + | else 0 | |
573 | + | case _: Unit => | |
574 | + | 0 | |
575 | + | case _ => | |
576 | + | throw("Match error") | |
577 | + | } | |
578 | + | match stakedAmountCalculated { | |
579 | + | case i: Int => | |
580 | + | i | |
581 | + | case _ => | |
582 | + | 0 | |
583 | + | } | |
584 | + | } | |
585 | + | ||
586 | + | ||
587 | + | func checkSuspicious () = { | |
588 | + | let contractBalances = _xp() | |
589 | + | func checkBalance (acc,assetId) = { | |
590 | + | let $t01252112546 = acc | |
591 | + | let suspicious = $t01252112546._1 | |
592 | + | let i = $t01252112546._2 | |
593 | + | if (suspicious) | |
594 | + | then $Tuple2(suspicious, i) | |
595 | + | else { | |
596 | + | let aBalance = (assetBalance(this, fromBase58String(assetId)) + stakedAmount(fromBase58String(assetId))) | |
597 | + | if ((contractBalances[i] > aBalance)) | |
598 | + | then $Tuple2(true, i) | |
599 | + | else $Tuple2(false, (i + 1)) | |
600 | + | } | |
601 | + | } | |
602 | + | ||
603 | + | let $l = assetIds | |
604 | + | let $s = size($l) | |
605 | + | let $acc0 = $Tuple2(false, 0) | |
606 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
607 | + | then $a | |
608 | + | else checkBalance($a, $l[$i]) | |
609 | + | ||
610 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
611 | + | then $a | |
612 | + | else throw("List size exceeds 15") | |
613 | + | ||
614 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
615 | + | } | |
616 | + | ||
617 | + | ||
618 | + | func suspendSuspicious (i) = suspend(("Suspicious state with asset: " + assetIds[i])) | |
619 | + | ||
620 | + | ||
621 | + | func returnPayments (caller,payments) = { | |
622 | + | func parsePayments (acc,payment) = (acc :+ ScriptTransfer(caller, payment.amount, payment.assetId)) | |
623 | + | ||
624 | + | let $l = payments | |
625 | + | let $s = size($l) | |
626 | + | let $acc0 = nil | |
627 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
628 | + | then $a | |
629 | + | else parsePayments($a, $l[$i]) | |
630 | + | ||
631 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
632 | + | then $a | |
633 | + | else throw("List size exceeds 15") | |
634 | + | ||
635 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
636 | + | } | |
637 | + | ||
638 | + | ||
639 | + | func checkDAppThreshold (newBalances) = { | |
640 | + | let dAppThresholdCoef = valueOrErrorMessage(getInteger(this, kDAppThresholdCoef), "No dAppThresholdCoef key") | |
641 | + | let thresholdScale = 10000 | |
642 | + | let maxBalance = max(newBalances) | |
643 | + | let minBalance = min(newBalances) | |
644 | + | let ratio = fraction(maxBalance, thresholdScale, minBalance) | |
645 | + | if ((ratio > (dAppThresholdCoef * thresholdScale))) | |
646 | + | then throw("New balance in assets of the DApp is less than threshold") | |
647 | + | else false | |
648 | + | } | |
649 | + | ||
650 | + | ||
651 | + | func checkCoins (assetIds) = { | |
652 | + | let coins = split(assetIds, ",") | |
653 | + | func checkCoin (error,assetId) = { | |
654 | + | let asset = valueOrErrorMessage(fromBase58String(assetId), ("fromBase58String: " + assetId)) | |
655 | + | let decimals = valueOrErrorMessage(assetInfo(asset), ("assetInfo: " + assetId)).decimals | |
656 | + | if ((decimals != DECIMALS)) | |
657 | + | then throw("wrong decimals") | |
658 | + | else false | |
659 | + | } | |
660 | + | ||
661 | + | let $l = coins | |
662 | + | let $s = size($l) | |
663 | + | let $acc0 = false | |
664 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
665 | + | then $a | |
666 | + | else checkCoin($a, $l[$i]) | |
667 | + | ||
668 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
669 | + | then $a | |
670 | + | else throw("List size exceeds 15") | |
671 | + | ||
672 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
673 | + | } | |
674 | + | ||
675 | + | ||
676 | + | @Callable(msg) | |
677 | + | func D (xp,amp) = { | |
678 | + | let D = get_D_internal(xp, amp) | |
679 | + | $Tuple2([IntegerEntry("D", D)], D) | |
680 | + | } | |
681 | + | ||
682 | + | ||
683 | + | ||
684 | + | @Callable(msg) | |
685 | + | func init (assetIds,_A,firstHarvest) = if (!(isDataStorageUntouched(this))) | |
686 | + | then throw("Already initialized") | |
687 | + | else { | |
688 | + | let shareName = "s_Multi_USD" | |
689 | + | let shareDescription = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
690 | + | let issueToken = Issue(shareName, shareDescription, 0, 6, true) | |
691 | + | let tokenId = calculateAssetId(issueToken) | |
692 | + | if (checkCoins(assetIds)) | |
693 | + | then throw() | |
694 | + | else { | |
695 | + | let baseEntry = [StringEntry(kAssets, assetIds), IntegerEntry("initial_A", _A), IntegerEntry("future_A", _A), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), StringEntry(kShareAssetId, toBase58String(tokenId)), IntegerEntry(kShareAssetSupply, 0), IntegerEntry(kDAppThresholdCoef, 15), BooleanEntry(kActive, true), issueToken] | |
696 | + | if (firstHarvest) | |
697 | + | then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
698 | + | else baseEntry | |
699 | + | } | |
700 | + | } | |
701 | + | ||
702 | + | ||
703 | + | ||
704 | + | @Callable(msg) | |
705 | + | func addLiquidity (minMintAmount,stakeFarming) = valueOrElse(isActive(), { | |
706 | + | let amp = _A() | |
707 | + | let xp = _xp() | |
708 | + | let D0 = if ((shareSupply == 0)) | |
709 | + | then 0 | |
710 | + | else getDMem(xp, amp) | |
711 | + | let payments = msg.payments | |
712 | + | let paymentsSize = size(payments) | |
713 | + | func validPayments (n) = if ((paymentsSize > nCoins)) | |
714 | + | then throw(("payments size > " + toString(nCoins))) | |
715 | + | else if ((1 > paymentsSize)) | |
716 | + | then throw("payments size < 1") | |
717 | + | else if (if ((shareSupply == 0)) | |
718 | + | then (nCoins != paymentsSize) | |
719 | + | else false) | |
720 | + | then throw("initial deposit requires all coins") | |
721 | + | else { | |
722 | + | func paymantValid (acc,payment) = if (containsElement(assetIds, getStrAssetId(payment.assetId))) | |
723 | + | then true | |
724 | + | else throw("Invalid asset in payment") | |
725 | + | ||
726 | + | let $l = payments | |
727 | + | let $s = size($l) | |
728 | + | let $acc0 = false | |
729 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
730 | + | then $a | |
731 | + | else paymantValid($a, $l[$i]) | |
732 | + | ||
733 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
734 | + | then $a | |
735 | + | else throw("List size exceeds 15") | |
736 | + | ||
737 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
738 | + | } | |
739 | + | ||
740 | + | if (!(validPayments(paymentsSize))) | |
741 | + | then throw() | |
742 | + | else { | |
743 | + | let suspicious = checkSuspicious() | |
744 | + | if (suspicious._1) | |
745 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments)) | |
746 | + | else { | |
747 | + | func parsePayments (acc,assetId) = { | |
748 | + | let $t01663416663 = acc | |
749 | + | let newBalances = $t01663416663._1 | |
750 | + | let i = $t01663416663._2 | |
751 | + | let j = $t01663416663._3 | |
752 | + | if (if ((paymentsSize > j)) | |
753 | + | then (getStrAssetId(payments[j].assetId) == assetId) | |
754 | + | else false) | |
755 | + | then $Tuple3((newBalances :+ (xp[i] + payments[j].amount)), (i + 1), (j + 1)) | |
756 | + | else $Tuple3((newBalances :+ xp[i]), (i + 1), j) | |
757 | + | } | |
758 | + | ||
759 | + | let $t01688316969 = { | |
760 | + | let $l = assetIds | |
761 | + | let $s = size($l) | |
762 | + | let $acc0 = $Tuple3(nil, 0, 0) | |
763 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
764 | + | then $a | |
765 | + | else parsePayments($a, $l[$i]) | |
766 | + | ||
767 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
768 | + | then $a | |
769 | + | else throw("List size exceeds 15") | |
770 | + | ||
771 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
772 | + | } | |
773 | + | let newBalances = $t01688316969._1 | |
774 | + | let k = $t01688316969._2 | |
775 | + | let parsedPayments = $t01688316969._3 | |
776 | + | if ((paymentsSize > parsedPayments)) | |
777 | + | then throw("Incorect payments order") | |
778 | + | else if (checkDAppThreshold(newBalances)) | |
779 | + | then throw() | |
780 | + | else { | |
781 | + | let D1 = getDMem(newBalances, amp) | |
782 | + | if (assert((D1 > D0))) | |
783 | + | then throw("D1 > D0") | |
784 | + | else { | |
785 | + | let feeDiscount = calculateFeeDiscount(msg.caller) | |
786 | + | func calcScriptActions (acc,newBalance) = { | |
787 | + | let $t01737017411 = acc | |
788 | + | let invBalances = $t01737017411._1 | |
789 | + | let scriptActions = $t01737017411._2 | |
790 | + | let i = $t01737017411._3 | |
791 | + | if ((shareSupply > 0)) | |
792 | + | then { | |
793 | + | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
794 | + | let fees = { | |
795 | + | let idealBalance = fraction(D1, xp[i], D0) | |
796 | + | let difference = if ((idealBalance > newBalance)) | |
797 | + | then (idealBalance - newBalance) | |
798 | + | else (newBalance - idealBalance) | |
799 | + | fraction(_fee, difference, feeScale6) | |
800 | + | } | |
801 | + | let governanceFees = fraction(fees, feeGovernance, feeScale6) | |
802 | + | let finalBalance = (newBalance - fees) | |
803 | + | let invariantBalance = (newBalance - fees) | |
804 | + | let pmt = (newBalance - xp[i]) | |
805 | + | let inv = if ((pmt > 0)) | |
806 | + | then stake((pmt - fees), assetIds[i]) | |
807 | + | else unstake(fees, assetIds[i]) | |
808 | + | $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(capMoneyBoxAddress, (fees - governanceFees), fromBase58String(assetIds[i])), ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1)) | |
809 | + | } | |
810 | + | else $Tuple3((invBalances :+ newBalance), (scriptActions :+ IntegerEntry((assetIds[i] + kAssetBalance), newBalance)), (i + 1)) | |
811 | + | } | |
812 | + | ||
813 | + | let $t01887618964 = { | |
814 | + | let $l = newBalances | |
815 | + | let $s = size($l) | |
816 | + | let $acc0 = $Tuple3(nil, nil, 0) | |
817 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
818 | + | then $a | |
819 | + | else calcScriptActions($a, $l[$i]) | |
820 | + | ||
821 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
822 | + | then $a | |
823 | + | else throw("List size exceeds 15") | |
824 | + | ||
825 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
826 | + | } | |
827 | + | let invBalances = $t01887618964._1 | |
828 | + | let scriptActions = $t01887618964._2 | |
829 | + | let D2 = getDMem(invBalances, amp) | |
830 | + | let mint_amount = if ((shareSupply == 0)) | |
831 | + | then D1 | |
832 | + | else fraction(shareSupply, (D2 - D0), D0) | |
833 | + | if (assert((mint_amount >= minMintAmount))) | |
834 | + | then throw("Slippage screwed you") | |
835 | + | else if (stakeFarming) | |
836 | + | then { | |
837 | + | let re = invoke(this, "reissueShare", [mint_amount], nil) | |
838 | + | if ((re == re)) | |
839 | + | then { | |
840 | + | let s = invoke(farmingAddress, "lockShareTokens", [toString(this)], [AttachedPayment(shareAssetId, mint_amount)]) | |
841 | + | if ((s == s)) | |
842 | + | then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))) | |
843 | + | else throw("Strict value is not equal to itself.") | |
844 | + | } | |
845 | + | else throw("Strict value is not equal to itself.") | |
846 | + | } | |
847 | + | else (scriptActions ++ [Reissue(shareAssetId, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))]) | |
848 | + | } | |
849 | + | } | |
850 | + | } | |
851 | + | } | |
852 | + | }) | |
853 | + | ||
854 | + | ||
855 | + | ||
856 | + | @Callable(msg) | |
857 | + | func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)]) | |
858 | + | ||
859 | + | ||
860 | + | ||
861 | + | @Callable(msg) | |
862 | + | func getDy (assetFrom,assetTo,dx,userAddress) = { | |
863 | + | let xp = _xp() | |
864 | + | let fromIndex = valueOrErrorMessage(indexOf(assetIds, assetFrom), "unknown token in") | |
865 | + | let toIndex = valueOrErrorMessage(indexOf(assetIds, assetTo), "unknown token out") | |
866 | + | let x = (xp[fromIndex] + dx) | |
867 | + | let y = getY(fromIndex, toIndex, x, xp) | |
868 | + | let dy = ((xp[toIndex] - y) - 1) | |
869 | + | let feeDiscount = calculateFeeDiscount(Address(fromBase58String(userAddress))) | |
870 | + | let _fee = fraction(fraction(fee, feeDiscount, feeScale6, CEILING), dy, feeScale6) | |
871 | + | $Tuple2(nil, $Tuple2((dy - _fee), _fee)) | |
872 | + | } | |
873 | + | ||
874 | + | ||
875 | + | ||
876 | + | @Callable(msg) | |
877 | + | func exchange (tokenOut,min_dy) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
878 | + | then throw("size(payments) != 1") | |
879 | + | else { | |
880 | + | let suspicious = checkSuspicious() | |
881 | + | if (suspicious._1) | |
882 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
883 | + | else { | |
884 | + | let payment = msg.payments[0] | |
885 | + | let tokenIn = getStrAssetId(payment.assetId) | |
886 | + | let tokenOutB58 = fromBase58String(tokenOut) | |
887 | + | let dx = payment.amount | |
888 | + | let fromIndex = valueOrErrorMessage(indexOf(assetIds, tokenIn), "unknown token in") | |
889 | + | let toIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
890 | + | let xp = _xp() | |
891 | + | let x = (xp[fromIndex] + dx) | |
892 | + | let y = getY(fromIndex, toIndex, x, xp) | |
893 | + | let _dy = ((xp[toIndex] - y) - 1) | |
894 | + | let feeDiscount = calculateFeeDiscount(msg.caller) | |
895 | + | let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6) | |
896 | + | let dy = (_dy - _fee) | |
897 | + | let governanceFees = fraction(_fee, feeGovernance, feeScale6) | |
898 | + | if (assert((dy >= min_dy))) | |
899 | + | then throw("Exchange resulted in fewer coins than expected") | |
900 | + | else { | |
901 | + | func makeNewBalances (acc,tokenBalance) = { | |
902 | + | let $t02167621702 = acc | |
903 | + | let newBalances = $t02167621702._1 | |
904 | + | let i = $t02167621702._2 | |
905 | + | if ((i == fromIndex)) | |
906 | + | then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1)) | |
907 | + | else if ((i == toIndex)) | |
908 | + | then $Tuple2((newBalances :+ (tokenBalance - _dy)), (i + 1)) | |
909 | + | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
910 | + | } | |
911 | + | ||
912 | + | let $t02195322014 = { | |
913 | + | let $l = xp | |
914 | + | let $s = size($l) | |
915 | + | let $acc0 = $Tuple2(nil, 0) | |
916 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
917 | + | then $a | |
918 | + | else makeNewBalances($a, $l[$i]) | |
919 | + | ||
920 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
921 | + | then $a | |
922 | + | else throw("List size exceeds 15") | |
923 | + | ||
924 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
925 | + | } | |
926 | + | let newBalances = $t02195322014._1 | |
927 | + | let i = $t02195322014._2 | |
928 | + | if (checkDAppThreshold(newBalances)) | |
929 | + | then throw() | |
930 | + | else { | |
931 | + | let s = stake(payment.amount, getStrAssetId(payment.assetId)) | |
932 | + | if ((s == s)) | |
933 | + | then { | |
934 | + | let us = unstake(_dy, tokenOut) | |
935 | + | if ((us == us)) | |
936 | + | then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), ScriptTransfer(capMoneyBoxAddress, (_fee - governanceFees), tokenOutB58)], $Tuple2(dy, tokenOutB58)) | |
937 | + | else throw("Strict value is not equal to itself.") | |
938 | + | } | |
939 | + | else throw("Strict value is not equal to itself.") | |
940 | + | } | |
941 | + | } | |
942 | + | } | |
943 | + | }) | |
944 | + | ||
945 | + | ||
946 | + | ||
947 | + | @Callable(msg) | |
948 | + | func withdraw (minAmounts) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
949 | + | then throw("size(payments) != 1") | |
950 | + | else { | |
951 | + | let pmtAmount = msg.payments[0].amount | |
952 | + | let pmtAssetId = msg.payments[0].assetId | |
953 | + | if ((shareAssetId != pmtAssetId)) | |
954 | + | then throw("unknown payment token") | |
955 | + | else { | |
956 | + | let suspicious = checkSuspicious() | |
957 | + | if (suspicious._1) | |
958 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments)) | |
959 | + | else { | |
960 | + | func calcScriptActions (acc,balance) = { | |
961 | + | let $t02315523183 = acc | |
962 | + | let scriptActions = $t02315523183._1 | |
963 | + | let i = $t02315523183._2 | |
964 | + | let wAmount = fraction(balance, pmtAmount, shareSupply) | |
965 | + | if (assert((wAmount >= minAmounts[i]))) | |
966 | + | then throw("Withdrawal resulted in fewer coins than expected") | |
967 | + | else { | |
968 | + | let us = unstake(wAmount, assetIds[i]) | |
969 | + | if ((us == us)) | |
970 | + | then $Tuple2((scriptActions ++ [IntegerEntry((assetIds[i] + kAssetBalance), (balance - wAmount)), ScriptTransfer(msg.originCaller, wAmount, fromBase58String(assetIds[i]))]), (i + 1)) | |
971 | + | else throw("Strict value is not equal to itself.") | |
972 | + | } | |
973 | + | } | |
974 | + | ||
975 | + | let $t02367323741 = { | |
976 | + | let $l = _xp() | |
977 | + | let $s = size($l) | |
978 | + | let $acc0 = $Tuple2(nil, 0) | |
979 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
980 | + | then $a | |
981 | + | else calcScriptActions($a, $l[$i]) | |
982 | + | ||
983 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
984 | + | then $a | |
985 | + | else throw("List size exceeds 15") | |
986 | + | ||
987 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
988 | + | } | |
989 | + | let scriptActions = $t02367323741._1 | |
990 | + | let i = $t02367323741._2 | |
991 | + | (scriptActions ++ [Burn(shareAssetId, pmtAmount), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))]) | |
992 | + | } | |
993 | + | } | |
994 | + | }) | |
995 | + | ||
996 | + | ||
997 | + | ||
998 | + | @Callable(msg) | |
999 | + | func withdrawWithUnlock (minAmounts,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount)) | |
1000 | + | then throw("Unlock amount must be positive") | |
1001 | + | else { | |
1002 | + | let suspicious = checkSuspicious() | |
1003 | + | if (suspicious._1) | |
1004 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
1005 | + | else { | |
1006 | + | let pmtAmount = if ((size(msg.payments) > 0)) | |
1007 | + | then if ((size(msg.payments) != 1)) | |
1008 | + | then throw("size(payments) != 1") | |
1009 | + | else { | |
1010 | + | let pmtAssetId = msg.payments[0].assetId | |
1011 | + | if ((shareAssetId != pmtAssetId)) | |
1012 | + | then throw("unknown payment token") | |
1013 | + | else msg.payments[0].amount | |
1014 | + | } | |
1015 | + | else 0 | |
1016 | + | let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
1017 | + | if ((unlock == unlock)) | |
1018 | + | then { | |
1019 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
1020 | + | let inv = invoke(this, "withdraw", [minAmounts], [AttachedPayment(shareAssetId, withdrawAmount)]) | |
1021 | + | if ((inv == inv)) | |
1022 | + | then nil | |
1023 | + | else throw("Strict value is not equal to itself.") | |
1024 | + | } | |
1025 | + | else throw("Strict value is not equal to itself.") | |
1026 | + | } | |
1027 | + | }) | |
1028 | + | ||
1029 | + | ||
1030 | + | ||
1031 | + | @Callable(msg) | |
1032 | + | func calcWithdrawOneCoin (tokenAmount,tokenOut,user) = { | |
1033 | + | let i = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
1034 | + | $Tuple2(nil, _calcWithdrawOneCoin(_xp(), tokenAmount, i, Address(fromBase58String(user)))._1) | |
1035 | + | } | |
1036 | + | ||
1037 | + | ||
1038 | + | ||
1039 | + | @Callable(msg) | |
1040 | + | func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
1041 | + | then throw("size(payments) != 1") | |
1042 | + | else { | |
1043 | + | let suspicious = checkSuspicious() | |
1044 | + | if (suspicious._1) | |
1045 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments)) | |
1046 | + | else { | |
1047 | + | let pmtAmount = msg.payments[0].amount | |
1048 | + | let pmtAssetId = msg.payments[0].assetId | |
1049 | + | if ((pmtAssetId != shareAssetId)) | |
1050 | + | then throw("unknown token") | |
1051 | + | else { | |
1052 | + | let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
1053 | + | let xp = _xp() | |
1054 | + | let $t02565525737 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller) | |
1055 | + | let dy = $t02565525737._1 | |
1056 | + | let dy_fee = $t02565525737._2 | |
1057 | + | if (assert((dy >= minAmount))) | |
1058 | + | then throw("Not enough coins removed") | |
1059 | + | else { | |
1060 | + | let governanceFees = fraction(dy_fee, feeGovernance, feeScale6) | |
1061 | + | let dy_and_fee = (dy + dy_fee) | |
1062 | + | func makeNewBalances (acc,tokenBalance) = { | |
1063 | + | let $t02599526021 = acc | |
1064 | + | let newBalances = $t02599526021._1 | |
1065 | + | let i = $t02599526021._2 | |
1066 | + | if ((i == outIndex)) | |
1067 | + | then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1)) | |
1068 | + | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
1069 | + | } | |
1070 | + | ||
1071 | + | let $t02618826249 = { | |
1072 | + | let $l = xp | |
1073 | + | let $s = size($l) | |
1074 | + | let $acc0 = $Tuple2(nil, 0) | |
1075 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1076 | + | then $a | |
1077 | + | else makeNewBalances($a, $l[$i]) | |
1078 | + | ||
1079 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1080 | + | then $a | |
1081 | + | else throw("List size exceeds 15") | |
1082 | + | ||
1083 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
1084 | + | } | |
1085 | + | let newBalances = $t02618826249._1 | |
1086 | + | let v = $t02618826249._2 | |
1087 | + | if (checkDAppThreshold(newBalances)) | |
1088 | + | then throw() | |
1089 | + | else { | |
1090 | + | let us = unstake(dy_and_fee, tokenOut) | |
1091 | + | if ((us == us)) | |
1092 | + | then [ScriptTransfer(msg.originCaller, dy, fromBase58String(tokenOut)), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, pmtAmount), ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(tokenOut)), ScriptTransfer(capMoneyBoxAddress, (dy_fee - governanceFees), fromBase58String(tokenOut)), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))] | |
1093 | + | else throw("Strict value is not equal to itself.") | |
1094 | + | } | |
1095 | + | } | |
1096 | + | } | |
1097 | + | } | |
1098 | + | }) | |
1099 | + | ||
1100 | + | ||
1101 | + | ||
1102 | + | @Callable(msg) | |
1103 | + | func withdrawOneCoinWithUnlock (tokenOut,minAmount,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount)) | |
1104 | + | then throw("Unlock amount must be positive") | |
1105 | + | else { | |
1106 | + | let suspicious = checkSuspicious() | |
1107 | + | if (suspicious._1) | |
1108 | + | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
1109 | + | else { | |
1110 | + | let pmtAmount = if ((size(msg.payments) > 0)) | |
1111 | + | then if ((size(msg.payments) != 1)) | |
1112 | + | then throw("size(payments) != 1") | |
1113 | + | else { | |
1114 | + | let pmtAssetId = msg.payments[0].assetId | |
1115 | + | if ((shareAssetId != pmtAssetId)) | |
1116 | + | then throw("unknown payment token") | |
1117 | + | else msg.payments[0].amount | |
1118 | + | } | |
1119 | + | else 0 | |
1120 | + | let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
1121 | + | if ((unlock == unlock)) | |
1122 | + | then { | |
1123 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
1124 | + | let inv = invoke(this, "withdrawOneCoin", [tokenOut, minAmount], [AttachedPayment(shareAssetId, withdrawAmount)]) | |
1125 | + | if ((inv == inv)) | |
1126 | + | then nil | |
1127 | + | else throw("Strict value is not equal to itself.") | |
1128 | + | } | |
1129 | + | else throw("Strict value is not equal to itself.") | |
1130 | + | } | |
1131 | + | }) | |
1132 | + | ||
1133 | + | ||
1134 | + | ||
1135 | + | @Callable(msg) | |
1136 | + | func A () = $Tuple2(nil, _A()) | |
1137 | + | ||
1138 | + | ||
1139 | + | ||
1140 | + | @Callable(msg) | |
1141 | + | func getVirtualPrice () = { | |
1142 | + | let D = get_D(_xp(), _A()) | |
1143 | + | $Tuple2(nil, fraction(D, PRECISION, shareSupply)) | |
1144 | + | } | |
1145 | + | ||
1146 | + | ||
1147 | + | ||
1148 | + | @Callable(msg) | |
1149 | + | func calcTokenAmount (amounts,deposit) = { | |
1150 | + | let amp = _A() | |
1151 | + | let balances = _xp() | |
1152 | + | let D0 = getDMem(balances, amp) | |
1153 | + | func calcNewBalances (acc,balance) = { | |
1154 | + | let $t02817328199 = acc | |
1155 | + | let newBalances = $t02817328199._1 | |
1156 | + | let i = $t02817328199._2 | |
1157 | + | let newBalance = (balance + (if (deposit) | |
1158 | + | then amounts[i] | |
1159 | + | else -(amounts[i]))) | |
1160 | + | $Tuple2((newBalances :+ newBalance), (i + 1)) | |
1161 | + | } | |
1162 | + | ||
1163 | + | let newBalances = ( let $l = balances | |
1164 | + | let $s = size($l) | |
1165 | + | let $acc0 = $Tuple2(nil, 0) | |
1166 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1167 | + | then $a | |
1168 | + | else calcNewBalances($a, $l[$i]) | |
1169 | + | ||
1170 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1171 | + | then $a | |
1172 | + | else throw("List size exceeds 15") | |
1173 | + | ||
1174 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15))._1 | |
1175 | + | let D1 = getDMem(newBalances, amp) | |
1176 | + | let diff = if (deposit) | |
1177 | + | then (D1 - D0) | |
1178 | + | else (D0 - D1) | |
1179 | + | $Tuple2(nil, fraction(diff, shareSupply, D0)) | |
1180 | + | } | |
1181 | + | ||
1182 | + | ||
1183 | + | ||
1184 | + | @Callable(msg) | |
1185 | + | func rampA (_futureA,_futureTime) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), if (assert((blockTimestamp >= (initial_A_time + MIN_RAMP_TIME)))) | |
1186 | + | then throw("too often") | |
1187 | + | else if (assert((_futureTime >= (blockTimestamp + MIN_RAMP_TIME)))) | |
1188 | + | then throw("insufficient time") | |
1189 | + | else { | |
1190 | + | let _initial_A = _A() | |
1191 | + | if (assert(if ((_futureA > 0)) | |
1192 | + | then (MAX_A > _futureA) | |
1193 | + | else false)) | |
1194 | + | then throw("out of base range") | |
1195 | + | else if (assert(if (if ((_futureA >= _initial_A)) | |
1196 | + | then ((_initial_A * MAX_A_CHANGE) >= _futureA) | |
1197 | + | else false) | |
1198 | + | then true | |
1199 | + | else if ((_initial_A > _futureA)) | |
1200 | + | then ((_futureA * MAX_A_CHANGE) >= _initial_A) | |
1201 | + | else false)) | |
1202 | + | then throw("out of range") | |
1203 | + | else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _futureA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", _futureTime)] | |
1204 | + | })) | |
1205 | + | ||
1206 | + | ||
1207 | + | ||
1208 | + | @Callable(msg) | |
1209 | + | func stopRampA () = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), { | |
1210 | + | let currentA = _A() | |
1211 | + | [IntegerEntry("initial_A", currentA), IntegerEntry("future_A", currentA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", blockTimestamp)] | |
1212 | + | })) | |
1213 | + | ||
1214 | + | ||
1215 | + | ||
1216 | + | @Callable(msg) | |
1217 | + | func shutdown () = valueOrElse(isAdminCall(msg), if (!(active)) | |
1218 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
1219 | + | else suspend("Paused by admin")) | |
1220 | + | ||
1221 | + | ||
1222 | + | ||
1223 | + | @Callable(msg) | |
1224 | + | func activate () = valueOrElse(isAdminCall(msg), if (active) | |
1225 | + | then throwIsActive() | |
1226 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
1227 | + | ||
1228 | + | ||
1229 | + | ||
1230 | + | @Callable(msg) | |
1231 | + | func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), [IntegerEntry(kShareLimit, shareLimit)])) | |
1232 | + | ||
1233 | + | ||
1234 | + | @Verifier(tx) | |
1235 | + | func verify () = { | |
1236 | + | let multiSignedByAdmins = { | |
1237 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1238 | + | then 1 | |
1239 | + | else 0 | |
1240 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
1241 | + | then 1 | |
1242 | + | else 0 | |
1243 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
1244 | + | then 1 | |
1245 | + | else 0 | |
1246 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
1247 | + | } | |
1248 | + | match tx { | |
1249 | + | case inv: InvokeScriptTransaction => | |
1250 | + | let callTakeIntoAccount = if ((inv.dApp == this)) | |
1251 | + | then (inv.function == "takeIntoAccountExtraFunds") | |
1252 | + | else false | |
1253 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1254 | + | then true | |
1255 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
1256 | + | then true | |
1257 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
1258 | + | then true | |
1259 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke) | |
1260 | + | if (if (callTakeIntoAccount) | |
1261 | + | then signedByAdmin | |
1262 | + | else false) | |
1263 | + | then true | |
1264 | + | else multiSignedByAdmins | |
1265 | + | case _ => | |
1266 | + | multiSignedByAdmins | |
1267 | + | } | |
1268 | + | } | |
1269 | + |
github/deemru/w8io/169f3d6 60.47 ms ◑