tx · BJAKoPXKEdFMoca254FBVuz9b5X3cF3cPc7HWVqd1tvr 3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk: -0.02700000 Waves 2023.09.26 10:35 [2772086] smart account 3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk > SELF 0.00000000 Waves
{ "type": 13, "id": "BJAKoPXKEdFMoca254FBVuz9b5X3cF3cPc7HWVqd1tvr", "fee": 2700000, "feeAssetId": null, "timestamp": 1695713694947, "version": 2, "chainId": 84, "sender": "3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk", "senderPublicKey": "EiQRGyXMSPywdZJcLQzgNDBrrvLUyhi8X8EeNn1KTjKu", "proofs": [ "5mkgV5bhJHiZD5vmqkj52mF7G3cinWRY6gwA7i7uQARaEKANnzeyp5kmSidn7dZ8tnHiGGFdM4L9mTkXmawquRgq" ], "script": "base64:BgIzCAISCAoGCAgICAgBEgASABIDCgEEEgASAwoBARIAEgMKAQgSAwoBBBIECgIIARIDCgEIMAALdXNkbkFzc2V0SWQBILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAA1wdXp6bGVBc3NldElkASDxGv4l/vaZOPRpKsTf4RLWR7LGyg66Nwmvd20fjqLlYwALdXNkdEFzc2V0SWQBIB6UBxNSdqEllf3IYaiCXxB/3zpPKbv8mkY/Wv02T5+RAA51c2R0UHB0QXNzZXRJZAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kADnVzZG5Bc3NldElkU3RyAixERzJ4RmtQZER3S1VvQmt6R0FoUXRMcFNHemZYTGlDWVBFemVLSDJBZDI0cAAQcHV6emxlQXNzZXRJZFN0cgIsSEVCOFFhdzl4cldwV3M4dEhzaUFUWUdCV0RCdFAyUzdrY1BBTHJNdTQzQVMADnVzZHRBc3NldElkU3RyAiwzNE45WWNFRVRMV245M3FZUTY0RXNQMXg4OXRTcnVKVTQ0UnJFTVNYWEVQSgARdXNkdFBwdEFzc2V0SWRTdHICLDl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AQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBEXRyYW5zZmVyT3duZXJzaGlwAQ9uZXdPd25lckFkZHJlc3MDCQECIT0CCQClCAEIBQFpBmNhbGxlcgkBDHRyeUdldFN0cmluZwECEHN0YXRpY19wb29sT3duZXIJAAIBAid0aGlzIGNhbGwgYXZhaWxhYmxlIG9ubHkgZm9yIHBvb2wgb3duZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgIQc3RhdGljX3Bvb2xPd25lcgUPbmV3T3duZXJBZGRyZXNzBQNuaWwBAnR4AQZ2ZXJpZnkAAwkBCmlzU2h1dGRvd24ABwMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxtYXN0ZXJQdWJLZXnH1+Gf", "height": 2772086, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FjBfhctLNEGBhmDTMiNyRt6anbei8C2NMC1t9CVpETg4 Next: CHkoz4aMTqfr3rnW2MEkCtMVD4ETyGG1rrSKgApwxNkc Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let usdnAssetId = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
5 | 5 | ||
6 | 6 | let puzzleAssetId = base58'HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS' | |
7 | 7 | ||
8 | 8 | let usdtAssetId = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' | |
9 | 9 | ||
10 | 10 | let usdtPptAssetId = base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
11 | 11 | ||
12 | 12 | let usdnAssetIdStr = "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p" | |
13 | 13 | ||
14 | 14 | let puzzleAssetIdStr = "HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS" | |
15 | 15 | ||
16 | 16 | let usdtAssetIdStr = "34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ" | |
17 | 17 | ||
18 | 18 | let usdtPptAssetIdStr = "9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi" | |
19 | 19 | ||
20 | 20 | let parentPoolAddress = Address(base58'3PFDgzu1UtswAkCMxqqQjbTeHaX4cMab8Kh') | |
21 | 21 | ||
22 | 22 | let masterAddress = Address(base58'3PLjwHcz9NEuaTo63NZR9B9okQiKQxZSbmf') | |
23 | 23 | ||
24 | 24 | let masterPubKey = base58'4z8CKSYQBKkzx7PBb5uBP1YPa6YAHRNTApW1sQVHT5eU' | |
25 | 25 | ||
26 | 26 | func tryGetInteger (key) = match getInteger(this, key) { | |
27 | 27 | case b: Int => | |
28 | 28 | b | |
29 | 29 | case _ => | |
30 | 30 | 0 | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func tryGetBinary (key) = match getBinary(this, key) { | |
35 | 35 | case b: ByteVector => | |
36 | 36 | b | |
37 | 37 | case _ => | |
38 | 38 | base58'' | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func tryGetString (key) = match getString(this, key) { | |
43 | 43 | case b: String => | |
44 | 44 | b | |
45 | 45 | case _ => | |
46 | 46 | "" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getAssetString (assetId) = match assetId { | |
51 | 51 | case b: ByteVector => | |
52 | 52 | toBase58String(b) | |
53 | 53 | case _ => | |
54 | 54 | "WAVES" | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES")) | |
59 | 59 | then unit | |
60 | 60 | else fromBase58String(assetIdStr) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func addAssetBytesToList (accum,item) = (accum ++ [getAssetBytes(item)]) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func addAssetWeightToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_weight"))]) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func addAssetDecimalsToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_decimals"))]) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func addAssetScaleToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_scale"))]) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func addIntToList (accum,item) = (accum ++ [parseIntValue(item)]) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | let T = tryGetInteger("static_tokensAmount") | |
79 | 79 | ||
80 | 80 | let assetIds = { | |
81 | 81 | let $l = split(tryGetString("static_tokenIds"), ",") | |
82 | 82 | let $s = size($l) | |
83 | 83 | let $acc0 = nil | |
84 | 84 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
85 | 85 | then $a | |
86 | 86 | else addAssetBytesToList($a, $l[$i]) | |
87 | 87 | ||
88 | 88 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
89 | 89 | then $a | |
90 | 90 | else throw("List size exceeds 10") | |
91 | 91 | ||
92 | 92 | $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) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | let AssetsWeights = { | |
96 | 96 | let $l = assetIds | |
97 | 97 | let $s = size($l) | |
98 | 98 | let $acc0 = nil | |
99 | 99 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
100 | 100 | then $a | |
101 | 101 | else addAssetWeightToList($a, $l[$i]) | |
102 | 102 | ||
103 | 103 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
104 | 104 | then $a | |
105 | 105 | else throw("List size exceeds 10") | |
106 | 106 | ||
107 | 107 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | let Decimals = { | |
111 | 111 | let $l = assetIds | |
112 | 112 | let $s = size($l) | |
113 | 113 | let $acc0 = nil | |
114 | 114 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
115 | 115 | then $a | |
116 | 116 | else addAssetDecimalsToList($a, $l[$i]) | |
117 | 117 | ||
118 | 118 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
119 | 119 | then $a | |
120 | 120 | else throw("List size exceeds 10") | |
121 | 121 | ||
122 | 122 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | let Scales = { | |
126 | 126 | let $l = assetIds | |
127 | 127 | let $s = size($l) | |
128 | 128 | let $acc0 = nil | |
129 | 129 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
130 | 130 | then $a | |
131 | 131 | else addAssetScaleToList($a, $l[$i]) | |
132 | 132 | ||
133 | 133 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
134 | 134 | then $a | |
135 | 135 | else throw("List size exceeds 10") | |
136 | 136 | ||
137 | 137 | $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | let Fee = tryGetInteger("static_fee") | |
141 | 141 | ||
142 | 142 | let AssetsWeightsDecimals = 4 | |
143 | 143 | ||
144 | 144 | let Scale = 10000 | |
145 | 145 | ||
146 | 146 | let Scale8 = 100000000 | |
147 | 147 | ||
148 | 148 | let FeeScale = 10000 | |
149 | 149 | ||
150 | 150 | let PoolTokenDecimals = 8 | |
151 | 151 | ||
152 | 152 | let PoolTokenScale = pow(10, 0, PoolTokenDecimals, 0, 0, HALFUP) | |
153 | 153 | ||
154 | 154 | let earnedAssets = assetIds | |
155 | 155 | ||
156 | 156 | func isShutdown () = match getBoolean(Address(base58'3PEpv9hRFWEEBU22WRnLsw1bH4YGtcU728o'), "is_shutdown") { | |
157 | 157 | case x: Boolean => | |
158 | 158 | x | |
159 | 159 | case _ => | |
160 | 160 | false | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getCurrentTokenBalance (tokenType) = { | |
165 | 165 | let tokenId = getAssetString(assetIds[tokenType]) | |
166 | 166 | tryGetInteger((("global_" + tokenId) + "_balance")) | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func calculatePIssued (amount,tokenId) = { | |
171 | 171 | let Psupply = tryGetInteger("global_poolToken_amount") | |
172 | 172 | let Balance = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance")) | |
173 | 173 | fraction(amount, Psupply, Balance, DOWN) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getMinPIssued (payments) = { | |
178 | 178 | func handler (accum,current) = { | |
179 | 179 | let PIssued = calculatePIssued(current.amount, current.assetId) | |
180 | 180 | if ((PIssued == 0)) | |
181 | 181 | then throw("one of the tokens amounts is too low") | |
182 | 182 | else if (if ((accum == 0)) | |
183 | 183 | then true | |
184 | 184 | else (accum > PIssued)) | |
185 | 185 | then PIssued | |
186 | 186 | else accum | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | let minPIssed = { | |
190 | 190 | let $l = payments | |
191 | 191 | let $s = size($l) | |
192 | 192 | let $acc0 = 0 | |
193 | 193 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
194 | 194 | then $a | |
195 | 195 | else handler($a, $l[$i]) | |
196 | 196 | ||
197 | 197 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
198 | 198 | then $a | |
199 | 199 | else throw("List size exceeds 10") | |
200 | 200 | ||
201 | 201 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
202 | 202 | } | |
203 | 203 | minPIssed | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func calculateUsdnValue (assetId,amount,aBalance,givenUsdnBalance) = { | |
208 | 208 | let usdnInPool = indexOf(assetIds, usdnAssetId) | |
209 | 209 | let puzzleInPool = indexOf(assetIds, puzzleAssetId) | |
210 | 210 | let usdtInPool = indexOf(assetIds, usdtAssetId) | |
211 | 211 | let usdtPptInPool = indexOf(assetIds, usdtPptAssetId) | |
212 | 212 | let wavesInPool = indexOf(assetIds, unit) | |
213 | 213 | let assetWeight = tryGetInteger((("static_" + getAssetString(assetId)) + "_weight")) | |
214 | 214 | let feeAssetStr = tryGetString("static_feeToken") | |
215 | 215 | if ((feeAssetStr == puzzleAssetIdStr)) | |
216 | 216 | then { | |
217 | 217 | let puzzleWeight = AssetsWeights[value(indexOf(assetIds, puzzleAssetId))] | |
218 | 218 | let puzzleBalance = tryGetInteger((("global_" + puzzleAssetIdStr) + "_balance")) | |
219 | 219 | let amountInPuzzle = fraction(amount, (puzzleBalance / puzzleWeight), (aBalance / assetWeight)) | |
220 | 220 | let puzzlePrice = getIntegerValue(parentPoolAddress, "global_lastPuzzlePrice") | |
221 | 221 | fraction((amountInPuzzle * puzzlePrice), 1, Scale8) | |
222 | 222 | } | |
223 | 223 | else if ((feeAssetStr == usdtAssetIdStr)) | |
224 | 224 | then { | |
225 | 225 | let usdtWeight = AssetsWeights[value(usdtInPool)] | |
226 | 226 | let usdtBalance = tryGetInteger((("global_" + usdtAssetIdStr) + "_balance")) | |
227 | 227 | fraction(amount, (usdtBalance / usdtWeight), (aBalance / assetWeight)) | |
228 | 228 | } | |
229 | 229 | else if ((feeAssetStr == usdtPptAssetIdStr)) | |
230 | 230 | then { | |
231 | 231 | let usdtWeight = AssetsWeights[value(usdtPptInPool)] | |
232 | 232 | let usdtBalance = tryGetInteger((("global_" + usdtPptAssetIdStr) + "_balance")) | |
233 | 233 | fraction(amount, (usdtBalance / usdtWeight), (aBalance / assetWeight)) | |
234 | 234 | } | |
235 | 235 | else if ((feeAssetStr == usdnAssetIdStr)) | |
236 | 236 | then { | |
237 | 237 | let usdnWeight = AssetsWeights[value(indexOf(assetIds, usdnAssetId))] | |
238 | 238 | let usdnBalance = match givenUsdnBalance { | |
239 | 239 | case x: Int => | |
240 | 240 | givenUsdnBalance | |
241 | 241 | case _ => | |
242 | 242 | tryGetInteger((("global_" + getAssetString(usdnAssetId)) + "_balance")) | |
243 | 243 | } | |
244 | 244 | fraction(amount, (value(usdnBalance) / usdnWeight), (aBalance / assetWeight)) | |
245 | 245 | } | |
246 | 246 | else { | |
247 | 247 | let wavesWeight = 3000 | |
248 | 248 | let wBalance = (tryGetInteger("global_WAVES_balance") / 50) | |
249 | 249 | fraction(amount, (wBalance / wavesWeight), (aBalance / assetWeight)) | |
250 | 250 | } | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func checkTokensValidity (payments) = { | |
255 | 255 | func handler1 (accum,payment) = (accum ++ [payment.assetId]) | |
256 | 256 | ||
257 | 257 | let ids = { | |
258 | 258 | let $l = payments | |
259 | 259 | let $s = size($l) | |
260 | 260 | let $acc0 = nil | |
261 | 261 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
262 | 262 | then $a | |
263 | 263 | else handler1($a, $l[$i]) | |
264 | 264 | ||
265 | 265 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
266 | 266 | then $a | |
267 | 267 | else throw("List size exceeds 10") | |
268 | 268 | ||
269 | 269 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
270 | 270 | } | |
271 | 271 | if ((ids == ids)) | |
272 | 272 | then { | |
273 | 273 | func handler2 (accum,assetId) = if ((indexOf(ids, assetId) != unit)) | |
274 | 274 | then (accum + 1) | |
275 | 275 | else throw(("asset not attached: " + getAssetString(assetId))) | |
276 | 276 | ||
277 | 277 | let checks = { | |
278 | 278 | let $l = assetIds | |
279 | 279 | let $s = size($l) | |
280 | 280 | let $acc0 = 0 | |
281 | 281 | func $f5_1 ($a,$i) = if (($i >= $s)) | |
282 | 282 | then $a | |
283 | 283 | else handler2($a, $l[$i]) | |
284 | 284 | ||
285 | 285 | func $f5_2 ($a,$i) = if (($i >= $s)) | |
286 | 286 | then $a | |
287 | 287 | else throw("List size exceeds 10") | |
288 | 288 | ||
289 | 289 | $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
290 | 290 | } | |
291 | 291 | if ((checks == checks)) | |
292 | 292 | then true | |
293 | 293 | else throw("Strict value is not equal to itself.") | |
294 | 294 | } | |
295 | 295 | else throw("Strict value is not equal to itself.") | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func handlePoolTokensAdd (PIssued,payments,userAddress,needChange) = { | |
300 | 300 | func getTokenPaymentAmount (tokenId) = { | |
301 | 301 | func handler (accum,payment) = if ((payment.assetId == tokenId)) | |
302 | 302 | then payment.amount | |
303 | 303 | else accum | |
304 | 304 | ||
305 | 305 | let $l = payments | |
306 | 306 | let $s = size($l) | |
307 | 307 | let $acc0 = 0 | |
308 | 308 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
309 | 309 | then $a | |
310 | 310 | else handler($a, $l[$i]) | |
311 | 311 | ||
312 | 312 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
313 | 313 | then $a | |
314 | 314 | else throw("List size exceeds 10") | |
315 | 315 | ||
316 | 316 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | func handleTokenChange (accum,tokenId) = { | |
320 | 320 | let Bk = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance")) | |
321 | 321 | let PSupply = tryGetInteger("global_poolToken_amount") | |
322 | 322 | let tokenDecimals = tryGetInteger((("static_" + getAssetString(tokenId)) + "_scale")) | |
323 | 323 | let Dk = fraction((fraction((PSupply + PIssued), tokenDecimals, PSupply, CEILING) - tokenDecimals), Bk, tokenDecimals, CEILING) | |
324 | 324 | let paymentAmount = getTokenPaymentAmount(tokenId) | |
325 | 325 | let toReturn = ((if ((paymentAmount != 0)) | |
326 | 326 | then paymentAmount | |
327 | 327 | else 0) - Dk) | |
328 | 328 | let t = if (if (needChange) | |
329 | 329 | then (toReturn > 0) | |
330 | 330 | else false) | |
331 | 331 | then [ScriptTransfer(userAddress, toReturn, tokenId)] | |
332 | 332 | else nil | |
333 | 333 | ((accum ++ t) ++ [IntegerEntry((("global_" + getAssetString(tokenId)) + "_balance"), (Bk + Dk))]) | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | let $l = assetIds | |
337 | 337 | let $s = size($l) | |
338 | 338 | let $acc0 = nil | |
339 | 339 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
340 | 340 | then $a | |
341 | 341 | else handleTokenChange($a, $l[$i]) | |
342 | 342 | ||
343 | 343 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
344 | 344 | then $a | |
345 | 345 | else throw("List size exceeds 10") | |
346 | 346 | ||
347 | 347 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func handlePoolTokensRedeem (PRedeemed,userAddress) = { | |
352 | 352 | func handleTokenRedeem (accum,tokenId) = { | |
353 | 353 | let Bk = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance")) | |
354 | 354 | let PSupply = tryGetInteger("global_poolToken_amount") | |
355 | 355 | let tokenDecimals = tryGetInteger((("static_" + getAssetString(tokenId)) + "_scale")) | |
356 | 356 | let amount = toInt(fraction((toBigInt(Scale8) - fraction(toBigInt((PSupply - PRedeemed)), toBigInt(Scale8), toBigInt(PSupply), CEILING)), toBigInt(Bk), toBigInt(Scale8), DOWN)) | |
357 | 357 | (accum ++ [IntegerEntry((("global_" + getAssetString(tokenId)) + "_balance"), (Bk - amount)), ScriptTransfer(userAddress, amount, tokenId)]) | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | let $l = assetIds | |
361 | 361 | let $s = size($l) | |
362 | 362 | let $acc0 = nil | |
363 | 363 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
364 | 364 | then $a | |
365 | 365 | else handleTokenRedeem($a, $l[$i]) | |
366 | 366 | ||
367 | 367 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
368 | 368 | then $a | |
369 | 369 | else throw("List size exceeds 10") | |
370 | 370 | ||
371 | 371 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | func calculateOutAmount (AmountIn,assetIn,assetOut,BalanceIn,BalanceOut) = { | |
376 | 376 | let IndexIn = value(indexOf(assetIds, assetIn)) | |
377 | 377 | let IndexOut = value(indexOf(assetIds, assetOut)) | |
378 | 378 | if ((IndexIn == IndexOut)) | |
379 | 379 | then AmountIn | |
380 | 380 | else fraction(BalanceOut, ((Scale8 * Scale8) - toInt(pow(fraction(toBigInt(BalanceIn), toBigInt((Scale8 * Scale8)), toBigInt((BalanceIn + AmountIn)), HALFUP), 16, toBigInt(fraction(AssetsWeights[IndexIn], 10000, AssetsWeights[IndexOut])), 4, 16, CEILING))), (Scale8 * Scale8), DOWN) | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func getTokenBalance (assetId) = match assetId { | |
385 | 385 | case t: ByteVector => | |
386 | 386 | assetBalance(this, t) | |
387 | 387 | case _ => | |
388 | 388 | wavesBalance(this).available | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func calculateCurrentAssetInterest (assetId,assetIdStr,aBalance,tokenEarningsLastCheck) = { | |
393 | 393 | let totalStaked = tryGetInteger("global_indexStaked") | |
394 | 394 | let tokenBalanceLastCheck = tokenEarningsLastCheck | |
395 | 395 | let currentBalanceDelta = (getTokenBalance(assetId) - aBalance) | |
396 | 396 | let currentTokenEarnings = if ((currentBalanceDelta > tokenBalanceLastCheck)) | |
397 | 397 | then currentBalanceDelta | |
398 | 398 | else tokenBalanceLastCheck | |
399 | 399 | let newEarnings = (currentTokenEarnings - tokenBalanceLastCheck) | |
400 | 400 | let newInterest = if ((totalStaked == 0)) | |
401 | 401 | then 0 | |
402 | 402 | else fraction(newEarnings, Scale8, totalStaked) | |
403 | 403 | let lastCheckInterest = tryGetInteger((("global_lastCheck_" + assetIdStr) + "_interest")) | |
404 | 404 | (lastCheckInterest + newInterest) | |
405 | 405 | } | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | func claimResult (address) = { | |
409 | 409 | let addressStr = toString(address) | |
410 | 410 | let puzzleAmount = tryGetInteger((addressStr + "_indexStaked")) | |
411 | 411 | func handler (accum,assetId) = { | |
412 | 412 | let assetIdStr = getAssetString(assetId) | |
413 | 413 | let aBalance = tryGetInteger((("global_" + getAssetString(assetId)) + "_balance")) | |
414 | 414 | let tokenEarningsLastCheck = tryGetInteger((("global_lastCheck_" + assetIdStr) + "_earnings")) | |
415 | 415 | let currentTokenInterest = calculateCurrentAssetInterest(assetId, assetIdStr, aBalance, tokenEarningsLastCheck) | |
416 | 416 | let currentTokenEarnings = max([tokenEarningsLastCheck, (getTokenBalance(assetId) - aBalance)]) | |
417 | 417 | let rewardAmount = fraction(puzzleAmount, (currentTokenInterest - tryGetInteger((((addressStr + "_lastCheck_") + assetIdStr) + "_interest"))), Scale8) | |
418 | 418 | let transfer = if ((rewardAmount == 0)) | |
419 | 419 | then nil | |
420 | 420 | else [ScriptTransfer(address, rewardAmount, assetId)] | |
421 | 421 | $Tuple2(((accum._1 ++ transfer) ++ [IntegerEntry((("global_lastCheck_" + assetIdStr) + "_earnings"), (currentTokenEarnings - rewardAmount)), IntegerEntry((("global_lastCheck_" + assetIdStr) + "_interest"), currentTokenInterest), IntegerEntry((((addressStr + "_lastCheck_") + assetIdStr) + "_interest"), currentTokenInterest)]), (accum._2 + calculateUsdnValue(assetId, rewardAmount, aBalance, unit))) | |
422 | 422 | } | |
423 | 423 | ||
424 | 424 | let accum = { | |
425 | 425 | let $l = earnedAssets | |
426 | 426 | let $s = size($l) | |
427 | 427 | let $acc0 = $Tuple2(nil, 0) | |
428 | 428 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
429 | 429 | then $a | |
430 | 430 | else handler($a, $l[$i]) | |
431 | 431 | ||
432 | 432 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
433 | 433 | then $a | |
434 | 434 | else throw("List size exceeds 10") | |
435 | 435 | ||
436 | 436 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
437 | 437 | } | |
438 | 438 | $Tuple2((accum._1 ++ [IntegerEntry((addressStr + "_claimedRewardValue"), (tryGetInteger((addressStr + "_claimedRewardValue")) + accum._2)), IntegerEntry((addressStr + "_lastClaim"), lastBlock.timestamp)]), accum._2) | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | func indexStakeResult (addressStr,amount) = { | |
443 | 443 | let li = claimResult(addressFromStringValue(addressStr))._1 | |
444 | 444 | (li ++ [IntegerEntry((addressStr + "_indexStaked"), (tryGetInteger((addressStr + "_indexStaked")) + amount)), IntegerEntry("global_indexStaked", (tryGetInteger("global_indexStaked") + amount))]) | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func sum (accum,n) = (accum + parseIntValue(n)) | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func preInit (assetIdsStr,assetWeightsStr,baseTokenIdStr,poolDomain,poolOwner,fee) = { | |
453 | 453 | let poolOwnerAddress = Address(fromBase58String(poolOwner)) | |
454 | 454 | if (isShutdown()) | |
455 | 455 | then throw("contract is on stop") | |
456 | 456 | else if ((this != i.caller)) | |
457 | 457 | then throw("admin only") | |
458 | 458 | else if ((size(poolDomain) > 13)) | |
459 | 459 | then throw("too large pool domain") | |
460 | 460 | else if (if ((fee > 500)) | |
461 | 461 | then true | |
462 | 462 | else (50 > fee)) | |
463 | 463 | then throw("fee value must be between 50 and 500 (0.5-5%)") | |
464 | 464 | else if (if (if (if (if ((indexOf(assetIdsStr, puzzleAssetIdStr) == unit)) | |
465 | 465 | then (indexOf(assetIdsStr, usdnAssetIdStr) == unit) | |
466 | 466 | else false) | |
467 | 467 | then (indexOf(assetIdsStr, usdtAssetIdStr) == unit) | |
468 | 468 | else false) | |
469 | 469 | then (indexOf(assetIdsStr, "WAVES") == unit) | |
470 | 470 | else false) | |
471 | 471 | then (indexOf(assetIdsStr, usdtPptAssetIdStr) == unit) | |
472 | 472 | else false) | |
473 | 473 | then throw("pool must have USDT-WXG, USDT-PPT, USDN, WAVES or PUZZLE in the composition") | |
474 | 474 | else { | |
475 | 475 | let assetIdsStrLi = split(assetIdsStr, ",") | |
476 | 476 | let assetIdsLi = { | |
477 | 477 | let $l = assetIdsStrLi | |
478 | 478 | let $s = size($l) | |
479 | 479 | let $acc0 = nil | |
480 | 480 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
481 | 481 | then $a | |
482 | 482 | else addAssetBytesToList($a, $l[$i]) | |
483 | 483 | ||
484 | 484 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
485 | 485 | then $a | |
486 | 486 | else throw("List size exceeds 10") | |
487 | 487 | ||
488 | 488 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
489 | 489 | } | |
490 | 490 | let assetWeightsStrLi = split(assetWeightsStr, ",") | |
491 | 491 | let assetWeightsSum = { | |
492 | 492 | let $l = assetWeightsStrLi | |
493 | 493 | let $s = size($l) | |
494 | 494 | let $acc0 = 0 | |
495 | 495 | func $f5_1 ($a,$i) = if (($i >= $s)) | |
496 | 496 | then $a | |
497 | 497 | else sum($a, $l[$i]) | |
498 | 498 | ||
499 | 499 | func $f5_2 ($a,$i) = if (($i >= $s)) | |
500 | 500 | then $a | |
501 | 501 | else throw("List size exceeds 10") | |
502 | 502 | ||
503 | 503 | $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
504 | 504 | } | |
505 | 505 | let feeAssetStr = if ((indexOf(assetIdsStr, usdnAssetIdStr) != unit)) | |
506 | 506 | then usdnAssetIdStr | |
507 | 507 | else if ((indexOf(assetIdsStr, "WAVES") != unit)) | |
508 | 508 | then "WAVES" | |
509 | 509 | else if ((indexOf(assetIdsStr, usdtAssetIdStr) != unit)) | |
510 | 510 | then usdtAssetIdStr | |
511 | 511 | else if ((indexOf(assetIdsStr, puzzleAssetIdStr) != unit)) | |
512 | 512 | then puzzleAssetIdStr | |
513 | 513 | else usdtPptAssetIdStr | |
514 | 514 | func addTokenDataEntries (accum,assetNum) = if ((assetNum >= size(assetIdsLi))) | |
515 | 515 | then accum | |
516 | 516 | else { | |
517 | 517 | let assetDecimals = match assetIdsLi[assetNum] { | |
518 | 518 | case x: ByteVector => | |
519 | 519 | value(assetInfo(x)).decimals | |
520 | 520 | case _ => | |
521 | 521 | 8 | |
522 | 522 | } | |
523 | 523 | (accum ++ [IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_scale"), pow(10, 0, assetDecimals, 0, 0, DOWN)), IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_decimals"), assetDecimals), IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_weight"), value(parseInt(assetWeightsStrLi[assetNum])))]) | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | if ((assetWeightsSum != 10000)) | |
527 | 527 | then throw("sum of token weights must be equal to 10000") | |
528 | 528 | else ({ | |
529 | 529 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
530 | 530 | let $s = size($l) | |
531 | 531 | let $acc0 = nil | |
532 | 532 | func $f6_1 ($a,$i) = if (($i >= $s)) | |
533 | 533 | then $a | |
534 | 534 | else addTokenDataEntries($a, $l[$i]) | |
535 | 535 | ||
536 | 536 | func $f6_2 ($a,$i) = if (($i >= $s)) | |
537 | 537 | then $a | |
538 | 538 | else throw("List size exceeds 10") | |
539 | 539 | ||
540 | 540 | $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
541 | 541 | } ++ [StringEntry("static_tokenIds", assetIdsStr), StringEntry("static_feeToken", feeAssetStr), StringEntry("static_tokenWeights", assetWeightsStr), IntegerEntry("static_tokensAmount", size(assetIdsLi)), StringEntry("static_poolDomain", poolDomain), StringEntry("static_baseTokenId", baseTokenIdStr), StringEntry("static_poolOwner", poolOwner), IntegerEntry("static_fee", fee)]) | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | ||
547 | 547 | @Callable(i) | |
548 | 548 | func deInit () = if (isShutdown()) | |
549 | 549 | then throw("contract is on stop") | |
550 | 550 | else if ((i.caller != this)) | |
551 | 551 | then throw("admin only") | |
552 | 552 | else [IntegerEntry("global_wasInited", 0)] | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | ||
556 | 556 | @Callable(i) | |
557 | 557 | func init () = { | |
558 | 558 | func prepareList () = { | |
559 | 559 | func handler (accum,n) = (accum ++ [IntegerEntry((("global_" + getAssetString(n.assetId)) + "_balance"), n.amount)]) | |
560 | 560 | ||
561 | 561 | let $l = i.payments | |
562 | 562 | let $s = size($l) | |
563 | 563 | let $acc0 = nil | |
564 | 564 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
565 | 565 | then $a | |
566 | 566 | else handler($a, $l[$i]) | |
567 | 567 | ||
568 | 568 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
569 | 569 | then $a | |
570 | 570 | else throw("List size exceeds 10") | |
571 | 571 | ||
572 | 572 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | func calculatePoolTokensAmount (payments) = { | |
576 | 576 | func handler (accum,pmt) = { | |
577 | 577 | let assetId = pmt.assetId | |
578 | 578 | func handler2 (accum,n) = if ((n == assetId)) | |
579 | 579 | then value(indexOf(assetIds, n)) | |
580 | 580 | else accum | |
581 | 581 | ||
582 | 582 | let Token = { | |
583 | 583 | let $l = assetIds | |
584 | 584 | let $s = size($l) | |
585 | 585 | let $acc0 = 1 | |
586 | 586 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
587 | 587 | then $a | |
588 | 588 | else handler2($a, $l[$i]) | |
589 | 589 | ||
590 | 590 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
591 | 591 | then $a | |
592 | 592 | else throw("List size exceeds 10") | |
593 | 593 | ||
594 | 594 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
595 | 595 | } | |
596 | 596 | fraction(accum, pow(pmt.amount, Decimals[Token], AssetsWeights[Token], AssetsWeightsDecimals, 8, FLOOR), Scale8) | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | let $l = payments | |
600 | 600 | let $s = size($l) | |
601 | 601 | let $acc0 = PoolTokenScale | |
602 | 602 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
603 | 603 | then $a | |
604 | 604 | else handler($a, $l[$i]) | |
605 | 605 | ||
606 | 606 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
607 | 607 | then $a | |
608 | 608 | else throw("List size exceeds 10") | |
609 | 609 | ||
610 | 610 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | if (isShutdown()) | |
614 | 614 | then throw("contract is on stop") | |
615 | 615 | else if ((tryGetInteger("global_wasInited") > 0)) | |
616 | 616 | then throw("pool already inited") | |
617 | 617 | else { | |
618 | 618 | let initialPoolTokens = calculatePoolTokensAmount(i.payments) | |
619 | 619 | if ((initialPoolTokens == 0)) | |
620 | 620 | then throw("you need a bigger tokens amount to launch the pool") | |
621 | 621 | else { | |
622 | 622 | let poolTokenIssue = Issue(("PZ " + tryGetString("static_poolDomain")), "Puzzle Swap: pool index token", initialPoolTokens, PoolTokenDecimals, true, unit, 0) | |
623 | 623 | let poolTokenId = calculateAssetId(poolTokenIssue) | |
624 | 624 | (prepareList() ++ [poolTokenIssue, IntegerEntry("global_poolToken_amount", initialPoolTokens), IntegerEntry("global_wasInited", 1), BinaryEntry("global_poolToken_id", poolTokenId), StringEntry("static_poolToken_idStr", getAssetString(poolTokenId)), IntegerEntry((toString(i.caller) + "_indexStaked"), initialPoolTokens), IntegerEntry("global_indexStaked", initialPoolTokens)]) | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | ||
629 | 629 | ||
630 | 630 | ||
631 | 631 | @Callable(i) | |
632 | 632 | func generateIndex (needChange) = if ((size(i.payments) != T)) | |
633 | 633 | then throw(("you need to attach all pool tokens. amount of pool tokens: " + toString(T))) | |
634 | 634 | else if (!(checkTokensValidity(i.payments))) | |
635 | 635 | then throw("wrong assets attached") | |
636 | 636 | else { | |
637 | 637 | let PIssued = getMinPIssued(i.payments) | |
638 | 638 | let reissue = Reissue(getBinaryValue("global_poolToken_id"), PIssued, true) | |
639 | 639 | let result = handlePoolTokensAdd(PIssued, i.payments, i.originCaller, needChange) | |
640 | 640 | $Tuple2((result ++ [reissue, ScriptTransfer(i.caller, PIssued, tryGetBinary("global_poolToken_id")), IntegerEntry("global_poolToken_amount", (tryGetInteger("global_poolToken_amount") + PIssued))]), PIssued) | |
641 | 641 | } | |
642 | 642 | ||
643 | 643 | ||
644 | 644 | ||
645 | 645 | @Callable(i) | |
646 | 646 | func stakeIndex () = { | |
647 | 647 | let addressStr = toString(i.originCaller) | |
648 | 648 | let pmt = i.payments[0] | |
649 | 649 | if ((value(pmt.assetId) != tryGetBinary("global_poolToken_id"))) | |
650 | 650 | then throw("wrong asset attached") | |
651 | 651 | else indexStakeResult(addressStr, pmt.amount) | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | ||
656 | 656 | @Callable(i) | |
657 | 657 | func unstakeIndex (puzzleAmount) = { | |
658 | 658 | let addressStr = toString(i.originCaller) | |
659 | 659 | let puzzleAvailable = tryGetInteger((addressStr + "_indexStaked")) | |
660 | 660 | if (isShutdown()) | |
661 | 661 | then throw("contract is on stop") | |
662 | 662 | else if ((puzzleAmount > puzzleAvailable)) | |
663 | 663 | then throw("you don't have index tokens available") | |
664 | 664 | else if (isShutdown()) | |
665 | 665 | then throw("contract is on stop") | |
666 | 666 | else (claimResult(i.originCaller)._1 ++ [IntegerEntry((addressStr + "_indexStaked"), (puzzleAvailable - puzzleAmount)), IntegerEntry("global_indexStaked", (tryGetInteger("global_indexStaked") - puzzleAmount)), ScriptTransfer(i.caller, puzzleAmount, getBinaryValue("global_poolToken_id"))]) | |
667 | 667 | } | |
668 | 668 | ||
669 | 669 | ||
670 | 670 | ||
671 | 671 | @Callable(i) | |
672 | 672 | func claimIndexRewards () = if (isShutdown()) | |
673 | 673 | then throw("contract is on stop") | |
674 | 674 | else claimResult(i.caller) | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | ||
678 | 678 | @Callable(i) | |
679 | 679 | func evaluateClaim (user) = $Tuple2(nil, claimResult(addressFromStringValue(user))._2) | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(i) | |
684 | 684 | func redeemIndex (sendToOrigin) = { | |
685 | 685 | let pmt = i.payments[0] | |
686 | 686 | if ((pmt.assetId != tryGetBinary("global_poolToken_id"))) | |
687 | 687 | then throw("please attach pool share token") | |
688 | 688 | else if (isShutdown()) | |
689 | 689 | then throw("contract is on stop") | |
690 | 690 | else { | |
691 | 691 | let PRedeemed = pmt.amount | |
692 | 692 | let result = handlePoolTokensRedeem(PRedeemed, if (sendToOrigin) | |
693 | 693 | then i.originCaller | |
694 | 694 | else i.caller) | |
695 | 695 | (result ++ [Burn(tryGetBinary("global_poolToken_id"), PRedeemed), IntegerEntry("global_poolToken_amount", (tryGetInteger("global_poolToken_amount") - PRedeemed))]) | |
696 | 696 | } | |
697 | 697 | } | |
698 | 698 | ||
699 | 699 | ||
700 | 700 | ||
701 | 701 | @Callable(i) | |
702 | 702 | func swap (assetOut,minimum) = { | |
703 | 703 | let pmt = if ((size(i.payments) == 1)) | |
704 | 704 | then value(i.payments[0]) | |
705 | 705 | else throw("please attach exactly one payment") | |
706 | 706 | let AmountIn = value(i.payments[0].amount) | |
707 | 707 | let AssetIn = pmt.assetId | |
708 | 708 | let AssetOut = getAssetBytes(assetOut) | |
709 | 709 | let feeAssetOutStr = tryGetString("static_feeToken") | |
710 | 710 | let feeAssetOut = if ((feeAssetOutStr == "")) | |
711 | 711 | then usdnAssetId | |
712 | 712 | else getAssetBytes(feeAssetOutStr) | |
713 | 713 | let AssetInBalance = tryGetInteger((("global_" + getAssetString(AssetIn)) + "_balance")) | |
714 | 714 | let AssetOutBalance = tryGetInteger((("global_" + assetOut) + "_balance")) | |
715 | 715 | let feeAmountIn = fraction(AmountIn, Fee, FeeScale) | |
716 | 716 | let cleanAmountIn = (AmountIn - feeAmountIn) | |
717 | 717 | let AmountOut = calculateOutAmount(cleanAmountIn, AssetIn, AssetOut, AssetInBalance, AssetOutBalance) | |
718 | 718 | let AssetOutBalance2 = (AssetOutBalance - AmountOut) | |
719 | 719 | let AssetInBalance2 = (AssetInBalance + cleanAmountIn) | |
720 | 720 | let feeAssetOutBalance = if ((feeAssetOut == AssetIn)) | |
721 | 721 | then AssetInBalance2 | |
722 | 722 | else if ((feeAssetOut == AssetOut)) | |
723 | 723 | then AssetOutBalance2 | |
724 | 724 | else tryGetInteger((("global_" + getAssetString(feeAssetOut)) + "_balance")) | |
725 | 725 | let feeAmountOut = calculateOutAmount(feeAmountIn, AssetIn, feeAssetOut, AssetInBalance, feeAssetOutBalance) | |
726 | 726 | if ((minimum > AmountOut)) | |
727 | 727 | then throw("amount to recieve is lower than given one") | |
728 | 728 | else if ((AssetOut == AssetIn)) | |
729 | 729 | then throw("this swap is not allowed") | |
730 | 730 | else if ((0 > (AssetOutBalance - AmountOut))) | |
731 | 731 | then throw("contract is out of reserves") | |
732 | 732 | else if (isShutdown()) | |
733 | 733 | then throw("contract is on stop") | |
734 | 734 | else { | |
735 | 735 | let creatorFee = fraction(feeAmountOut, 1, 10) | |
736 | 736 | let protocolFee = fraction(feeAmountOut, 4, 10) | |
737 | 737 | let stakingTopUp = if (if ((feeAssetOut == usdnAssetId)) | |
738 | 738 | then true | |
739 | 739 | else (feeAssetOut == puzzleAssetId)) | |
740 | 740 | then reentrantInvoke(Address(base58'3PFTbywqxtFfukX3HyT881g4iW5K4QL3FAS'), "topUpReward", nil, [AttachedPayment(feeAssetOut, protocolFee)]) | |
741 | 741 | else unit | |
742 | 742 | if ((stakingTopUp == stakingTopUp)) | |
743 | 743 | then { | |
744 | 744 | let newBalanceIn = AssetInBalance2 | |
745 | 745 | let newBalanceOut = (AssetOutBalance2 - (if ((AssetOut == feeAssetOut)) | |
746 | 746 | then feeAmountOut | |
747 | 747 | else 0)) | |
748 | 748 | let newBalanceFeeAsset = if (if ((feeAssetOut != AssetIn)) | |
749 | 749 | then (feeAssetOut != AssetOut) | |
750 | 750 | else false) | |
751 | 751 | then (feeAssetOutBalance - feeAmountOut) | |
752 | 752 | else unit | |
753 | 753 | let assetInChange = IntegerEntry((("global_" + getAssetString(AssetIn)) + "_balance"), newBalanceIn) | |
754 | 754 | let assetOutChange = IntegerEntry((("global_" + assetOut) + "_balance"), newBalanceOut) | |
755 | 755 | let feeAssetOutChange = if ((newBalanceFeeAsset != unit)) | |
756 | 756 | then IntegerEntry((("global_" + getAssetString(feeAssetOut)) + "_balance"), value(newBalanceFeeAsset)) | |
757 | 757 | else StringEntry("hello", "world") | |
758 | 758 | let volumeUpdate = calculateUsdnValue(AssetIn, AmountIn, AssetInBalance, feeAssetOutBalance) | |
759 | 759 | $Tuple2(([assetOutChange, assetInChange, feeAssetOutChange, ScriptTransfer(i.caller, AmountOut, AssetOut), ScriptTransfer(addressFromStringValue(tryGetString("static_poolOwner")), creatorFee, feeAssetOut), IntegerEntry("global_earnedByOwner", (tryGetInteger("global_earnedByOwner") + creatorFee)), IntegerEntry("global_volume", (tryGetInteger("global_volume") + volumeUpdate))] ++ (if ((stakingTopUp == unit)) | |
760 | 760 | then [ScriptTransfer(Address(base58'3PFWAVKmXjfHXyzJb12jCbhP4Uhi9t4uWiD'), protocolFee, feeAssetOut)] | |
761 | 761 | else nil)), AmountOut) | |
762 | 762 | } | |
763 | 763 | else throw("Strict value is not equal to itself.") | |
764 | 764 | } | |
765 | 765 | } | |
766 | 766 | ||
767 | 767 | ||
768 | 768 | ||
769 | 769 | @Callable(i) | |
770 | 770 | func transferOwnership (newOwnerAddress) = if ((toString(i.caller) != tryGetString("static_poolOwner"))) | |
771 | 771 | then throw("this call available only for pool owner") | |
772 | 772 | else [StringEntry("static_poolOwner", newOwnerAddress)] | |
773 | 773 | ||
774 | 774 | ||
775 | 775 | @Verifier(tx) | |
776 | 776 | func verify () = if (isShutdown()) | |
777 | 777 | then false | |
778 | 778 | else if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
779 | 779 | then true | |
780 | 780 | else sigVerify(tx.bodyBytes, tx.proofs[0], masterPubKey) | |
781 | 781 |
github/deemru/w8io/169f3d6 68.45 ms ◑