tx · 83dL5PLNHiYYbtmg4XX7zSjNAU1QxiDdfEY4oJXtXUnu 3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt: -0.06000000 Waves 2024.03.26 17:56 [3035163] smart account 3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt > SELF 0.00000000 Waves
{ "type": 13, "id": "83dL5PLNHiYYbtmg4XX7zSjNAU1QxiDdfEY4oJXtXUnu", "fee": 6000000, "feeAssetId": null, "timestamp": 1711463419966, "version": 2, "chainId": 84, "sender": "3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt", "senderPublicKey": "3fNYAZ872D7hsaic3sPDZd5uAk59U5CiWiA153FUZ6Qv", "proofs": [ "C64mEaUFtfKUc2uGvVPLosdXH61uUjbMDfrAr4bWBAdTjpae1iAw2mjtevGeVAGBEbxB5UQdsPUU2V2iei6Howa" ], "script": "base64:BgKMAQgCEhAKDhgYAQEICAEBAQEBCAEIEgMKAQESAwoBARIAEgQKAggBEgQKAggBEgMKAQESBAoCCAESAwoBARIECgIIARIFCgMICAESAwoBCBIAEgASAwoBCBIAEgMKAQESAwoBCBIDCgEIEgQKAgEBEgYKBAEBAQESABIAEgASAwoBCBIECgIIARIDCgEIfwADU0VQAgJfXwAFV0FWRVMCBXdhdmVzAAdNQVhfSU5UAP//////////fwAHTUFYX0ZFRQDAhD0ADU1BWF9BTVBMSUZJRVIAwIQ9ABRNQVhfV0VJR0hUX0FNUExJRklFUgDAhD0ACk1BWF9XRUlHSFQAwIQ9AA9GRUVfUkFURV9GQUNUT1IAwIQ9AAtSQVRFX0ZBQ1RPUgDAhD0ADlBFUkNFTlRfRkFDVE9SCQC2AgEAgICQu7rWrfANABdESVNCQWxBTkNFX0NPRUZGX0ZBQ1RPUgkAtgIBAICglKWNHQAQWkVST19JTlRfTElTVF8xMAkAzAgCAAAJAMwIAgAACQDMCAIAAAkAzAgCAAAJAMwIAgAACQDMCAIAAAkAzAgCAAAJAMwIAgAACQDMCAIAAAkA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bHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAkAoggBBQxLRVlfTVVMVElTSUcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwkAuQkCCQDMCAIFCktFWV9TVEFUVVMJAMwIAgkApQgBBQR0aGlzCQDMCAIJANgEAQgFAnR4AmlkBQNuaWwFA1NFUAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmgPWn4", "height": 3035163, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CCEsjEDyMYAr8p5aAZo8QmCwU1ZwPJ2qmaNDQHfAFARx Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1983 | 1983 | let lpTokensToMint = $t05456954705._4 | |
1984 | 1984 | let lpTokensProfit = $t05456954705._5 | |
1985 | 1985 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1986 | - | $Tuple2((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer( | |
1986 | + | $Tuple2((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(user, (lpTokensToMint + lpTokensProfit), lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalancesUpdated)) ++ removeByIndex(checkpointActions, 0)) ++ _saveUserProfits(user, userProfitsUpdated)), unit) | |
1987 | 1987 | } | |
1988 | 1988 | else throw("Strict value is not equal to itself.") | |
1989 | 1989 | } | |
2043 | 2043 | then { | |
2044 | 2044 | let storage = _loadStorage() | |
2045 | 2045 | let lpTokenSupply = storage._3 | |
2046 | - | let $ | |
2047 | - | let assetBalances = $ | |
2048 | - | let assetTotalSupply = $ | |
2046 | + | let $t05723657296 = _loadAssetBalances() | |
2047 | + | let assetBalances = $t05723657296._1 | |
2048 | + | let assetTotalSupply = $t05723657296._2 | |
2049 | 2049 | let balancesDiff = max([(assetTotalSupply - lpTokenSupply), 0]) | |
2050 | 2050 | let storageUpdated = $Tuple10(storage._1, storage._2, (lpTokenSupply + balancesDiff), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
2051 | 2051 | $Tuple2(_saveStorage(storageUpdated), unit) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let WAVES = "waves" | |
7 | 7 | ||
8 | 8 | let MAX_INT = 9223372036854775807 | |
9 | 9 | ||
10 | 10 | let MAX_FEE = 1000000 | |
11 | 11 | ||
12 | 12 | let MAX_AMPLIFIER = 1000000 | |
13 | 13 | ||
14 | 14 | let MAX_WEIGHT_AMPLIFIER = 1000000 | |
15 | 15 | ||
16 | 16 | let MAX_WEIGHT = 1000000 | |
17 | 17 | ||
18 | 18 | let FEE_RATE_FACTOR = 1000000 | |
19 | 19 | ||
20 | 20 | let RATE_FACTOR = 1000000 | |
21 | 21 | ||
22 | 22 | let PERCENT_FACTOR = toBigInt(1000000000000000000) | |
23 | 23 | ||
24 | 24 | let DISBAlANCE_COEFF_FACTOR = toBigInt(1000000000000) | |
25 | 25 | ||
26 | 26 | let ZERO_INT_LIST_10 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
27 | 27 | ||
28 | 28 | let ZERO_INT_LIST_11 = (ZERO_INT_LIST_10 :+ 0) | |
29 | 29 | ||
30 | 30 | let INDEX_LIST = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
31 | 31 | ||
32 | 32 | let ZERO_BIGINT = toBigInt(0) | |
33 | 33 | ||
34 | 34 | let ZERO_BIGINT_LIST_11 = [ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT] | |
35 | 35 | ||
36 | 36 | let INT_DECIMALS = 8 | |
37 | 37 | ||
38 | 38 | let BIGINT_DECIMALS = 18 | |
39 | 39 | ||
40 | 40 | let LIST_64 = split_51C("0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0", "_") | |
41 | 41 | ||
42 | 42 | let KEY_MULTISIG = "MULTISIG" | |
43 | 43 | ||
44 | 44 | let KEY_STATUS = "STATUS" | |
45 | 45 | ||
46 | 46 | let KEY_PAUSED = "PAUSED" | |
47 | 47 | ||
48 | 48 | let KEY_PAUSER = "PAUSER" | |
49 | 49 | ||
50 | 50 | let KEY_STORAGE = "STORAGE" | |
51 | 51 | ||
52 | 52 | let KEY_ASSETS = "ASSETS" | |
53 | 53 | ||
54 | 54 | let KEY_ASSET_BALANCES = "ASSET_BALANCES" | |
55 | 55 | ||
56 | 56 | let KEY_REWARD_BALANCES = "REWARD_BALANCES" | |
57 | 57 | ||
58 | 58 | let KEY_ASSET_WEIGHTS = "ASSET_WEIGHTS" | |
59 | 59 | ||
60 | 60 | let KEY_LP_FEE = "LP_FEE" | |
61 | 61 | ||
62 | 62 | let KEY_PROTOCOL_FEE = "PROTOCOL_FEE" | |
63 | 63 | ||
64 | 64 | let KEY_PRECISION = "PRECISION" | |
65 | 65 | ||
66 | 66 | let KEY_SIGMA_FEE_PER_LP = "SIGMA_FEE_PER_LP" | |
67 | 67 | ||
68 | 68 | let KEY_USER_SIGMA_FEE_PER_LP = "USER_SIGMA_FEE_PER_LP" | |
69 | 69 | ||
70 | 70 | let KEY_USER_LP = "USER_LP" | |
71 | 71 | ||
72 | 72 | let KEY_TOTAL_LP = "TOTAL_LP" | |
73 | 73 | ||
74 | 74 | let KEY_USER_PROFITS = "USER_PROFITS" | |
75 | 75 | ||
76 | 76 | let KEY_WATCHDOG = "WATCHDOG" | |
77 | 77 | ||
78 | 78 | let KEY_WATCHDOG_OFFSET = "WATCHDOG_OFFSET" | |
79 | 79 | ||
80 | 80 | let KEY_WATCHDOG_HEIGHT = "WATCHDOG_HEIGHT" | |
81 | 81 | ||
82 | 82 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
83 | 83 | case a: Address => | |
84 | 84 | true | |
85 | 85 | case _ => | |
86 | 86 | throw(err_) | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func _validateAsset (assetId_,err_) = if ((assetId_ == WAVES)) | |
91 | 91 | then true | |
92 | 92 | else match assetInfo(fromBase58String(assetId_)) { | |
93 | 93 | case a: Asset => | |
94 | 94 | true | |
95 | 95 | case _ => | |
96 | 96 | throw(err_) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
101 | 101 | then true | |
102 | 102 | else (val_ > upperBoundary_)) | |
103 | 103 | then throw(err_) | |
104 | 104 | else true | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func _validateBool (val_,target_,err_) = if ((val_ != target_)) | |
108 | 108 | then throw(err_) | |
109 | 109 | else true | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func _validateStringEqual (val1_,val2_,err_) = if ((val1_ != val2_)) | |
113 | 113 | then throw(err_) | |
114 | 114 | else true | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func _validateStringNotEq (val1_,val2_,err_) = if ((val1_ == val2_)) | |
118 | 118 | then throw(err_) | |
119 | 119 | else true | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func _validateIntList (val_,lowerBoundary_,upperBoundary_,err_) = { | |
123 | 123 | func foldFunc (acc,elem) = match parseInt(elem) { | |
124 | 124 | case a: Int => | |
125 | 125 | if (acc) | |
126 | 126 | then _validateInt(a, lowerBoundary_, upperBoundary_, err_) | |
127 | 127 | else false | |
128 | 128 | case _ => | |
129 | 129 | throw(err_) | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | let $l = val_ | |
133 | 133 | let $s = size($l) | |
134 | 134 | let $acc0 = true | |
135 | 135 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
136 | 136 | then $a | |
137 | 137 | else foldFunc($a, $l[$i]) | |
138 | 138 | ||
139 | 139 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
140 | 140 | then $a | |
141 | 141 | else throw("List size exceeds 10") | |
142 | 142 | ||
143 | 143 | $f0_2($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) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func _validateAssets (assets_,err_) = { | |
148 | 148 | func foldFunc (acc,elem) = if (acc) | |
149 | 149 | then _validateAsset(elem, err_) | |
150 | 150 | else false | |
151 | 151 | ||
152 | 152 | let $l = assets_ | |
153 | 153 | let $s = size($l) | |
154 | 154 | let $acc0 = true | |
155 | 155 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
156 | 156 | then $a | |
157 | 157 | else foldFunc($a, $l[$i]) | |
158 | 158 | ||
159 | 159 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
160 | 160 | then $a | |
161 | 161 | else throw("List size exceeds 10") | |
162 | 162 | ||
163 | 163 | $f0_2($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) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func _validateIntEquals (val1_,val2_,err_) = if ((val1_ != val2_)) | |
168 | 168 | then throw(err_) | |
169 | 169 | else true | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func _validateTokenName (val_,err_) = if (if ((4 > size(val_))) | |
173 | 173 | then true | |
174 | 174 | else (size(val_) > 16)) | |
175 | 175 | then throw(err_) | |
176 | 176 | else true | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func _validateTokenDescr (val_,err_) = if ((size(val_) > 1000)) | |
180 | 180 | then throw(err_) | |
181 | 181 | else true | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func _validateDecimals (val_,err_) = if (if ((0 > val_)) | |
185 | 185 | then true | |
186 | 186 | else (val_ > 8)) | |
187 | 187 | then throw(err_) | |
188 | 188 | else true | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func _validatePayment (payment_,assetId_,requiredAmount_,err_) = match payment_.assetId { | |
192 | 192 | case a: ByteVector => | |
193 | 193 | if ((assetId_ != toBase58String(a))) | |
194 | 194 | then throw((err_ + ": asset")) | |
195 | 195 | else if ((requiredAmount_ > payment_.amount)) | |
196 | 196 | then throw((err_ + ": amount")) | |
197 | 197 | else true | |
198 | 198 | case _ => | |
199 | 199 | throw((err_ + ": asset")) | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func _validateListContains (list_,val_,err_) = if (!(containsElement(list_, val_))) | |
204 | 204 | then throw(err_) | |
205 | 205 | else true | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func _assetToStr (asset_) = match asset_ { | |
209 | 209 | case a: ByteVector => | |
210 | 210 | toBase58String(a) | |
211 | 211 | case _ => | |
212 | 212 | WAVES | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func _strToAsset (asset_) = if (if ((asset_ == WAVES)) | |
217 | 217 | then true | |
218 | 218 | else (asset_ == "")) | |
219 | 219 | then unit | |
220 | 220 | else fromBase58String(asset_) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func _loadPause () = match getBoolean(KEY_PAUSED) { | |
224 | 224 | case a: Boolean => | |
225 | 225 | a | |
226 | 226 | case _ => | |
227 | 227 | false | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)] | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func _loadPauser () = match getString(KEY_PAUSER) { | |
235 | 235 | case a: String => | |
236 | 236 | addressFromStringValue(a) | |
237 | 237 | case _ => | |
238 | 238 | Address(base58'') | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))] | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
246 | 246 | case a: String => | |
247 | 247 | addressFromStringValue(a) | |
248 | 248 | case _ => | |
249 | 249 | Address(base58'') | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func _loadStorage () = match getString(KEY_STORAGE) { | |
257 | 257 | case a: String => | |
258 | 258 | let struct = split(a, SEP) | |
259 | 259 | $Tuple10(fromBase58String(struct[0]), (struct[1] == "1"), parseIntValue(struct[2]), parseIntValue(struct[3]), parseIntValue(struct[4]), parseIntValue(struct[5]), parseIntValue(struct[6]), parseIntValue(struct[7]), parseIntValue(struct[8]), addressFromStringValue(struct[9])) | |
260 | 260 | case _ => | |
261 | 261 | $Tuple10(base58'', false, 0, 0, 0, 0, 0, 0, 0, Address(base58'')) | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func _saveStorage (storage_) = [StringEntry(KEY_STORAGE, makeString([toBase58String(storage_._1), if (storage_._2) | |
266 | 266 | then "1" | |
267 | 267 | else "0", toString(storage_._3), toString(storage_._4), toString(storage_._5), toString(storage_._6), toString(storage_._7), toString(storage_._8), toString(storage_._9), toString(storage_._10)], SEP))] | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func _loadAssets () = match getString(KEY_ASSETS) { | |
271 | 271 | case a: String => | |
272 | 272 | if ((size(a) > 0)) | |
273 | 273 | then split_51C(a, SEP) | |
274 | 274 | else nil | |
275 | 275 | case _ => | |
276 | 276 | nil | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func _saveAssets (assets_) = [StringEntry(KEY_ASSETS, makeString_11C(assets_, SEP))] | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func _loadAssetBalances () = { | |
284 | 284 | func foldFunc (acc,elem) = { | |
285 | 285 | let balance = parseIntValue(elem) | |
286 | 286 | $Tuple2((acc._1 :+ balance), (acc._2 + balance)) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | match getString(KEY_ASSET_BALANCES) { | |
290 | 290 | case a: String => | |
291 | 291 | if ((size(a) > 0)) | |
292 | 292 | then { | |
293 | 293 | let $l = split_51C(a, SEP) | |
294 | 294 | let $s = size($l) | |
295 | 295 | let $acc0 = $Tuple2(nil, 0) | |
296 | 296 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
297 | 297 | then $a | |
298 | 298 | else foldFunc($a, $l[$i]) | |
299 | 299 | ||
300 | 300 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
301 | 301 | then $a | |
302 | 302 | else throw("List size exceeds 10") | |
303 | 303 | ||
304 | 304 | $f0_2($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) | |
305 | 305 | } | |
306 | 306 | else $Tuple2(ZERO_INT_LIST_10, 0) | |
307 | 307 | case _ => | |
308 | 308 | $Tuple2(ZERO_INT_LIST_10, 0) | |
309 | 309 | } | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func _saveAssetBalances (balances_) = { | |
314 | 314 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
315 | 315 | ||
316 | 316 | [StringEntry(KEY_ASSET_BALANCES, makeString_11C({ | |
317 | 317 | let $l = balances_ | |
318 | 318 | let $s = size($l) | |
319 | 319 | let $acc0 = nil | |
320 | 320 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
321 | 321 | then $a | |
322 | 322 | else foldFunc($a, $l[$i]) | |
323 | 323 | ||
324 | 324 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
325 | 325 | then $a | |
326 | 326 | else throw("List size exceeds 10") | |
327 | 327 | ||
328 | 328 | $f0_2($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) | |
329 | 329 | }, SEP))] | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | func _loadRewardBalances () = { | |
334 | 334 | func foldFunc (acc,elem) = { | |
335 | 335 | let balance = parseIntValue(elem) | |
336 | 336 | (acc :+ balance) | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | match getString(KEY_REWARD_BALANCES) { | |
340 | 340 | case a: String => | |
341 | 341 | if ((size(a) > 0)) | |
342 | 342 | then { | |
343 | 343 | let $l = split_51C(a, SEP) | |
344 | 344 | let $s = size($l) | |
345 | 345 | let $acc0 = nil | |
346 | 346 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
347 | 347 | then $a | |
348 | 348 | else foldFunc($a, $l[$i]) | |
349 | 349 | ||
350 | 350 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
351 | 351 | then $a | |
352 | 352 | else throw("List size exceeds 10") | |
353 | 353 | ||
354 | 354 | $f0_2($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) | |
355 | 355 | } | |
356 | 356 | else ZERO_INT_LIST_10 | |
357 | 357 | case _ => | |
358 | 358 | ZERO_INT_LIST_10 | |
359 | 359 | } | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func _saveRewardBalances (balances_) = { | |
364 | 364 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
365 | 365 | ||
366 | 366 | [StringEntry(KEY_REWARD_BALANCES, makeString_11C({ | |
367 | 367 | let $l = balances_ | |
368 | 368 | let $s = size($l) | |
369 | 369 | let $acc0 = nil | |
370 | 370 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
371 | 371 | then $a | |
372 | 372 | else foldFunc($a, $l[$i]) | |
373 | 373 | ||
374 | 374 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
375 | 375 | then $a | |
376 | 376 | else throw("List size exceeds 10") | |
377 | 377 | ||
378 | 378 | $f0_2($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) | |
379 | 379 | }, SEP))] | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | func _loadAssetWeights () = { | |
384 | 384 | func foldFunc (acc,elem) = { | |
385 | 385 | let weight = parseIntValue(elem) | |
386 | 386 | $Tuple2((acc._1 :+ weight), (acc._2 + weight)) | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | match getString(KEY_ASSET_WEIGHTS) { | |
390 | 390 | case a: String => | |
391 | 391 | if ((size(a) > 0)) | |
392 | 392 | then { | |
393 | 393 | let $l = split_51C(a, SEP) | |
394 | 394 | let $s = size($l) | |
395 | 395 | let $acc0 = $Tuple2(nil, 0) | |
396 | 396 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
397 | 397 | then $a | |
398 | 398 | else foldFunc($a, $l[$i]) | |
399 | 399 | ||
400 | 400 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
401 | 401 | then $a | |
402 | 402 | else throw("List size exceeds 10") | |
403 | 403 | ||
404 | 404 | $f0_2($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) | |
405 | 405 | } | |
406 | 406 | else $Tuple2(ZERO_INT_LIST_10, 0) | |
407 | 407 | case _ => | |
408 | 408 | $Tuple2(ZERO_INT_LIST_10, 0) | |
409 | 409 | } | |
410 | 410 | } | |
411 | 411 | ||
412 | 412 | ||
413 | 413 | func _saveAssetWeights (weights_) = { | |
414 | 414 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
415 | 415 | ||
416 | 416 | [StringEntry(KEY_ASSET_WEIGHTS, makeString_11C({ | |
417 | 417 | let $l = weights_ | |
418 | 418 | let $s = size($l) | |
419 | 419 | let $acc0 = nil | |
420 | 420 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
421 | 421 | then $a | |
422 | 422 | else foldFunc($a, $l[$i]) | |
423 | 423 | ||
424 | 424 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
425 | 425 | then $a | |
426 | 426 | else throw("List size exceeds 10") | |
427 | 427 | ||
428 | 428 | $f0_2($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) | |
429 | 429 | }, SEP))] | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func _loadLpFee (assetId_) = match getInteger(makeString([KEY_LP_FEE, assetId_], SEP)) { | |
434 | 434 | case a: Int => | |
435 | 435 | a | |
436 | 436 | case _ => | |
437 | 437 | 0 | |
438 | 438 | } | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | func _saveLpFee (assetId_,val_) = [IntegerEntry(makeString([KEY_LP_FEE, assetId_], SEP), val_)] | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | func _loadProtocolFee (assetId_) = match getInteger(makeString([KEY_PROTOCOL_FEE, assetId_], SEP)) { | |
445 | 445 | case a: Int => | |
446 | 446 | a | |
447 | 447 | case _ => | |
448 | 448 | 0 | |
449 | 449 | } | |
450 | 450 | ||
451 | 451 | ||
452 | 452 | func _saveProtocolFee (assetId_,val_) = [IntegerEntry(makeString([KEY_PROTOCOL_FEE, assetId_], SEP), val_)] | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func _loadPrecision () = match getInteger(KEY_PRECISION) { | |
456 | 456 | case a: Int => | |
457 | 457 | a | |
458 | 458 | case _ => | |
459 | 459 | 0 | |
460 | 460 | } | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | func _savePrecision (val_) = [IntegerEntry(KEY_PRECISION, val_)] | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | func _loadSigmaFeePerLp () = { | |
467 | 467 | func foldFunc (acc,elem) = (acc :+ parseBigIntValue(elem)) | |
468 | 468 | ||
469 | 469 | match getString(KEY_SIGMA_FEE_PER_LP) { | |
470 | 470 | case a: String => | |
471 | 471 | if ((size(a) > 0)) | |
472 | 472 | then { | |
473 | 473 | let $l = split_51C(a, SEP) | |
474 | 474 | let $s = size($l) | |
475 | 475 | let $acc0 = nil | |
476 | 476 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
477 | 477 | then $a | |
478 | 478 | else foldFunc($a, $l[$i]) | |
479 | 479 | ||
480 | 480 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
481 | 481 | then $a | |
482 | 482 | else throw("List size exceeds 11") | |
483 | 483 | ||
484 | 484 | $f0_2($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) | |
485 | 485 | } | |
486 | 486 | else ZERO_BIGINT_LIST_11 | |
487 | 487 | case _ => | |
488 | 488 | ZERO_BIGINT_LIST_11 | |
489 | 489 | } | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | func _saveSigmaFeePerLp (val_) = { | |
494 | 494 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
495 | 495 | ||
496 | 496 | [StringEntry(KEY_SIGMA_FEE_PER_LP, makeString_11C({ | |
497 | 497 | let $l = val_ | |
498 | 498 | let $s = size($l) | |
499 | 499 | let $acc0 = nil | |
500 | 500 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
501 | 501 | then $a | |
502 | 502 | else foldFunc($a, $l[$i]) | |
503 | 503 | ||
504 | 504 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
505 | 505 | then $a | |
506 | 506 | else throw("List size exceeds 11") | |
507 | 507 | ||
508 | 508 | $f0_2($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) | |
509 | 509 | }, SEP))] | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | func _loadUserSigmaFeePerLp (user_) = { | |
514 | 514 | func foldFunc (acc,elem) = (acc :+ parseBigIntValue(elem)) | |
515 | 515 | ||
516 | 516 | match getString(makeString([KEY_USER_SIGMA_FEE_PER_LP, toString(user_)], SEP)) { | |
517 | 517 | case a: String => | |
518 | 518 | if ((size(a) > 0)) | |
519 | 519 | then { | |
520 | 520 | let $l = split_51C(a, SEP) | |
521 | 521 | let $s = size($l) | |
522 | 522 | let $acc0 = nil | |
523 | 523 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
524 | 524 | then $a | |
525 | 525 | else foldFunc($a, $l[$i]) | |
526 | 526 | ||
527 | 527 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
528 | 528 | then $a | |
529 | 529 | else throw("List size exceeds 11") | |
530 | 530 | ||
531 | 531 | $f0_2($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) | |
532 | 532 | } | |
533 | 533 | else ZERO_BIGINT_LIST_11 | |
534 | 534 | case _ => | |
535 | 535 | ZERO_BIGINT_LIST_11 | |
536 | 536 | } | |
537 | 537 | } | |
538 | 538 | ||
539 | 539 | ||
540 | 540 | func _saveUserSigmaFeePerLp (user_,val_) = { | |
541 | 541 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
542 | 542 | ||
543 | 543 | [StringEntry(makeString([KEY_USER_SIGMA_FEE_PER_LP, toString(user_)], SEP), makeString_11C({ | |
544 | 544 | let $l = val_ | |
545 | 545 | let $s = size($l) | |
546 | 546 | let $acc0 = nil | |
547 | 547 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
548 | 548 | then $a | |
549 | 549 | else foldFunc($a, $l[$i]) | |
550 | 550 | ||
551 | 551 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
552 | 552 | then $a | |
553 | 553 | else throw("List size exceeds 11") | |
554 | 554 | ||
555 | 555 | $f0_2($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) | |
556 | 556 | }, SEP))] | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func _loadUserLp (address_) = match getInteger(makeString([KEY_USER_LP, toString(address_)], SEP)) { | |
561 | 561 | case a: Int => | |
562 | 562 | a | |
563 | 563 | case _ => | |
564 | 564 | 0 | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | ||
568 | 568 | func _saveUserLp (address_,val_) = [IntegerEntry(makeString([KEY_USER_LP, toString(address_)], SEP), val_)] | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | func _loadTotalLp () = match getInteger(KEY_TOTAL_LP) { | |
572 | 572 | case a: Int => | |
573 | 573 | a | |
574 | 574 | case _ => | |
575 | 575 | 0 | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | func _saveTotalLp (val_) = [IntegerEntry(KEY_TOTAL_LP, val_)] | |
580 | 580 | ||
581 | 581 | ||
582 | 582 | func _loadUserProfits (user_) = { | |
583 | 583 | func foldFunc (acc,elem) = (acc :+ parseIntValue(elem)) | |
584 | 584 | ||
585 | 585 | match getString(makeString([KEY_USER_PROFITS, toString(user_)], SEP)) { | |
586 | 586 | case a: String => | |
587 | 587 | if ((size(a) > 0)) | |
588 | 588 | then { | |
589 | 589 | let $l = split_51C(a, SEP) | |
590 | 590 | let $s = size($l) | |
591 | 591 | let $acc0 = nil | |
592 | 592 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
593 | 593 | then $a | |
594 | 594 | else foldFunc($a, $l[$i]) | |
595 | 595 | ||
596 | 596 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
597 | 597 | then $a | |
598 | 598 | else throw("List size exceeds 11") | |
599 | 599 | ||
600 | 600 | $f0_2($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) | |
601 | 601 | } | |
602 | 602 | else ZERO_INT_LIST_11 | |
603 | 603 | case _ => | |
604 | 604 | ZERO_INT_LIST_11 | |
605 | 605 | } | |
606 | 606 | } | |
607 | 607 | ||
608 | 608 | ||
609 | 609 | func _saveUserProfits (user_,val_) = { | |
610 | 610 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
611 | 611 | ||
612 | 612 | [StringEntry(makeString([KEY_USER_PROFITS, toString(user_)], SEP), makeString_11C({ | |
613 | 613 | let $l = val_ | |
614 | 614 | let $s = size($l) | |
615 | 615 | let $acc0 = nil | |
616 | 616 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
617 | 617 | then $a | |
618 | 618 | else foldFunc($a, $l[$i]) | |
619 | 619 | ||
620 | 620 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
621 | 621 | then $a | |
622 | 622 | else throw("List size exceeds 11") | |
623 | 623 | ||
624 | 624 | $f0_2($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) | |
625 | 625 | }, SEP))] | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | ||
629 | 629 | func _loadWatchdog () = match getString(KEY_WATCHDOG) { | |
630 | 630 | case a: String => | |
631 | 631 | addressFromStringValue(a) | |
632 | 632 | case _ => | |
633 | 633 | Address(base58'') | |
634 | 634 | } | |
635 | 635 | ||
636 | 636 | ||
637 | 637 | func _saveWatchdog (watchdog_) = [StringEntry(KEY_WATCHDOG, toString(watchdog_))] | |
638 | 638 | ||
639 | 639 | ||
640 | 640 | func _loadWatchdogOffset () = match getInteger(KEY_WATCHDOG_OFFSET) { | |
641 | 641 | case a: Int => | |
642 | 642 | a | |
643 | 643 | case _ => | |
644 | 644 | 0 | |
645 | 645 | } | |
646 | 646 | ||
647 | 647 | ||
648 | 648 | func _saveWatchdogOffset (offset_) = [IntegerEntry(KEY_WATCHDOG_OFFSET, offset_)] | |
649 | 649 | ||
650 | 650 | ||
651 | 651 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
652 | 652 | then throw("_onlyThisContract: revert") | |
653 | 653 | else true | |
654 | 654 | ||
655 | 655 | ||
656 | 656 | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
657 | 657 | then throw("_whenMultisigSet: revert") | |
658 | 658 | else true | |
659 | 659 | ||
660 | 660 | ||
661 | 661 | func _whenNotInitialized () = { | |
662 | 662 | let storage = _loadStorage() | |
663 | 663 | if ((storage._1 != base58'')) | |
664 | 664 | then throw("_whenNotInitialized: revert") | |
665 | 665 | else true | |
666 | 666 | } | |
667 | 667 | ||
668 | 668 | ||
669 | 669 | func _whenInitialized () = { | |
670 | 670 | let storage = _loadStorage() | |
671 | 671 | if ((storage._1 == base58'')) | |
672 | 672 | then throw("_whenInitialized: revert") | |
673 | 673 | else true | |
674 | 674 | } | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | func _whenNotPaused () = if (_loadPause()) | |
678 | 678 | then throw("_whenNotPaused: revert") | |
679 | 679 | else true | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | func _whenPaused () = if (!(_loadPause())) | |
683 | 683 | then throw("_whenPaused: revert") | |
684 | 684 | else true | |
685 | 685 | ||
686 | 686 | ||
687 | 687 | func _onlyPauser (caller_) = if ((caller_ != _loadPauser())) | |
688 | 688 | then throw("_onlyPauser: revert") | |
689 | 689 | else true | |
690 | 690 | ||
691 | 691 | ||
692 | 692 | func _checkWatchdog () = { | |
693 | 693 | let wd = match getInteger(_loadWatchdog(), KEY_WATCHDOG_HEIGHT) { | |
694 | 694 | case a: Int => | |
695 | 695 | (a + _loadWatchdogOffset()) | |
696 | 696 | case _ => | |
697 | 697 | 0 | |
698 | 698 | } | |
699 | 699 | if ((height > wd)) | |
700 | 700 | then throw("_checkWatchdog: revert") | |
701 | 701 | else true | |
702 | 702 | } | |
703 | 703 | ||
704 | 704 | ||
705 | 705 | func _getDecimals (assetId_) = match assetInfo(fromBase58String(assetId_)) { | |
706 | 706 | case a: Asset => | |
707 | 707 | a.decimals | |
708 | 708 | case _ => | |
709 | 709 | throw(("_getDecimals: no asset=" + assetId_)) | |
710 | 710 | } | |
711 | 711 | ||
712 | 712 | ||
713 | 713 | func _normalizeDecimals (amount_,sourceDecimals_,targetDecimals_,round_) = if ((sourceDecimals_ >= targetDecimals_)) | |
714 | 714 | then fraction(amount_, 1, pow(10, 0, (sourceDecimals_ - targetDecimals_), 0, 0, DOWN), round_) | |
715 | 715 | else (amount_ * pow(10, 0, (targetDecimals_ - sourceDecimals_), 0, 0, DOWN)) | |
716 | 716 | ||
717 | 717 | ||
718 | 718 | func _prepareAssetBalances (assets_) = { | |
719 | 719 | func foldFunc (acc,elem) = (acc :+ 0) | |
720 | 720 | ||
721 | 721 | let $l = assets_ | |
722 | 722 | let $s = size($l) | |
723 | 723 | let $acc0 = nil | |
724 | 724 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
725 | 725 | then $a | |
726 | 726 | else foldFunc($a, $l[$i]) | |
727 | 727 | ||
728 | 728 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
729 | 729 | then $a | |
730 | 730 | else throw("List size exceeds 10") | |
731 | 731 | ||
732 | 732 | $f0_2($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) | |
733 | 733 | } | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | func _prepareAssetWeights (assetWeights_) = { | |
737 | 737 | func foldFunc (acc,elem) = { | |
738 | 738 | let weight = parseIntValue(elem) | |
739 | 739 | $Tuple2((acc._1 :+ weight), (acc._2 + weight)) | |
740 | 740 | } | |
741 | 741 | ||
742 | 742 | let $l = assetWeights_ | |
743 | 743 | let $s = size($l) | |
744 | 744 | let $acc0 = $Tuple2(nil, 0) | |
745 | 745 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
746 | 746 | then $a | |
747 | 747 | else foldFunc($a, $l[$i]) | |
748 | 748 | ||
749 | 749 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
750 | 750 | then $a | |
751 | 751 | else throw("List size exceeds 10") | |
752 | 752 | ||
753 | 753 | $f0_2($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) | |
754 | 754 | } | |
755 | 755 | ||
756 | 756 | ||
757 | 757 | func _getAssetBalances (assets_,decimals_) = { | |
758 | 758 | func foldFunc (acc,elem) = { | |
759 | 759 | let assetDecimals = _getDecimals(elem) | |
760 | 760 | let balance = _normalizeDecimals(assetBalance(this, fromBase58String(elem)), assetDecimals, decimals_, DOWN) | |
761 | 761 | $Tuple2((acc._1 :+ balance), (acc._2 + balance)) | |
762 | 762 | } | |
763 | 763 | ||
764 | 764 | let $l = assets_ | |
765 | 765 | let $s = size($l) | |
766 | 766 | let $acc0 = $Tuple2(nil, 0) | |
767 | 767 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
768 | 768 | then $a | |
769 | 769 | else foldFunc($a, $l[$i]) | |
770 | 770 | ||
771 | 771 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
772 | 772 | then $a | |
773 | 773 | else throw("List size exceeds 10") | |
774 | 774 | ||
775 | 775 | $f0_2($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) | |
776 | 776 | } | |
777 | 777 | ||
778 | 778 | ||
779 | 779 | func _listIntToString (assets_) = { | |
780 | 780 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
781 | 781 | ||
782 | 782 | makeString({ | |
783 | 783 | let $l = assets_ | |
784 | 784 | let $s = size($l) | |
785 | 785 | let $acc0 = nil | |
786 | 786 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
787 | 787 | then $a | |
788 | 788 | else foldFunc($a, $l[$i]) | |
789 | 789 | ||
790 | 790 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
791 | 791 | then $a | |
792 | 792 | else throw("List size exceeds 11") | |
793 | 793 | ||
794 | 794 | $f0_2($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) | |
795 | 795 | }, SEP) | |
796 | 796 | } | |
797 | 797 | ||
798 | 798 | ||
799 | 799 | func _listBigIntToString (assets_) = { | |
800 | 800 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
801 | 801 | ||
802 | 802 | makeString({ | |
803 | 803 | let $l = assets_ | |
804 | 804 | let $s = size($l) | |
805 | 805 | let $acc0 = nil | |
806 | 806 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
807 | 807 | then $a | |
808 | 808 | else foldFunc($a, $l[$i]) | |
809 | 809 | ||
810 | 810 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
811 | 811 | then $a | |
812 | 812 | else throw("List size exceeds 11") | |
813 | 813 | ||
814 | 814 | $f0_2($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) | |
815 | 815 | }, SEP) | |
816 | 816 | } | |
817 | 817 | ||
818 | 818 | ||
819 | 819 | func _getEquilibriums (sigmaBalances_,weights_,sigmaWeight_) = { | |
820 | 820 | func foldFunc (acc,elem) = (acc :+ fraction(sigmaBalances_, elem, sigmaWeight_)) | |
821 | 821 | ||
822 | 822 | let $l = weights_ | |
823 | 823 | let $s = size($l) | |
824 | 824 | let $acc0 = nil | |
825 | 825 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
826 | 826 | then $a | |
827 | 827 | else foldFunc($a, $l[$i]) | |
828 | 828 | ||
829 | 829 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
830 | 830 | then $a | |
831 | 831 | else throw("List size exceeds 10") | |
832 | 832 | ||
833 | 833 | $f0_2($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) | |
834 | 834 | } | |
835 | 835 | ||
836 | 836 | ||
837 | 837 | func _incrementBalancesByAmounts (balances_,amounts_) = { | |
838 | 838 | func foldFunc (acc,elem) = { | |
839 | 839 | let index = acc._1 | |
840 | 840 | let amount = amounts_[index] | |
841 | 841 | let newBalance = (elem + amount) | |
842 | 842 | $Tuple3((index + 1), (acc._2 :+ newBalance), (acc._3 + newBalance)) | |
843 | 843 | } | |
844 | 844 | ||
845 | 845 | let result = { | |
846 | 846 | let $l = balances_ | |
847 | 847 | let $s = size($l) | |
848 | 848 | let $acc0 = $Tuple3(0, nil, 0) | |
849 | 849 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
850 | 850 | then $a | |
851 | 851 | else foldFunc($a, $l[$i]) | |
852 | 852 | ||
853 | 853 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
854 | 854 | then $a | |
855 | 855 | else throw("List size exceeds 10") | |
856 | 856 | ||
857 | 857 | $f0_2($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) | |
858 | 858 | } | |
859 | 859 | $Tuple2(result._2, result._3) | |
860 | 860 | } | |
861 | 861 | ||
862 | 862 | ||
863 | 863 | func _incrementBalancesByPayments (balances_,payments_,assets_,decimals_,err_) = { | |
864 | 864 | func foldFunc (acc,elem) = { | |
865 | 865 | let index = acc._1 | |
866 | 866 | let payment = payments_[index] | |
867 | 867 | let paymentAssetStr = _assetToStr(payment.assetId) | |
868 | 868 | let err = if ((paymentAssetStr != assets_[index])) | |
869 | 869 | then throw(((err_ + ": index=") + toString(index))) | |
870 | 870 | else unit | |
871 | 871 | if ((err == err)) | |
872 | 872 | then { | |
873 | 873 | let assetDecimals = _getDecimals(paymentAssetStr) | |
874 | 874 | let newBalance = (elem + _normalizeDecimals(payments_[index].amount, assetDecimals, decimals_, DOWN)) | |
875 | 875 | $Tuple3((index + 1), (acc._2 :+ newBalance), (acc._3 + newBalance)) | |
876 | 876 | } | |
877 | 877 | else throw("Strict value is not equal to itself.") | |
878 | 878 | } | |
879 | 879 | ||
880 | 880 | let result = { | |
881 | 881 | let $l = balances_ | |
882 | 882 | let $s = size($l) | |
883 | 883 | let $acc0 = $Tuple3(0, nil, 0) | |
884 | 884 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
885 | 885 | then $a | |
886 | 886 | else foldFunc($a, $l[$i]) | |
887 | 887 | ||
888 | 888 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
889 | 889 | then $a | |
890 | 890 | else throw("List size exceeds 10") | |
891 | 891 | ||
892 | 892 | $f0_2($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) | |
893 | 893 | } | |
894 | 894 | $Tuple2(result._2, result._3) | |
895 | 895 | } | |
896 | 896 | ||
897 | 897 | ||
898 | 898 | func _incrementBalanceByIndex (balances_,index_,amount_) = { | |
899 | 899 | func foldFunc (acc,elem) = { | |
900 | 900 | let index = acc._1 | |
901 | 901 | if ((index == index_)) | |
902 | 902 | then $Tuple2((index + 1), (acc._2 :+ (elem + amount_))) | |
903 | 903 | else $Tuple2((index + 1), (acc._2 :+ elem)) | |
904 | 904 | } | |
905 | 905 | ||
906 | 906 | let result = { | |
907 | 907 | let $l = balances_ | |
908 | 908 | let $s = size($l) | |
909 | 909 | let $acc0 = $Tuple2(0, nil) | |
910 | 910 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
911 | 911 | then $a | |
912 | 912 | else foldFunc($a, $l[$i]) | |
913 | 913 | ||
914 | 914 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
915 | 915 | then $a | |
916 | 916 | else throw("List size exceeds 10") | |
917 | 917 | ||
918 | 918 | $f0_2($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) | |
919 | 919 | } | |
920 | 920 | result._2 | |
921 | 921 | } | |
922 | 922 | ||
923 | 923 | ||
924 | 924 | func _decrementBalanceByIndex (balances_,index_,amount_) = { | |
925 | 925 | func foldFunc (acc,elem) = { | |
926 | 926 | let index = acc._1 | |
927 | 927 | if (if ((index == index_)) | |
928 | 928 | then (amount_ > elem) | |
929 | 929 | else false) | |
930 | 930 | then throw("insufficient balance") | |
931 | 931 | else if (if ((index == index_)) | |
932 | 932 | then (elem >= amount_) | |
933 | 933 | else false) | |
934 | 934 | then $Tuple2((index + 1), (acc._2 :+ (elem - amount_))) | |
935 | 935 | else $Tuple2((index + 1), (acc._2 :+ elem)) | |
936 | 936 | } | |
937 | 937 | ||
938 | 938 | let result = { | |
939 | 939 | let $l = balances_ | |
940 | 940 | let $s = size($l) | |
941 | 941 | let $acc0 = $Tuple2(0, nil) | |
942 | 942 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
943 | 943 | then $a | |
944 | 944 | else foldFunc($a, $l[$i]) | |
945 | 945 | ||
946 | 946 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
947 | 947 | then $a | |
948 | 948 | else throw("List size exceeds 10") | |
949 | 949 | ||
950 | 950 | $f0_2($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) | |
951 | 951 | } | |
952 | 952 | result._2 | |
953 | 953 | } | |
954 | 954 | ||
955 | 955 | ||
956 | 956 | func _decrementBalancesByLpAmount (balances_,amount_,lpTotalSupply_) = { | |
957 | 957 | let rate = fraction((lpTotalSupply_ - amount_), RATE_FACTOR, lpTotalSupply_, CEILING) | |
958 | 958 | func foldFunc (acc,elem) = { | |
959 | 959 | let newBalance = fraction(elem, rate, RATE_FACTOR, CEILING) | |
960 | 960 | let deltaBalance = (elem - newBalance) | |
961 | 961 | if ((0 > deltaBalance)) | |
962 | 962 | then throw("insufficient delta balance") | |
963 | 963 | else $Tuple3((acc._1 :+ newBalance), (acc._2 + newBalance), (acc._3 :+ deltaBalance)) | |
964 | 964 | } | |
965 | 965 | ||
966 | 966 | let $l = balances_ | |
967 | 967 | let $s = size($l) | |
968 | 968 | let $acc0 = $Tuple3(nil, 0, nil) | |
969 | 969 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
970 | 970 | then $a | |
971 | 971 | else foldFunc($a, $l[$i]) | |
972 | 972 | ||
973 | 973 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
974 | 974 | then $a | |
975 | 975 | else throw("List size exceeds 10") | |
976 | 976 | ||
977 | 977 | $f0_2($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) | |
978 | 978 | } | |
979 | 979 | ||
980 | 980 | ||
981 | 981 | func _getPaymentsFromBalances (assets_,balances_,recipient_,sourceDecimals_) = { | |
982 | 982 | func foldFunc (acc,elem) = { | |
983 | 983 | let index = acc._1 | |
984 | 984 | $Tuple2((index + 1), (acc._2 :+ ScriptTransfer(recipient_, _normalizeDecimals(balances_[index], sourceDecimals_, _getDecimals(elem), DOWN), _strToAsset(elem)))) | |
985 | 985 | } | |
986 | 986 | ||
987 | 987 | let result = { | |
988 | 988 | let $l = assets_ | |
989 | 989 | let $s = size($l) | |
990 | 990 | let $acc0 = $Tuple2(0, nil) | |
991 | 991 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
992 | 992 | then $a | |
993 | 993 | else foldFunc($a, $l[$i]) | |
994 | 994 | ||
995 | 995 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
996 | 996 | then $a | |
997 | 997 | else throw("List size exceeds 10") | |
998 | 998 | ||
999 | 999 | $f0_2($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) | |
1000 | 1000 | } | |
1001 | 1001 | result._2 | |
1002 | 1002 | } | |
1003 | 1003 | ||
1004 | 1004 | ||
1005 | 1005 | func _calculateMinusFee (balance_,equilibrium_,lpAmount_,weightAmplifier_,disbalanceCoeff_) = { | |
1006 | 1006 | let threshold = fraction(equilibrium_, (MAX_WEIGHT_AMPLIFIER - weightAmplifier_), MAX_WEIGHT_AMPLIFIER) | |
1007 | 1007 | if ((balance_ > threshold)) | |
1008 | 1008 | then 0 | |
1009 | 1009 | else toInt(fraction(fraction(toBigInt(lpAmount_), toBigInt(disbalanceCoeff_), DISBAlANCE_COEFF_FACTOR), toBigInt((threshold - balance_)), toBigInt(threshold), CEILING)) | |
1010 | 1010 | } | |
1011 | 1011 | ||
1012 | 1012 | ||
1013 | 1013 | func _calculateMinusFeeDelta (balanceBefore_,balanceAfter_,equilibrium_,lpAmount_,weightAmplifier_,disbalanceCoeff_) = if ((balanceAfter_ > balanceBefore_)) | |
1014 | 1014 | then 0 | |
1015 | 1015 | else (_calculateMinusFee(balanceAfter_, equilibrium_, lpAmount_, weightAmplifier_, disbalanceCoeff_) - _calculateMinusFee(balanceBefore_, equilibrium_, lpAmount_, weightAmplifier_, disbalanceCoeff_)) | |
1016 | 1016 | ||
1017 | 1017 | ||
1018 | 1018 | func _calculatePlusFee (balance_,equilibrium_,rewardBalance_,weightAmplifier_) = { | |
1019 | 1019 | let threshold = fraction(equilibrium_, (MAX_WEIGHT_AMPLIFIER - weightAmplifier_), MAX_WEIGHT_AMPLIFIER) | |
1020 | 1020 | let disbalanceReward = fraction(rewardBalance_, threshold, equilibrium_) | |
1021 | 1021 | if ((balance_ > threshold)) | |
1022 | 1022 | then disbalanceReward | |
1023 | 1023 | else fraction(disbalanceReward, balance_, threshold, FLOOR) | |
1024 | 1024 | } | |
1025 | 1025 | ||
1026 | 1026 | ||
1027 | 1027 | func _calculatePlusFeeDelta (balanceBefore_,balanceAfter_,equilibrium_,rewardBalance_,weightAmplifier_) = if ((balanceBefore_ > balanceAfter_)) | |
1028 | 1028 | then 0 | |
1029 | 1029 | else (_calculatePlusFee(balanceAfter_, equilibrium_, rewardBalance_, weightAmplifier_) - _calculatePlusFee(balanceBefore_, equilibrium_, rewardBalance_, weightAmplifier_)) | |
1030 | 1030 | ||
1031 | 1031 | ||
1032 | 1032 | func _feeCompensation (rewardBalance_,fee_) = if ((fee_ > rewardBalance_)) | |
1033 | 1033 | then rewardBalance_ | |
1034 | 1034 | else fee_ | |
1035 | 1035 | ||
1036 | 1036 | ||
1037 | 1037 | func _validateAllocation (assetBalances_,rewardBalances_) = { | |
1038 | 1038 | let maxIndex = size(assetBalances_) | |
1039 | 1039 | func foldFunc (acc,index) = if ((index >= maxIndex)) | |
1040 | 1040 | then acc | |
1041 | 1041 | else if ((0 > assetBalances_[index])) | |
1042 | 1042 | then throw("_validateAllocation: negative assetBalances") | |
1043 | 1043 | else if ((0 > rewardBalances_[index])) | |
1044 | 1044 | then throw("_validateAllocation: negative rewardBalances") | |
1045 | 1045 | else acc | |
1046 | 1046 | ||
1047 | 1047 | let $l = INDEX_LIST | |
1048 | 1048 | let $s = size($l) | |
1049 | 1049 | let $acc0 = true | |
1050 | 1050 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1051 | 1051 | then $a | |
1052 | 1052 | else foldFunc($a, $l[$i]) | |
1053 | 1053 | ||
1054 | 1054 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1055 | 1055 | then $a | |
1056 | 1056 | else throw("List size exceeds 10") | |
1057 | 1057 | ||
1058 | 1058 | $f0_2($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) | |
1059 | 1059 | } | |
1060 | 1060 | ||
1061 | 1061 | ||
1062 | 1062 | func _checkpoint (user_) = { | |
1063 | 1063 | let userLp = _loadUserLp(user_) | |
1064 | 1064 | let userProfits = _loadUserProfits(user_) | |
1065 | 1065 | let sigmaFeePerLp = _loadSigmaFeePerLp() | |
1066 | 1066 | let userSigmaFeePerLp = _loadUserSigmaFeePerLp(user_) | |
1067 | 1067 | func foldFunc (acc,elem) = { | |
1068 | 1068 | let index = acc._1 | |
1069 | 1069 | let profitUpdated = (userProfits[index] + toInt(fraction(toBigInt(userLp), (sigmaFeePerLp[index] - userSigmaFeePerLp[index]), PERCENT_FACTOR))) | |
1070 | 1070 | $Tuple2((index + 1), (acc._2 :+ profitUpdated)) | |
1071 | 1071 | } | |
1072 | 1072 | ||
1073 | 1073 | let $t02270022773 = { | |
1074 | 1074 | let $l = ZERO_INT_LIST_11 | |
1075 | 1075 | let $s = size($l) | |
1076 | 1076 | let $acc0 = $Tuple2(0, nil) | |
1077 | 1077 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1078 | 1078 | then $a | |
1079 | 1079 | else foldFunc($a, $l[$i]) | |
1080 | 1080 | ||
1081 | 1081 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1082 | 1082 | then $a | |
1083 | 1083 | else throw("List size exceeds 11") | |
1084 | 1084 | ||
1085 | 1085 | $f0_2($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) | |
1086 | 1086 | } | |
1087 | 1087 | let idx = $t02270022773._1 | |
1088 | 1088 | let profitsUpdated = $t02270022773._2 | |
1089 | 1089 | $Tuple2((_saveUserProfits(user_, profitsUpdated) ++ _saveUserSigmaFeePerLp(user_, sigmaFeePerLp)), profitsUpdated) | |
1090 | 1090 | } | |
1091 | 1091 | ||
1092 | 1092 | ||
1093 | 1093 | func _updateSigmaFeePerLp (sigmaFeePerLp_,totalLp_,index_,lpFee_) = { | |
1094 | 1094 | func foldFunc (acc,elem) = { | |
1095 | 1095 | let index = acc._1 | |
1096 | 1096 | let sigmaFeePerLpUpdated = if ((index_ == index)) | |
1097 | 1097 | then (sigmaFeePerLp_[index] + fraction(toBigInt(lpFee_), PERCENT_FACTOR, toBigInt(totalLp_))) | |
1098 | 1098 | else sigmaFeePerLp_[index] | |
1099 | 1099 | $Tuple2((index + 1), (acc._2 :+ sigmaFeePerLpUpdated)) | |
1100 | 1100 | } | |
1101 | 1101 | ||
1102 | 1102 | let $t02342323502 = { | |
1103 | 1103 | let $l = ZERO_INT_LIST_11 | |
1104 | 1104 | let $s = size($l) | |
1105 | 1105 | let $acc0 = $Tuple2(0, nil) | |
1106 | 1106 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1107 | 1107 | then $a | |
1108 | 1108 | else foldFunc($a, $l[$i]) | |
1109 | 1109 | ||
1110 | 1110 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1111 | 1111 | then $a | |
1112 | 1112 | else throw("List size exceeds 11") | |
1113 | 1113 | ||
1114 | 1114 | $f0_2($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) | |
1115 | 1115 | } | |
1116 | 1116 | let idx = $t02342323502._1 | |
1117 | 1117 | let sigmaFeePerLpUpdated = $t02342323502._2 | |
1118 | 1118 | sigmaFeePerLpUpdated | |
1119 | 1119 | } | |
1120 | 1120 | ||
1121 | 1121 | ||
1122 | 1122 | func _calculateLpAndProtocolFees (assetIndex_,amount_,lpFeeRate_,protocolFeeRate_) = { | |
1123 | 1123 | let sigmaFeePerLp = _loadSigmaFeePerLp() | |
1124 | 1124 | let totalLp = _loadTotalLp() | |
1125 | 1125 | let $t02372323998 = if ((totalLp == 0)) | |
1126 | 1126 | then $Tuple2(0, fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1127 | 1127 | else $Tuple2(fraction(amount_, lpFeeRate_, MAX_FEE), fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1128 | 1128 | let lpFee = $t02372323998._1 | |
1129 | 1129 | let protocolFee = $t02372323998._2 | |
1130 | 1130 | let sigmaFeePerLpUpdated = if ((lpFee == 0)) | |
1131 | 1131 | then sigmaFeePerLp | |
1132 | 1132 | else _updateSigmaFeePerLp(sigmaFeePerLp, totalLp, assetIndex_, lpFee) | |
1133 | 1133 | $Tuple3(lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1134 | 1134 | } | |
1135 | 1135 | ||
1136 | 1136 | ||
1137 | 1137 | func _depositAll (amount_) = { | |
1138 | 1138 | let storage = _loadStorage() | |
1139 | 1139 | let lpTotalSupply = storage._3 | |
1140 | 1140 | let assets = _loadAssets() | |
1141 | 1141 | let $t02440424457 = _loadAssetWeights() | |
1142 | 1142 | let assetWeights = $t02440424457._1 | |
1143 | 1143 | let sigmaWeight = $t02440424457._2 | |
1144 | 1144 | let $t02446224530 = _loadAssetBalances() | |
1145 | 1145 | let prevAssetBalances = $t02446224530._1 | |
1146 | 1146 | let prevAssetTotalSupply = $t02446224530._2 | |
1147 | 1147 | let $t02453625766 = if ((prevAssetTotalSupply == 0)) | |
1148 | 1148 | then { | |
1149 | 1149 | func foldFunc (acc,elem) = { | |
1150 | 1150 | let index = acc._1 | |
1151 | 1151 | let requiredAmountNormalized = fraction(assetWeights[index], amount_, sigmaWeight) | |
1152 | 1152 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1153 | 1153 | } | |
1154 | 1154 | ||
1155 | 1155 | let $t02497825052 = { | |
1156 | 1156 | let $l = assets | |
1157 | 1157 | let $s = size($l) | |
1158 | 1158 | let $acc0 = $Tuple2(0, nil) | |
1159 | 1159 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1160 | 1160 | then $a | |
1161 | 1161 | else foldFunc($a, $l[$i]) | |
1162 | 1162 | ||
1163 | 1163 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1164 | 1164 | then $a | |
1165 | 1165 | else throw("List size exceeds 10") | |
1166 | 1166 | ||
1167 | 1167 | $f0_2($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) | |
1168 | 1168 | } | |
1169 | 1169 | let idx = $t02497825052._1 | |
1170 | 1170 | let requiredAmountsNormalized = $t02497825052._2 | |
1171 | 1171 | $Tuple2(amount_, requiredAmountsNormalized) | |
1172 | 1172 | } | |
1173 | 1173 | else { | |
1174 | 1174 | let ratio = fraction(toBigInt(amount_), PERCENT_FACTOR, toBigInt(prevAssetTotalSupply)) | |
1175 | 1175 | func foldFunc1 (acc,elem) = { | |
1176 | 1176 | let index = acc._1 | |
1177 | 1177 | let requiredAmountNormalized = toInt(fraction(ratio, toBigInt(prevAssetBalances[index]), PERCENT_FACTOR)) | |
1178 | 1178 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1179 | 1179 | } | |
1180 | 1180 | ||
1181 | 1181 | let $t02559525670 = { | |
1182 | 1182 | let $l = assets | |
1183 | 1183 | let $s = size($l) | |
1184 | 1184 | let $acc0 = $Tuple2(0, nil) | |
1185 | 1185 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1186 | 1186 | then $a | |
1187 | 1187 | else foldFunc1($a, $l[$i]) | |
1188 | 1188 | ||
1189 | 1189 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1190 | 1190 | then $a | |
1191 | 1191 | else throw("List size exceeds 10") | |
1192 | 1192 | ||
1193 | 1193 | $f0_2($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) | |
1194 | 1194 | } | |
1195 | 1195 | let idx = $t02559525670._1 | |
1196 | 1196 | let requiredAmountsNormalized = $t02559525670._2 | |
1197 | 1197 | $Tuple2(fraction(amount_, lpTotalSupply, prevAssetTotalSupply), requiredAmountsNormalized) | |
1198 | 1198 | } | |
1199 | 1199 | let lpTokensToMint = $t02453625766._1 | |
1200 | 1200 | let requiredAmountsNormalized = $t02453625766._2 | |
1201 | 1201 | let $t02577225885 = _incrementBalancesByAmounts(prevAssetBalances, requiredAmountsNormalized) | |
1202 | 1202 | let assetBalances = $t02577225885._1 | |
1203 | 1203 | let assetTotalSupply = $t02577225885._2 | |
1204 | 1204 | $Tuple3(lpTokensToMint, requiredAmountsNormalized, assetBalances) | |
1205 | 1205 | } | |
1206 | 1206 | ||
1207 | 1207 | ||
1208 | 1208 | func _deposit (assetId_,amount_) = { | |
1209 | 1209 | let storage = _loadStorage() | |
1210 | 1210 | let lpTotalSupply = storage._3 | |
1211 | 1211 | let lpFeeRate = storage._4 | |
1212 | 1212 | let protocolFeeRate = storage._5 | |
1213 | 1213 | let maxAllocAmplifier = storage._6 | |
1214 | 1214 | let weightAmplifier = storage._7 | |
1215 | 1215 | let assets = _loadAssets() | |
1216 | 1216 | let $t02625126304 = _loadAssetWeights() | |
1217 | 1217 | let assetWeights = $t02625126304._1 | |
1218 | 1218 | let sigmaWeight = $t02625126304._2 | |
1219 | 1219 | let $t02630926377 = _loadAssetBalances() | |
1220 | 1220 | let prevAssetBalances = $t02630926377._1 | |
1221 | 1221 | let prevAssetTotalSupply = $t02630926377._2 | |
1222 | 1222 | let prevRewardBalances = _loadRewardBalances() | |
1223 | 1223 | let err = if (if ((prevAssetTotalSupply == 0)) | |
1224 | 1224 | then true | |
1225 | 1225 | else (lpTotalSupply == 0)) | |
1226 | 1226 | then throw("_deposit: empty pool") | |
1227 | 1227 | else true | |
1228 | 1228 | if ((err == err)) | |
1229 | 1229 | then { | |
1230 | 1230 | let sourceAssetIndex = value(indexOf(assets, assetId_)) | |
1231 | 1231 | let sourceEquilibrium = fraction(prevAssetTotalSupply, assetWeights[sourceAssetIndex], sigmaWeight) | |
1232 | 1232 | let sourceBalanceBefore = prevAssetBalances[sourceAssetIndex] | |
1233 | 1233 | let sourceRewardBalance = prevRewardBalances[sourceAssetIndex] | |
1234 | 1234 | let sourcePlusFeeDelta = _calculatePlusFeeDelta(sourceBalanceBefore, (sourceBalanceBefore + amount_), sourceEquilibrium, sourceRewardBalance, weightAmplifier) | |
1235 | 1235 | let lpTokensToMint = (amount_ + sourcePlusFeeDelta) | |
1236 | 1236 | let $t02717727308 = _calculateLpAndProtocolFees(0, lpTokensToMint, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1237 | 1237 | let lpFee = $t02717727308._1 | |
1238 | 1238 | let protocolFee = $t02717727308._2 | |
1239 | 1239 | let sigmaFeePerLpUpdated = $t02717727308._3 | |
1240 | 1240 | let feeCompensation = _feeCompensation((sourceRewardBalance - sourcePlusFeeDelta), (lpFee + protocolFee)) | |
1241 | 1241 | let newRewardBalances = _decrementBalanceByIndex(prevRewardBalances, sourceAssetIndex, (sourcePlusFeeDelta + feeCompensation)) | |
1242 | 1242 | let newAssetBalances = _incrementBalanceByIndex(prevAssetBalances, sourceAssetIndex, (lpTokensToMint + feeCompensation)) | |
1243 | 1243 | let err1 = _validateAllocation(newAssetBalances, newRewardBalances) | |
1244 | 1244 | if ((err1 == err1)) | |
1245 | 1245 | then $Tuple6((lpTokensToMint + feeCompensation), newAssetBalances, newRewardBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1246 | 1246 | else throw("Strict value is not equal to itself.") | |
1247 | 1247 | } | |
1248 | 1248 | else throw("Strict value is not equal to itself.") | |
1249 | 1249 | } | |
1250 | 1250 | ||
1251 | 1251 | ||
1252 | 1252 | func _withdrawAll (amount_) = { | |
1253 | 1253 | let storage = _loadStorage() | |
1254 | 1254 | let lpTotalSupply = storage._3 | |
1255 | 1255 | let $t02797628044 = _loadAssetBalances() | |
1256 | 1256 | let prevAssetBalances = $t02797628044._1 | |
1257 | 1257 | let prevAssetTotalSupply = $t02797628044._2 | |
1258 | 1258 | let $t02804928102 = _loadAssetWeights() | |
1259 | 1259 | let assetWeights = $t02804928102._1 | |
1260 | 1260 | let sigmaWeight = $t02804928102._2 | |
1261 | 1261 | let lpTokensToBurn = amount_ | |
1262 | 1262 | let err = _validateInt(lpTokensToBurn, 0, lpTotalSupply, "_withdrawAll: invalid lpTokensToBurn") | |
1263 | 1263 | if ((err == err)) | |
1264 | 1264 | then { | |
1265 | 1265 | let $t02824628379 = _decrementBalancesByLpAmount(prevAssetBalances, lpTokensToBurn, lpTotalSupply) | |
1266 | 1266 | let assetBalances = $t02824628379._1 | |
1267 | 1267 | let assetTotalSupply = $t02824628379._2 | |
1268 | 1268 | let balancesToPay = $t02824628379._3 | |
1269 | 1269 | $Tuple3(lpTokensToBurn, balancesToPay, assetBalances) | |
1270 | 1270 | } | |
1271 | 1271 | else throw("Strict value is not equal to itself.") | |
1272 | 1272 | } | |
1273 | 1273 | ||
1274 | 1274 | ||
1275 | 1275 | func _withdraw (assetId_,lpAmount_) = { | |
1276 | 1276 | let storage = _loadStorage() | |
1277 | 1277 | let lpTotalSupply = storage._3 | |
1278 | 1278 | let lpFeeRate = storage._4 | |
1279 | 1279 | let protocolFeeRate = storage._5 | |
1280 | 1280 | let maxAllocAmplifier = storage._6 | |
1281 | 1281 | let weightAmplifier = storage._7 | |
1282 | 1282 | let disbalanceCoeff = storage._8 | |
1283 | 1283 | let assets = _loadAssets() | |
1284 | 1284 | let $t02877328841 = _loadAssetBalances() | |
1285 | 1285 | let prevAssetBalances = $t02877328841._1 | |
1286 | 1286 | let prevAssetTotalSupply = $t02877328841._2 | |
1287 | 1287 | let $t02884628899 = _loadAssetWeights() | |
1288 | 1288 | let assetWeights = $t02884628899._1 | |
1289 | 1289 | let sigmaWeight = $t02884628899._2 | |
1290 | 1290 | let prevRewardBalances = _loadRewardBalances() | |
1291 | 1291 | let targetAssetIndex = value(indexOf(assets, assetId_)) | |
1292 | 1292 | let targetBalanceBefore = prevAssetBalances[targetAssetIndex] | |
1293 | 1293 | let targetEquilibrium = fraction(prevAssetTotalSupply, assetWeights[targetAssetIndex], sigmaWeight) | |
1294 | 1294 | let targetRewardBalance = prevRewardBalances[targetAssetIndex] | |
1295 | 1295 | let targetMinusFeeDelta = _calculateMinusFeeDelta(targetBalanceBefore, (targetBalanceBefore - lpAmount_), targetEquilibrium, prevAssetTotalSupply, weightAmplifier, disbalanceCoeff) | |
1296 | 1296 | let rewardBalances = _incrementBalanceByIndex(prevRewardBalances, targetAssetIndex, targetMinusFeeDelta) | |
1297 | 1297 | let assetBalances = _decrementBalanceByIndex(prevAssetBalances, targetAssetIndex, lpAmount_) | |
1298 | 1298 | let targetAmount = (lpAmount_ - targetMinusFeeDelta) | |
1299 | 1299 | let err = _validateAllocation(assetBalances, rewardBalances) | |
1300 | 1300 | if ((err == err)) | |
1301 | 1301 | then { | |
1302 | 1302 | let $t02988530033 = _calculateLpAndProtocolFees((targetAssetIndex + 1), targetAmount, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1303 | 1303 | let lpFee = $t02988530033._1 | |
1304 | 1304 | let protocolFee = $t02988530033._2 | |
1305 | 1305 | let sigmaFeePerLpUpdated = $t02988530033._3 | |
1306 | 1306 | $Tuple6(targetAmount, assetBalances, rewardBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1307 | 1307 | } | |
1308 | 1308 | else throw("Strict value is not equal to itself.") | |
1309 | 1309 | } | |
1310 | 1310 | ||
1311 | 1311 | ||
1312 | 1312 | func _swap (sourceAssetIndex_,targetAssetIndex_,sourceAmount_) = { | |
1313 | 1313 | let storage = _loadStorage() | |
1314 | 1314 | let lpAssetId = storage._1 | |
1315 | 1315 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1316 | 1316 | let lpTotalSupply = storage._3 | |
1317 | 1317 | let lpFeeRate = storage._4 | |
1318 | 1318 | let protocolFeeRate = storage._5 | |
1319 | 1319 | let maxAllocAmplifier = storage._6 | |
1320 | 1320 | let weightAmplifier = storage._7 | |
1321 | 1321 | let disbalanceCoeff = storage._8 | |
1322 | 1322 | let $t03056030628 = _loadAssetBalances() | |
1323 | 1323 | let prevAssetBalances = $t03056030628._1 | |
1324 | 1324 | let prevAssetTotalSupply = $t03056030628._2 | |
1325 | 1325 | let $t03063330686 = _loadAssetWeights() | |
1326 | 1326 | let assetWeights = $t03063330686._1 | |
1327 | 1327 | let sigmaWeight = $t03063330686._2 | |
1328 | 1328 | let prevRewardBalances = _loadRewardBalances() | |
1329 | 1329 | let sourceEquilibrium = fraction(prevAssetTotalSupply, assetWeights[sourceAssetIndex_], sigmaWeight) | |
1330 | 1330 | let sourceBalanceBefore = prevAssetBalances[sourceAssetIndex_] | |
1331 | 1331 | let sourceRewardBalance = prevRewardBalances[sourceAssetIndex_] | |
1332 | 1332 | let sourcePlusFeeDelta = _calculatePlusFeeDelta(sourceBalanceBefore, (sourceBalanceBefore + sourceAmount_), sourceEquilibrium, sourceRewardBalance, weightAmplifier) | |
1333 | 1333 | let targetBalanceBefore = prevAssetBalances[targetAssetIndex_] | |
1334 | 1334 | let targetEquilibrium = fraction(prevAssetTotalSupply, assetWeights[targetAssetIndex_], sigmaWeight) | |
1335 | 1335 | let targetRewardBalance = prevRewardBalances[targetAssetIndex_] | |
1336 | 1336 | let targetMinusFeeDelta = _calculateMinusFeeDelta(targetBalanceBefore, (targetBalanceBefore - sourceAmount_), targetEquilibrium, prevAssetTotalSupply, weightAmplifier, disbalanceCoeff) | |
1337 | 1337 | let tempRewardBalances = _decrementBalanceByIndex(prevRewardBalances, sourceAssetIndex_, sourcePlusFeeDelta) | |
1338 | 1338 | let newRewardBalances = _incrementBalanceByIndex(tempRewardBalances, targetAssetIndex_, targetMinusFeeDelta) | |
1339 | 1339 | let tempAssetBalances = _incrementBalanceByIndex(prevAssetBalances, sourceAssetIndex_, (sourceAmount_ + sourcePlusFeeDelta)) | |
1340 | 1340 | let newAssetBalances = _decrementBalanceByIndex(tempAssetBalances, targetAssetIndex_, (sourceAmount_ + sourcePlusFeeDelta)) | |
1341 | 1341 | let targetAmount = ((sourceAmount_ + sourcePlusFeeDelta) - targetMinusFeeDelta) | |
1342 | 1342 | let err = _validateAllocation(newAssetBalances, newRewardBalances) | |
1343 | 1343 | if ((err == err)) | |
1344 | 1344 | then { | |
1345 | 1345 | let $t03228232423 = _calculateLpAndProtocolFees((targetAssetIndex_ + 1), targetAmount, lpFeeRate, protocolFeeRate) | |
1346 | 1346 | let lpFee = $t03228232423._1 | |
1347 | 1347 | let protocolFee = $t03228232423._2 | |
1348 | 1348 | let sigmaFeePerLpUpdated = $t03228232423._3 | |
1349 | 1349 | $Tuple6(targetAmount, newAssetBalances, newRewardBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1350 | 1350 | } | |
1351 | 1351 | else throw("Strict value is not equal to itself.") | |
1352 | 1352 | } | |
1353 | 1353 | ||
1354 | 1354 | ||
1355 | 1355 | @Callable(i) | |
1356 | 1356 | func init (assets_,assetWeights_,lpFeeRate_,protocolFeeRate_,lpTokenName_,lpTokenDescr_,lpTokenDecimals_,maxAllocationAmplifier_,weightAmplifier_,disbalanceCoeff_,feeMaxRate_,protocolFeeContract_,precision_,pauser_) = { | |
1357 | 1357 | let err = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
1358 | 1358 | then _whenNotInitialized() | |
1359 | 1359 | else false) | |
1360 | 1360 | then _whenMultisigSet() | |
1361 | 1361 | else false) | |
1362 | 1362 | then _validateAssets(assets_, "init: invalid assets") | |
1363 | 1363 | else false) | |
1364 | 1364 | then _validateIntList(assetWeights_, 1, MAX_WEIGHT, "init: invalid assetWeights") | |
1365 | 1365 | else false) | |
1366 | 1366 | then _validateIntEquals(size(assets_), size(assetWeights_), "init: invalid assetWeights size") | |
1367 | 1367 | else false) | |
1368 | 1368 | then _validateInt(lpFeeRate_, 0, MAX_FEE, "init: invalid lp fee") | |
1369 | 1369 | else false) | |
1370 | 1370 | then _validateInt(protocolFeeRate_, 0, MAX_FEE, "init: invalid protocol fee") | |
1371 | 1371 | else false) | |
1372 | 1372 | then _validateTokenName(lpTokenName_, "init: invalid name") | |
1373 | 1373 | else false) | |
1374 | 1374 | then _validateTokenDescr(lpTokenDescr_, "init: invalid descr") | |
1375 | 1375 | else false) | |
1376 | 1376 | then _validateDecimals(lpTokenDecimals_, "init: invalid decimals") | |
1377 | 1377 | else false) | |
1378 | 1378 | then _validateInt(maxAllocationAmplifier_, 0, MAX_AMPLIFIER, "init: invalid maxAllocationAmplifier") | |
1379 | 1379 | else false) | |
1380 | 1380 | then _validateInt(weightAmplifier_, 0, maxAllocationAmplifier_, "init: invalid weightAmplifier") | |
1381 | 1381 | else false) | |
1382 | 1382 | then _validateInt(disbalanceCoeff_, 0, MAX_INT, "init: invalid disbalanceCoeff") | |
1383 | 1383 | else false) | |
1384 | 1384 | then _validateInt(feeMaxRate_, 0, MAX_INT, "init: invalid feeMaxRate") | |
1385 | 1385 | else false) | |
1386 | 1386 | then _validateAddress(protocolFeeContract_, "init: invalid protocolFeeContract") | |
1387 | 1387 | else false) | |
1388 | 1388 | then _validateInt(precision_, 1, MAX_INT, "init: invalid precision") | |
1389 | 1389 | else false) | |
1390 | 1390 | then _validateAddress(pauser_, "init: invalid pauser") | |
1391 | 1391 | else false | |
1392 | 1392 | if ((err == err)) | |
1393 | 1393 | then { | |
1394 | 1394 | let $t03431234381 = _prepareAssetWeights(assetWeights_) | |
1395 | 1395 | let assetWeights = $t03431234381._1 | |
1396 | 1396 | let sigmaWeight = $t03431234381._2 | |
1397 | 1397 | let assetBalances = _prepareAssetBalances(assets_) | |
1398 | 1398 | let issue = Issue(lpTokenName_, lpTokenDescr_, 0, lpTokenDecimals_, true) | |
1399 | 1399 | let lpAssetId = calculateAssetId(issue) | |
1400 | 1400 | let storageUpdated = $Tuple10(lpAssetId, true, 0, lpFeeRate_, protocolFeeRate_, maxAllocationAmplifier_, weightAmplifier_, disbalanceCoeff_, feeMaxRate_, addressFromStringValue(protocolFeeContract_)) | |
1401 | 1401 | $Tuple2((((((((([issue] ++ _saveStorage(storageUpdated)) ++ _saveAssets(assets_)) ++ _saveAssetBalances(assetBalances)) ++ _saveRewardBalances(assetBalances)) ++ _saveAssetWeights(assetWeights)) ++ _savePrecision(precision_)) ++ _saveSigmaFeePerLp(_loadSigmaFeePerLp())) ++ _savePauser(addressFromStringValue(pauser_))), unit) | |
1402 | 1402 | } | |
1403 | 1403 | else throw("Strict value is not equal to itself.") | |
1404 | 1404 | } | |
1405 | 1405 | ||
1406 | 1406 | ||
1407 | 1407 | ||
1408 | 1408 | @Callable(i) | |
1409 | 1409 | func depositAll (amount_) = { | |
1410 | 1410 | let err = if (if (_whenInitialized()) | |
1411 | 1411 | then _whenNotPaused() | |
1412 | 1412 | else false) | |
1413 | 1413 | then _validateInt(amount_, 0, MAX_INT, "depositAll: invalid amount") | |
1414 | 1414 | else false | |
1415 | 1415 | if ((err == err)) | |
1416 | 1416 | then { | |
1417 | 1417 | let storage = _loadStorage() | |
1418 | 1418 | let lpAssetId = storage._1 | |
1419 | 1419 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1420 | 1420 | let assets = _loadAssets() | |
1421 | 1421 | let $t03618036265 = _depositAll(amount_) | |
1422 | 1422 | let lpTokensToMint = $t03618036265._1 | |
1423 | 1423 | let requiredAmountsNormalized = $t03618036265._2 | |
1424 | 1424 | let assetBalances = $t03618036265._3 | |
1425 | 1425 | func foldFunc (acc,elem) = { | |
1426 | 1426 | let index = acc._1 | |
1427 | 1427 | let paymentAssetStr = _assetToStr(i.payments[index].assetId) | |
1428 | 1428 | let paymentAssetDecimals = _getDecimals(paymentAssetStr) | |
1429 | 1429 | let requiredAmountNormalized = requiredAmountsNormalized[index] | |
1430 | 1430 | let requiredAmount = _normalizeDecimals(requiredAmountNormalized, lpDecimals, paymentAssetDecimals, CEILING) | |
1431 | 1431 | let err1 = if ((paymentAssetStr != elem)) | |
1432 | 1432 | then throw(("depositAll: invalid payment: index=" + toString(index))) | |
1433 | 1433 | else if ((0 >= requiredAmount)) | |
1434 | 1434 | then throw("depositAll: too little amount required") | |
1435 | 1435 | else unit | |
1436 | 1436 | if ((err1 == err1)) | |
1437 | 1437 | then { | |
1438 | 1438 | let change = if ((i.payments[index].amount > requiredAmount)) | |
1439 | 1439 | then [ScriptTransfer(i.caller, (i.payments[index].amount - requiredAmount), i.payments[index].assetId)] | |
1440 | 1440 | else if ((requiredAmount > i.payments[index].amount)) | |
1441 | 1441 | then throw(((("depositAll: insufficient payment, index=" + toString(index)) + ", required=") + toString(requiredAmount))) | |
1442 | 1442 | else nil | |
1443 | 1443 | $Tuple2((index + 1), (acc._2 ++ change)) | |
1444 | 1444 | } | |
1445 | 1445 | else throw("Strict value is not equal to itself.") | |
1446 | 1446 | } | |
1447 | 1447 | ||
1448 | 1448 | let $t03740837470 = { | |
1449 | 1449 | let $l = assets | |
1450 | 1450 | let $s = size($l) | |
1451 | 1451 | let $acc0 = $Tuple2(0, nil) | |
1452 | 1452 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1453 | 1453 | then $a | |
1454 | 1454 | else foldFunc($a, $l[$i]) | |
1455 | 1455 | ||
1456 | 1456 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1457 | 1457 | then $a | |
1458 | 1458 | else throw("List size exceeds 10") | |
1459 | 1459 | ||
1460 | 1460 | $f0_2($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) | |
1461 | 1461 | } | |
1462 | 1462 | let idx = $t03740837470._1 | |
1463 | 1463 | let changeActions = $t03740837470._2 | |
1464 | 1464 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1465 | 1465 | $Tuple2(((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(i.caller, lpTokensToMint, lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)) ++ changeActions), unit) | |
1466 | 1466 | } | |
1467 | 1467 | else throw("Strict value is not equal to itself.") | |
1468 | 1468 | } | |
1469 | 1469 | ||
1470 | 1470 | ||
1471 | 1471 | ||
1472 | 1472 | @Callable(i) | |
1473 | 1473 | func deposit (minLpAmount_) = { | |
1474 | 1474 | let err = _validateInt(minLpAmount_, 0, MAX_INT, "deposit: invalid min lp amount") | |
1475 | 1475 | if ((err == err)) | |
1476 | 1476 | then { | |
1477 | 1477 | let storage = _loadStorage() | |
1478 | 1478 | let lpAssetId = storage._1 | |
1479 | 1479 | let lpAssetIdStr = _assetToStr(lpAssetId) | |
1480 | 1480 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1481 | 1481 | let err1 = if (if (if (if (if (_whenInitialized()) | |
1482 | 1482 | then _whenNotPaused() | |
1483 | 1483 | else false) | |
1484 | 1484 | then _checkWatchdog() | |
1485 | 1485 | else false) | |
1486 | 1486 | then _validateIntEquals(size(i.payments), 1, "deposit: invalid payments size") | |
1487 | 1487 | else false) | |
1488 | 1488 | then _validateListContains(_loadAssets(), _assetToStr(i.payments[0].assetId), "deposit: invalid payment asset") | |
1489 | 1489 | else false) | |
1490 | 1490 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "deposit: invalid payment amount") | |
1491 | 1491 | else false | |
1492 | 1492 | if ((err1 == err1)) | |
1493 | 1493 | then { | |
1494 | 1494 | let assetStr = _assetToStr(i.payments[0].assetId) | |
1495 | 1495 | let assetDecimals = _getDecimals(assetStr) | |
1496 | 1496 | let amountNormalized = _normalizeDecimals(i.payments[0].amount, assetDecimals, lpDecimals, DOWN) | |
1497 | 1497 | let $t03891039042 = _deposit(assetStr, amountNormalized) | |
1498 | 1498 | let lpTokensToMint = $t03891039042._1 | |
1499 | 1499 | let assetBalances = $t03891039042._2 | |
1500 | 1500 | let rewardBalances = $t03891039042._3 | |
1501 | 1501 | let lpFee = $t03891039042._4 | |
1502 | 1502 | let protocolFee = $t03891039042._5 | |
1503 | 1503 | let sigmaFeePerLpUpdated = $t03891039042._6 | |
1504 | 1504 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1505 | 1505 | let err2 = _validateInt(lpTokensToSend, minLpAmount_, MAX_INT, "deposit: less than min") | |
1506 | 1506 | if ((err2 == err2)) | |
1507 | 1507 | then { | |
1508 | 1508 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1509 | 1509 | $Tuple2((((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(i.caller, lpTokensToSend, lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)) ++ _saveRewardBalances(rewardBalances)) ++ _saveLpFee(lpAssetIdStr, (lpFee + _loadLpFee(lpAssetIdStr)))) ++ _saveProtocolFee(lpAssetIdStr, (protocolFee + _loadProtocolFee(lpAssetIdStr)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1510 | 1510 | } | |
1511 | 1511 | else throw("Strict value is not equal to itself.") | |
1512 | 1512 | } | |
1513 | 1513 | else throw("Strict value is not equal to itself.") | |
1514 | 1514 | } | |
1515 | 1515 | else throw("Strict value is not equal to itself.") | |
1516 | 1516 | } | |
1517 | 1517 | ||
1518 | 1518 | ||
1519 | 1519 | ||
1520 | 1520 | @Callable(i) | |
1521 | 1521 | func withdrawAll () = { | |
1522 | 1522 | let storage = _loadStorage() | |
1523 | 1523 | let lpAssetId = storage._1 | |
1524 | 1524 | let lpAssetIdStr = toBase58String(lpAssetId) | |
1525 | 1525 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1526 | 1526 | let assets = _loadAssets() | |
1527 | 1527 | let err = if (if (if (_whenInitialized()) | |
1528 | 1528 | then _validateIntEquals(size(i.payments), 1, "withdrawAll: invalid payments size") | |
1529 | 1529 | else false) | |
1530 | 1530 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "withdrawAll: invalid payment asset") | |
1531 | 1531 | else false) | |
1532 | 1532 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "withdrawAll: invalid payment amount") | |
1533 | 1533 | else false | |
1534 | 1534 | if ((err == err)) | |
1535 | 1535 | then { | |
1536 | 1536 | let $t04055040637 = _withdrawAll(i.payments[0].amount) | |
1537 | 1537 | let lpTokensToBurn = $t04055040637._1 | |
1538 | 1538 | let balancesToPay = $t04055040637._2 | |
1539 | 1539 | let assetBalances = $t04055040637._3 | |
1540 | 1540 | let paymentActions = _getPaymentsFromBalances(assets, balancesToPay, i.caller, lpDecimals) | |
1541 | 1541 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 - lpTokensToBurn), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1542 | 1542 | $Tuple2(((([Burn(lpAssetId, lpTokensToBurn)] ++ paymentActions) ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)), unit) | |
1543 | 1543 | } | |
1544 | 1544 | else throw("Strict value is not equal to itself.") | |
1545 | 1545 | } | |
1546 | 1546 | ||
1547 | 1547 | ||
1548 | 1548 | ||
1549 | 1549 | @Callable(i) | |
1550 | 1550 | func withdraw (assetId_,minAmount_) = { | |
1551 | 1551 | let storage = _loadStorage() | |
1552 | 1552 | let lpAssetId = storage._1 | |
1553 | 1553 | let lpAssetIdStr = toBase58String(lpAssetId) | |
1554 | 1554 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1555 | 1555 | let assets = _loadAssets() | |
1556 | 1556 | let err = if (if (if (if (if (if (if (_whenInitialized()) | |
1557 | 1557 | then _whenNotPaused() | |
1558 | 1558 | else false) | |
1559 | 1559 | then _checkWatchdog() | |
1560 | 1560 | else false) | |
1561 | 1561 | then _validateIntEquals(size(i.payments), 1, "withdraw: invalid payments size") | |
1562 | 1562 | else false) | |
1563 | 1563 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "withdraw: invalid payment asset") | |
1564 | 1564 | else false) | |
1565 | 1565 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "withdraw: invalid payment amount") | |
1566 | 1566 | else false) | |
1567 | 1567 | then _validateListContains(assets, assetId_, "withdraw: invalid assetId") | |
1568 | 1568 | else false) | |
1569 | 1569 | then _validateInt(minAmount_, 0, MAX_INT, "withdraw: invalid minAmount") | |
1570 | 1570 | else false | |
1571 | 1571 | if ((err == err)) | |
1572 | 1572 | then { | |
1573 | 1573 | let $t04199142146 = _withdraw(assetId_, i.payments[0].amount) | |
1574 | 1574 | let targetAmountNormalized = $t04199142146._1 | |
1575 | 1575 | let finalAssetBalances = $t04199142146._2 | |
1576 | 1576 | let finalRewardBalances = $t04199142146._3 | |
1577 | 1577 | let lpFee = $t04199142146._4 | |
1578 | 1578 | let protocolFee = $t04199142146._5 | |
1579 | 1579 | let sigmaFeePerLpUpdated = $t04199142146._6 | |
1580 | 1580 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1581 | 1581 | let targetDecimals = _getDecimals(assetId_) | |
1582 | 1582 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1583 | 1583 | let err1 = _validateInt(finalAmount, minAmount_, MAX_INT, "withdraw: less than min") | |
1584 | 1584 | if ((err1 == err1)) | |
1585 | 1585 | then { | |
1586 | 1586 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 - i.payments[0].amount), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1587 | 1587 | $Tuple2((((((([Burn(lpAssetId, i.payments[0].amount), ScriptTransfer(i.caller, finalAmount, _strToAsset(assetId_))] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(finalAssetBalances)) ++ _saveRewardBalances(finalRewardBalances)) ++ _saveLpFee(assetId_, (lpFee + _loadLpFee(assetId_)))) ++ _saveProtocolFee(assetId_, (protocolFee + _loadProtocolFee(assetId_)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1588 | 1588 | } | |
1589 | 1589 | else throw("Strict value is not equal to itself.") | |
1590 | 1590 | } | |
1591 | 1591 | else throw("Strict value is not equal to itself.") | |
1592 | 1592 | } | |
1593 | 1593 | ||
1594 | 1594 | ||
1595 | 1595 | ||
1596 | 1596 | @Callable(i) | |
1597 | 1597 | func swap (targetAssetId_,minAmount_) = { | |
1598 | 1598 | let storage = _loadStorage() | |
1599 | 1599 | let lpAssetId = storage._1 | |
1600 | 1600 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1601 | 1601 | let assets = _loadAssets() | |
1602 | 1602 | let sourceAssetStr = _assetToStr(i.payments[0].assetId) | |
1603 | 1603 | let sourceAmountNormalized = _normalizeDecimals(i.payments[0].amount, _getDecimals(sourceAssetStr), lpDecimals, DOWN) | |
1604 | 1604 | let sourceAssetIndex = valueOrErrorMessage(indexOf(assets, sourceAssetStr), "swap: invalid source asset") | |
1605 | 1605 | if ((sourceAssetIndex == sourceAssetIndex)) | |
1606 | 1606 | then { | |
1607 | 1607 | let targetAssetIndex = valueOrErrorMessage(indexOf(assets, targetAssetId_), "swap: invalid target asset") | |
1608 | 1608 | if ((targetAssetIndex == targetAssetIndex)) | |
1609 | 1609 | then { | |
1610 | 1610 | let err = if (if (if (if (if (if (_whenInitialized()) | |
1611 | 1611 | then _whenNotPaused() | |
1612 | 1612 | else false) | |
1613 | 1613 | then _checkWatchdog() | |
1614 | 1614 | else false) | |
1615 | 1615 | then _validateInt(minAmount_, 0, MAX_INT, "swap: invalid min target amount") | |
1616 | 1616 | else false) | |
1617 | 1617 | then _validateInt(sourceAmountNormalized, 1, MAX_INT, "swap: invalid source amount") | |
1618 | 1618 | else false) | |
1619 | 1619 | then _validateStringNotEq(sourceAssetStr, targetAssetId_, "swap: same assets") | |
1620 | 1620 | else false) | |
1621 | 1621 | then _validateIntEquals(size(i.payments), 1, "swap: invalid payments size") | |
1622 | 1622 | else false | |
1623 | 1623 | if ((err == err)) | |
1624 | 1624 | then { | |
1625 | 1625 | let $t04431144490 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1626 | 1626 | let targetAmountNormalized = $t04431144490._1 | |
1627 | 1627 | let finalAssetBalances = $t04431144490._2 | |
1628 | 1628 | let finalRewardBalances = $t04431144490._3 | |
1629 | 1629 | let lpFee = $t04431144490._4 | |
1630 | 1630 | let protocolFee = $t04431144490._5 | |
1631 | 1631 | let sigmaFeePerLpUpdated = $t04431144490._6 | |
1632 | 1632 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1633 | 1633 | let targetDecimals = _getDecimals(targetAssetId_) | |
1634 | 1634 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1635 | 1635 | let err1 = _validateInt(finalAmount, minAmount_, MAX_INT, "swap: less than min") | |
1636 | 1636 | if ((err1 == err1)) | |
1637 | 1637 | then $Tuple2(((((([ScriptTransfer(i.caller, finalAmount, _strToAsset(targetAssetId_))] ++ _saveAssetBalances(finalAssetBalances)) ++ _saveRewardBalances(finalRewardBalances)) ++ _saveLpFee(targetAssetId_, (lpFee + _loadLpFee(targetAssetId_)))) ++ _saveProtocolFee(targetAssetId_, (protocolFee + _loadProtocolFee(targetAssetId_)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1638 | 1638 | else throw("Strict value is not equal to itself.") | |
1639 | 1639 | } | |
1640 | 1640 | else throw("Strict value is not equal to itself.") | |
1641 | 1641 | } | |
1642 | 1642 | else throw("Strict value is not equal to itself.") | |
1643 | 1643 | } | |
1644 | 1644 | else throw("Strict value is not equal to itself.") | |
1645 | 1645 | } | |
1646 | 1646 | ||
1647 | 1647 | ||
1648 | 1648 | ||
1649 | 1649 | @Callable(i) | |
1650 | 1650 | func getDepositAll (lpAmount_) = { | |
1651 | 1651 | let err = _validateInt(lpAmount_, 1, MAX_INT, "getDepositAll: invalid amount") | |
1652 | 1652 | if ((err == err)) | |
1653 | 1653 | then { | |
1654 | 1654 | let $t04566245749 = _depositAll(lpAmount_) | |
1655 | 1655 | let lpTokensToMint = $t04566245749._1 | |
1656 | 1656 | let requiredAmountsNormalized = $t04566245749._2 | |
1657 | 1657 | let assetBalances = $t04566245749._3 | |
1658 | 1658 | $Tuple2(nil, $Tuple2(lpTokensToMint, requiredAmountsNormalized)) | |
1659 | 1659 | } | |
1660 | 1660 | else throw("Strict value is not equal to itself.") | |
1661 | 1661 | } | |
1662 | 1662 | ||
1663 | 1663 | ||
1664 | 1664 | ||
1665 | 1665 | @Callable(i) | |
1666 | 1666 | func getDeposit (assetId_,amount_) = { | |
1667 | 1667 | let err = if (_validateListContains(_loadAssets(), assetId_, "getDeposit: invalid asset")) | |
1668 | 1668 | then _validateInt(amount_, 1, MAX_INT, "getDeposit: invalid amount") | |
1669 | 1669 | else false | |
1670 | 1670 | if ((err == err)) | |
1671 | 1671 | then { | |
1672 | 1672 | let storage = _loadStorage() | |
1673 | 1673 | let lpAssetId = storage._1 | |
1674 | 1674 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1675 | 1675 | let assetDecimals = _getDecimals(assetId_) | |
1676 | 1676 | let amountNormalized = _normalizeDecimals(amount_, assetDecimals, lpDecimals, DOWN) | |
1677 | 1677 | let $t04650846640 = _deposit(assetId_, amountNormalized) | |
1678 | 1678 | let lpTokensToMint = $t04650846640._1 | |
1679 | 1679 | let assetBalances = $t04650846640._2 | |
1680 | 1680 | let rewardBalances = $t04650846640._3 | |
1681 | 1681 | let lpFee = $t04650846640._4 | |
1682 | 1682 | let protocolFee = $t04650846640._5 | |
1683 | 1683 | let sigmaFeePerLpUpdated = $t04650846640._6 | |
1684 | 1684 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1685 | 1685 | $Tuple2(nil, lpTokensToSend) | |
1686 | 1686 | } | |
1687 | 1687 | else throw("Strict value is not equal to itself.") | |
1688 | 1688 | } | |
1689 | 1689 | ||
1690 | 1690 | ||
1691 | 1691 | ||
1692 | 1692 | @Callable(i) | |
1693 | 1693 | func getWithdrawAll (lpAmount_) = { | |
1694 | 1694 | let err = _validateInt(lpAmount_, 0, MAX_INT, "getWithdrawAll: invalid amount") | |
1695 | 1695 | if ((err == err)) | |
1696 | 1696 | then { | |
1697 | 1697 | let $t04707947155 = _withdrawAll(lpAmount_) | |
1698 | 1698 | let lpTokensToBurn = $t04707947155._1 | |
1699 | 1699 | let balancesToGet = $t04707947155._2 | |
1700 | 1700 | let assetBalances = $t04707947155._3 | |
1701 | 1701 | $Tuple2(nil, balancesToGet) | |
1702 | 1702 | } | |
1703 | 1703 | else throw("Strict value is not equal to itself.") | |
1704 | 1704 | } | |
1705 | 1705 | ||
1706 | 1706 | ||
1707 | 1707 | ||
1708 | 1708 | @Callable(i) | |
1709 | 1709 | func getWithdraw (assetId_,amount_) = { | |
1710 | 1710 | let err = if (_validateListContains(_loadAssets(), assetId_, "getWithdraw: invalid asset")) | |
1711 | 1711 | then _validateInt(amount_, 1, MAX_INT, "getWithdraw: invalid amount") | |
1712 | 1712 | else false | |
1713 | 1713 | if ((err == err)) | |
1714 | 1714 | then { | |
1715 | 1715 | let storage = _loadStorage() | |
1716 | 1716 | let lpAssetId = storage._1 | |
1717 | 1717 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1718 | 1718 | let $t04780647938 = _withdraw(assetId_, amount_) | |
1719 | 1719 | let targetAmountNormalized = $t04780647938._1 | |
1720 | 1720 | let assetBalances = $t04780647938._2 | |
1721 | 1721 | let rewardBalances = $t04780647938._3 | |
1722 | 1722 | let lpFee = $t04780647938._4 | |
1723 | 1723 | let protocolFee = $t04780647938._5 | |
1724 | 1724 | let sigmaFeePerLpUpdated = $t04780647938._6 | |
1725 | 1725 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1726 | 1726 | let targetDecimals = _getDecimals(assetId_) | |
1727 | 1727 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1728 | 1728 | $Tuple2(nil, finalAmount) | |
1729 | 1729 | } | |
1730 | 1730 | else throw("Strict value is not equal to itself.") | |
1731 | 1731 | } | |
1732 | 1732 | ||
1733 | 1733 | ||
1734 | 1734 | ||
1735 | 1735 | @Callable(i) | |
1736 | 1736 | func getSwap (sourceAssetId_,targetAssetId_,sourceAmount_) = { | |
1737 | 1737 | let storage = _loadStorage() | |
1738 | 1738 | let lpAssetId = storage._1 | |
1739 | 1739 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1740 | 1740 | let assets = _loadAssets() | |
1741 | 1741 | let sourceAssetIndex = valueOrErrorMessage(indexOf(assets, sourceAssetId_), "swap: invalid source asset") | |
1742 | 1742 | if ((sourceAssetIndex == sourceAssetIndex)) | |
1743 | 1743 | then { | |
1744 | 1744 | let targetAssetIndex = valueOrErrorMessage(indexOf(assets, targetAssetId_), "swap: invalid target asset") | |
1745 | 1745 | if ((targetAssetIndex == targetAssetIndex)) | |
1746 | 1746 | then { | |
1747 | 1747 | let sourceAmountNormalized = _normalizeDecimals(sourceAmount_, _getDecimals(sourceAssetId_), lpDecimals, DOWN) | |
1748 | 1748 | let err = if (_validateInt(sourceAmountNormalized, 1, MAX_INT, "swap: invalid source amount")) | |
1749 | 1749 | then _validateStringNotEq(sourceAssetId_, targetAssetId_, "swap: same assets") | |
1750 | 1750 | else false | |
1751 | 1751 | if ((err == err)) | |
1752 | 1752 | then { | |
1753 | 1753 | let $t04934849527 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1754 | 1754 | let targetAmountNormalized = $t04934849527._1 | |
1755 | 1755 | let finalAssetBalances = $t04934849527._2 | |
1756 | 1756 | let finalRewardBalances = $t04934849527._3 | |
1757 | 1757 | let lpFee = $t04934849527._4 | |
1758 | 1758 | let protocolFee = $t04934849527._5 | |
1759 | 1759 | let sigmaFeePerLpUpdated = $t04934849527._6 | |
1760 | 1760 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1761 | 1761 | let targetDecimals = _getDecimals(targetAssetId_) | |
1762 | 1762 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1763 | 1763 | $Tuple2(nil, finalAmount) | |
1764 | 1764 | } | |
1765 | 1765 | else throw("Strict value is not equal to itself.") | |
1766 | 1766 | } | |
1767 | 1767 | else throw("Strict value is not equal to itself.") | |
1768 | 1768 | } | |
1769 | 1769 | else throw("Strict value is not equal to itself.") | |
1770 | 1770 | } | |
1771 | 1771 | ||
1772 | 1772 | ||
1773 | 1773 | ||
1774 | 1774 | @Callable(i) | |
1775 | 1775 | func getClaim (user_) = { | |
1776 | 1776 | let user = if ((size(user_) > 0)) | |
1777 | 1777 | then valueOrErrorMessage(addressFromString(user_), "getClaim: invalid user") | |
1778 | 1778 | else i.caller | |
1779 | 1779 | let $t05016950225 = _checkpoint(user) | |
1780 | 1780 | let checkpointActions = $t05016950225._1 | |
1781 | 1781 | let userProfits = $t05016950225._2 | |
1782 | 1782 | $Tuple2(nil, userProfits) | |
1783 | 1783 | } | |
1784 | 1784 | ||
1785 | 1785 | ||
1786 | 1786 | ||
1787 | 1787 | @Callable(i) | |
1788 | 1788 | func getAssetId () = { | |
1789 | 1789 | let storage = _loadStorage() | |
1790 | 1790 | let lpAssetId = storage._1 | |
1791 | 1791 | $Tuple2(nil, toBase58String(lpAssetId)) | |
1792 | 1792 | } | |
1793 | 1793 | ||
1794 | 1794 | ||
1795 | 1795 | ||
1796 | 1796 | @Callable(i) | |
1797 | 1797 | func getDecimals () = { | |
1798 | 1798 | let storage = _loadStorage() | |
1799 | 1799 | let lpAssetId = storage._1 | |
1800 | 1800 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1801 | 1801 | $Tuple2(nil, lpDecimals) | |
1802 | 1802 | } | |
1803 | 1803 | ||
1804 | 1804 | ||
1805 | 1805 | ||
1806 | 1806 | @Callable(i) | |
1807 | 1807 | func checkpoint (user_) = { | |
1808 | 1808 | let err = if (_whenInitialized()) | |
1809 | 1809 | then _whenNotPaused() | |
1810 | 1810 | else false | |
1811 | 1811 | if ((err == err)) | |
1812 | 1812 | then { | |
1813 | 1813 | let user = if ((size(user_) > 0)) | |
1814 | 1814 | then valueOrErrorMessage(addressFromString(user_), "checkpoint: invalid user") | |
1815 | 1815 | else i.caller | |
1816 | 1816 | _checkpoint(user) | |
1817 | 1817 | } | |
1818 | 1818 | else throw("Strict value is not equal to itself.") | |
1819 | 1819 | } | |
1820 | 1820 | ||
1821 | 1821 | ||
1822 | 1822 | ||
1823 | 1823 | @Callable(i) | |
1824 | 1824 | func stake () = { | |
1825 | 1825 | let err = if (_whenInitialized()) | |
1826 | 1826 | then _whenNotPaused() | |
1827 | 1827 | else false | |
1828 | 1828 | if ((err == err)) | |
1829 | 1829 | then { | |
1830 | 1830 | let storage = _loadStorage() | |
1831 | 1831 | let lpAssetIdStr = _assetToStr(storage._1) | |
1832 | 1832 | let err1 = if (if (_validateIntEquals(size(i.payments), 1, "stake: invalid payments size")) | |
1833 | 1833 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "stake: invalid payment asset") | |
1834 | 1834 | else false) | |
1835 | 1835 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "stake: invalid payment amount") | |
1836 | 1836 | else false | |
1837 | 1837 | if ((err1 == err1)) | |
1838 | 1838 | then { | |
1839 | 1839 | let $t05143751497 = _checkpoint(i.caller) | |
1840 | 1840 | let checkpointActions = $t05143751497._1 | |
1841 | 1841 | let userProfits = $t05143751497._2 | |
1842 | 1842 | $Tuple2(((checkpointActions ++ _saveUserLp(i.caller, (_loadUserLp(i.caller) + i.payments[0].amount))) ++ _saveTotalLp((_loadTotalLp() + i.payments[0].amount))), unit) | |
1843 | 1843 | } | |
1844 | 1844 | else throw("Strict value is not equal to itself.") | |
1845 | 1845 | } | |
1846 | 1846 | else throw("Strict value is not equal to itself.") | |
1847 | 1847 | } | |
1848 | 1848 | ||
1849 | 1849 | ||
1850 | 1850 | ||
1851 | 1851 | @Callable(i) | |
1852 | 1852 | func unstake (amount_) = { | |
1853 | 1853 | let err = if (_whenInitialized()) | |
1854 | 1854 | then _whenNotPaused() | |
1855 | 1855 | else false | |
1856 | 1856 | if ((err == err)) | |
1857 | 1857 | then { | |
1858 | 1858 | let storage = _loadStorage() | |
1859 | 1859 | let lpAssetId = storage._1 | |
1860 | 1860 | let userLp = _loadUserLp(i.caller) | |
1861 | 1861 | let err1 = _validateInt(amount_, 0, userLp, "unstake: invalid amount") | |
1862 | 1862 | if ((err1 == err1)) | |
1863 | 1863 | then { | |
1864 | 1864 | let $t05200852068 = _checkpoint(i.caller) | |
1865 | 1865 | let checkpointActions = $t05200852068._1 | |
1866 | 1866 | let userProfits = $t05200852068._2 | |
1867 | 1867 | $Tuple2(((([ScriptTransfer(i.caller, amount_, lpAssetId)] ++ checkpointActions) ++ _saveUserLp(i.caller, (userLp - amount_))) ++ _saveTotalLp((_loadTotalLp() - amount_))), unit) | |
1868 | 1868 | } | |
1869 | 1869 | else throw("Strict value is not equal to itself.") | |
1870 | 1870 | } | |
1871 | 1871 | else throw("Strict value is not equal to itself.") | |
1872 | 1872 | } | |
1873 | 1873 | ||
1874 | 1874 | ||
1875 | 1875 | ||
1876 | 1876 | @Callable(i) | |
1877 | 1877 | func claim (user_) = { | |
1878 | 1878 | let err = if (_whenInitialized()) | |
1879 | 1879 | then _whenNotPaused() | |
1880 | 1880 | else false | |
1881 | 1881 | if ((err == err)) | |
1882 | 1882 | then { | |
1883 | 1883 | let user = if ((size(user_) > 0)) | |
1884 | 1884 | then valueOrErrorMessage(addressFromString(user_), "claim: invalid user") | |
1885 | 1885 | else i.caller | |
1886 | 1886 | let storage = _loadStorage() | |
1887 | 1887 | let lpAssetId = storage._1 | |
1888 | 1888 | let lpAssetIdStr = _assetToStr(lpAssetId) | |
1889 | 1889 | let assets = [lpAssetIdStr, _loadAssets()] | |
1890 | 1890 | let maxIndex = (size(assets) - 1) | |
1891 | 1891 | let $t05275652812 = _checkpoint(user) | |
1892 | 1892 | let checkpointActions = $t05275652812._1 | |
1893 | 1893 | let userProfits = $t05275652812._2 | |
1894 | 1894 | func foldFunc (acc,profit) = { | |
1895 | 1895 | let index = acc._1 | |
1896 | 1896 | if (if ((maxIndex >= index)) | |
1897 | 1897 | then (profit > 0) | |
1898 | 1898 | else false) | |
1899 | 1899 | then { | |
1900 | 1900 | let asset = assets[index] | |
1901 | 1901 | $Tuple3((index + 1), (acc._2 :+ 0), (acc._3 :+ ScriptTransfer(user, profit, _strToAsset(asset)))) | |
1902 | 1902 | } | |
1903 | 1903 | else $Tuple3((index + 1), (acc._2 :+ profit), acc._3) | |
1904 | 1904 | } | |
1905 | 1905 | ||
1906 | 1906 | let $t05319053281 = { | |
1907 | 1907 | let $l = userProfits | |
1908 | 1908 | let $s = size($l) | |
1909 | 1909 | let $acc0 = $Tuple3(0, nil, nil) | |
1910 | 1910 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1911 | 1911 | then $a | |
1912 | 1912 | else foldFunc($a, $l[$i]) | |
1913 | 1913 | ||
1914 | 1914 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1915 | 1915 | then $a | |
1916 | 1916 | else throw("List size exceeds 11") | |
1917 | 1917 | ||
1918 | 1918 | $f0_2($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) | |
1919 | 1919 | } | |
1920 | 1920 | let idx = $t05319053281._1 | |
1921 | 1921 | let userProfitsUpdated = $t05319053281._2 | |
1922 | 1922 | let profitActions = $t05319053281._3 | |
1923 | 1923 | $Tuple2(((profitActions ++ removeByIndex(checkpointActions, 0)) ++ _saveUserProfits(user, userProfitsUpdated)), unit) | |
1924 | 1924 | } | |
1925 | 1925 | else throw("Strict value is not equal to itself.") | |
1926 | 1926 | } | |
1927 | 1927 | ||
1928 | 1928 | ||
1929 | 1929 | ||
1930 | 1930 | @Callable(i) | |
1931 | 1931 | func claimAll (user_) = { | |
1932 | 1932 | let err = if (_whenInitialized()) | |
1933 | 1933 | then _whenNotPaused() | |
1934 | 1934 | else false | |
1935 | 1935 | if ((err == err)) | |
1936 | 1936 | then { | |
1937 | 1937 | let user = if ((size(user_) > 0)) | |
1938 | 1938 | then valueOrErrorMessage(addressFromString(user_), "claimAll: invalid user") | |
1939 | 1939 | else i.caller | |
1940 | 1940 | let storage = _loadStorage() | |
1941 | 1941 | let lpAssetId = storage._1 | |
1942 | 1942 | let lpAssetIdStr = _assetToStr(lpAssetId) | |
1943 | 1943 | let assets = [lpAssetIdStr, _loadAssets()] | |
1944 | 1944 | let maxIndex = (size(assets) - 1) | |
1945 | 1945 | let $t05391153971 = _loadAssetBalances() | |
1946 | 1946 | let assetBalances = $t05391153971._1 | |
1947 | 1947 | let assetTotalSupply = $t05391153971._2 | |
1948 | 1948 | let $t05397754033 = _checkpoint(user) | |
1949 | 1949 | let checkpointActions = $t05397754033._1 | |
1950 | 1950 | let userProfits = $t05397754033._2 | |
1951 | 1951 | func foldFunc (acc,profit) = { | |
1952 | 1952 | let index = acc._1 | |
1953 | 1953 | if ((index == 0)) | |
1954 | 1954 | then $Tuple5((index + 1), (acc._2 :+ 0), acc._3, acc._4, (acc._5 + profit)) | |
1955 | 1955 | else if (if ((index > 0)) | |
1956 | 1956 | then (maxIndex >= index) | |
1957 | 1957 | else false) | |
1958 | 1958 | then { | |
1959 | 1959 | let assetIndex = (index - 1) | |
1960 | 1960 | let balance = assetBalances[assetIndex] | |
1961 | 1961 | $Tuple5((index + 1), (acc._2 :+ 0), (acc._3 :+ (balance + profit)), (acc._4 + profit), acc._5) | |
1962 | 1962 | } | |
1963 | 1963 | else $Tuple5((index + 1), (acc._2 :+ 0), acc._3, acc._4, acc._5) | |
1964 | 1964 | } | |
1965 | 1965 | ||
1966 | 1966 | let $t05456954705 = { | |
1967 | 1967 | let $l = userProfits | |
1968 | 1968 | let $s = size($l) | |
1969 | 1969 | let $acc0 = $Tuple5(0, nil, nil, 0, 0) | |
1970 | 1970 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1971 | 1971 | then $a | |
1972 | 1972 | else foldFunc($a, $l[$i]) | |
1973 | 1973 | ||
1974 | 1974 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1975 | 1975 | then $a | |
1976 | 1976 | else throw("List size exceeds 11") | |
1977 | 1977 | ||
1978 | 1978 | $f0_2($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) | |
1979 | 1979 | } | |
1980 | 1980 | let idx = $t05456954705._1 | |
1981 | 1981 | let userProfitsUpdated = $t05456954705._2 | |
1982 | 1982 | let assetBalancesUpdated = $t05456954705._3 | |
1983 | 1983 | let lpTokensToMint = $t05456954705._4 | |
1984 | 1984 | let lpTokensProfit = $t05456954705._5 | |
1985 | 1985 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1986 | - | $Tuple2((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer( | |
1986 | + | $Tuple2((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(user, (lpTokensToMint + lpTokensProfit), lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalancesUpdated)) ++ removeByIndex(checkpointActions, 0)) ++ _saveUserProfits(user, userProfitsUpdated)), unit) | |
1987 | 1987 | } | |
1988 | 1988 | else throw("Strict value is not equal to itself.") | |
1989 | 1989 | } | |
1990 | 1990 | ||
1991 | 1991 | ||
1992 | 1992 | ||
1993 | 1993 | @Callable(i) | |
1994 | 1994 | func updatePoolFees (lpFeeRate_,protocolFeeRate_) = { | |
1995 | 1995 | let err = if (if (if (_onlyThisContract(i.caller)) | |
1996 | 1996 | then _whenInitialized() | |
1997 | 1997 | else false) | |
1998 | 1998 | then _validateInt(lpFeeRate_, 0, MAX_FEE, "updatePoolFees: invalid lp fee") | |
1999 | 1999 | else false) | |
2000 | 2000 | then _validateInt(protocolFeeRate_, 0, MAX_FEE, "updatePoolFees: invalid protocol fee") | |
2001 | 2001 | else false | |
2002 | 2002 | if ((err == err)) | |
2003 | 2003 | then { | |
2004 | 2004 | let storage = _loadStorage() | |
2005 | 2005 | let storageUpdated = $Tuple10(storage._1, storage._2, storage._3, lpFeeRate_, protocolFeeRate_, storage._6, storage._7, storage._8, storage._9, storage._10) | |
2006 | 2006 | $Tuple2(_saveStorage(storageUpdated), unit) | |
2007 | 2007 | } | |
2008 | 2008 | else throw("Strict value is not equal to itself.") | |
2009 | 2009 | } | |
2010 | 2010 | ||
2011 | 2011 | ||
2012 | 2012 | ||
2013 | 2013 | @Callable(i) | |
2014 | 2014 | func updatePoolParams (maxAllocationAmplifier_,weightAmplifier_,disbalanceCoeff_,feeMaxRate_) = { | |
2015 | 2015 | let err = if (if (if (if (if (_onlyThisContract(i.caller)) | |
2016 | 2016 | then _whenInitialized() | |
2017 | 2017 | else false) | |
2018 | 2018 | then _validateInt(maxAllocationAmplifier_, 0, MAX_AMPLIFIER, "updatePoolParams: invalid maxAllocationAmplifier") | |
2019 | 2019 | else false) | |
2020 | 2020 | then _validateInt(weightAmplifier_, 0, maxAllocationAmplifier_, "updatePoolParams: invalid weightAmplifier") | |
2021 | 2021 | else false) | |
2022 | 2022 | then _validateInt(disbalanceCoeff_, 0, MAX_INT, "updatePoolParams: invalid disbalanceCoeff") | |
2023 | 2023 | else false) | |
2024 | 2024 | then _validateInt(feeMaxRate_, 0, MAX_INT, "updatePoolParams: invalid feeMaxRate") | |
2025 | 2025 | else false | |
2026 | 2026 | if ((err == err)) | |
2027 | 2027 | then { | |
2028 | 2028 | let storage = _loadStorage() | |
2029 | 2029 | let storageUpdated = $Tuple10(storage._1, storage._2, storage._3, storage._4, storage._5, maxAllocationAmplifier_, weightAmplifier_, disbalanceCoeff_, feeMaxRate_, storage._10) | |
2030 | 2030 | $Tuple2(_saveStorage(storageUpdated), unit) | |
2031 | 2031 | } | |
2032 | 2032 | else throw("Strict value is not equal to itself.") | |
2033 | 2033 | } | |
2034 | 2034 | ||
2035 | 2035 | ||
2036 | 2036 | ||
2037 | 2037 | @Callable(i) | |
2038 | 2038 | func migrateBalances () = { | |
2039 | 2039 | let err = if (_onlyThisContract(i.caller)) | |
2040 | 2040 | then _whenInitialized() | |
2041 | 2041 | else false | |
2042 | 2042 | if ((err == err)) | |
2043 | 2043 | then { | |
2044 | 2044 | let storage = _loadStorage() | |
2045 | 2045 | let lpTokenSupply = storage._3 | |
2046 | - | let $ | |
2047 | - | let assetBalances = $ | |
2048 | - | let assetTotalSupply = $ | |
2046 | + | let $t05723657296 = _loadAssetBalances() | |
2047 | + | let assetBalances = $t05723657296._1 | |
2048 | + | let assetTotalSupply = $t05723657296._2 | |
2049 | 2049 | let balancesDiff = max([(assetTotalSupply - lpTokenSupply), 0]) | |
2050 | 2050 | let storageUpdated = $Tuple10(storage._1, storage._2, (lpTokenSupply + balancesDiff), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
2051 | 2051 | $Tuple2(_saveStorage(storageUpdated), unit) | |
2052 | 2052 | } | |
2053 | 2053 | else throw("Strict value is not equal to itself.") | |
2054 | 2054 | } | |
2055 | 2055 | ||
2056 | 2056 | ||
2057 | 2057 | ||
2058 | 2058 | @Callable(i) | |
2059 | 2059 | func pause () = { | |
2060 | 2060 | let err = if (if (_onlyPauser(i.caller)) | |
2061 | 2061 | then _whenInitialized() | |
2062 | 2062 | else false) | |
2063 | 2063 | then _whenNotPaused() | |
2064 | 2064 | else false | |
2065 | 2065 | if ((err == err)) | |
2066 | 2066 | then $Tuple2(_savePause(true), unit) | |
2067 | 2067 | else throw("Strict value is not equal to itself.") | |
2068 | 2068 | } | |
2069 | 2069 | ||
2070 | 2070 | ||
2071 | 2071 | ||
2072 | 2072 | @Callable(i) | |
2073 | 2073 | func unpause () = { | |
2074 | 2074 | let err = if (if (_onlyThisContract(i.caller)) | |
2075 | 2075 | then _whenInitialized() | |
2076 | 2076 | else false) | |
2077 | 2077 | then _whenPaused() | |
2078 | 2078 | else false | |
2079 | 2079 | if ((err == err)) | |
2080 | 2080 | then $Tuple2(_savePause(false), unit) | |
2081 | 2081 | else throw("Strict value is not equal to itself.") | |
2082 | 2082 | } | |
2083 | 2083 | ||
2084 | 2084 | ||
2085 | 2085 | ||
2086 | 2086 | @Callable(i) | |
2087 | 2087 | func updatePauser (pauser_) = { | |
2088 | 2088 | let err = if (if (_onlyThisContract(i.caller)) | |
2089 | 2089 | then _whenInitialized() | |
2090 | 2090 | else false) | |
2091 | 2091 | then _validateAddress(pauser_, "updatePauser: invalid pauser") | |
2092 | 2092 | else false | |
2093 | 2093 | if ((err == err)) | |
2094 | 2094 | then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit) | |
2095 | 2095 | else throw("Strict value is not equal to itself.") | |
2096 | 2096 | } | |
2097 | 2097 | ||
2098 | 2098 | ||
2099 | 2099 | ||
2100 | 2100 | @Callable(i) | |
2101 | 2101 | func updateWatchdog (watchdog_,offset_) = { | |
2102 | 2102 | let err = if (if (if (_onlyThisContract(i.caller)) | |
2103 | 2103 | then _whenInitialized() | |
2104 | 2104 | else false) | |
2105 | 2105 | then _validateAddress(watchdog_, "updateWatchdog: invalid watchdog") | |
2106 | 2106 | else false) | |
2107 | 2107 | then _validateInt(offset_, 0, MAX_INT, "updateWatchdog: invalid offset") | |
2108 | 2108 | else false | |
2109 | 2109 | if ((err == err)) | |
2110 | 2110 | then $Tuple2((_saveWatchdog(addressFromStringValue(watchdog_)) ++ _saveWatchdogOffset(offset_)), unit) | |
2111 | 2111 | else throw("Strict value is not equal to itself.") | |
2112 | 2112 | } | |
2113 | 2113 | ||
2114 | 2114 | ||
2115 | 2115 | ||
2116 | 2116 | @Callable(i) | |
2117 | 2117 | func setMultisig (multisig_) = { | |
2118 | 2118 | let err = if (_onlyThisContract(i.caller)) | |
2119 | 2119 | then _validateAddress(multisig_, "setMultisig: invalid multisig") | |
2120 | 2120 | else false | |
2121 | 2121 | if ((err == err)) | |
2122 | 2122 | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
2123 | 2123 | else throw("Strict value is not equal to itself.") | |
2124 | 2124 | } | |
2125 | 2125 | ||
2126 | 2126 | ||
2127 | 2127 | @Verifier(tx) | |
2128 | 2128 | func verify () = match getString(KEY_MULTISIG) { | |
2129 | 2129 | case multisig: String => | |
2130 | 2130 | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEP)), false) | |
2131 | 2131 | case _ => | |
2132 | 2132 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
2133 | 2133 | } | |
2134 | 2134 |
github/deemru/w8io/026f985 158.11 ms ◑