tx · 5E7vePqtFBgT3TE3MGPkqUKyDdDpJT6UKxdQf5imCrdq 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.02.09 12:39 [1915915] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "5E7vePqtFBgT3TE3MGPkqUKyDdDpJT6UKxdQf5imCrdq", "fee": 1400000, "feeAssetId": null, "timestamp": 1644399597650, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "2AF9m4wDBoVyZ92M8gRdCQcmAxJ9PPgEEiAZBoogfPyYdrKi1DqS5Fzag9YxKHFEq4VPhmRzCEnt9G5HZcsWzhms", "5fekmcmW4bahmSt4Wb1oo3rVhoLYZmRJ4tJkfBT98gLpFUmEBqNRGhciA2smzu6VKvBhYgYzc6G8tMPqQV2hBhSE", "4Zj5CmLy7iK6GuWKmWq5WKbogcKhStmLsqyYoeo3gijVJ2ozQwHpfUjEK5kqzZjGJSUkYT3mDBUorCcwiHiWKiGa" ], "script": "base64:AAIFAAAAAAAAADAIAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIFCgMICAgSBAoCGBQAAAAXAAAAAApkZXBvc2l0RmVlAAAAAAAAAAPoAAAAAA1jb250cm9sbGVyRmVlAAAAAAAAACcQAAAAAAtwbGF0Zm9ybUZlZQAAAAAAAAAnEAAAAAAMYWRtaW5QdWJLZXkxAQAAACBML0XVfOoUYZ0u5wVeWtFjxl6V510E+3IIEVV8EjlQeAAAAAAMYWRtaW5QdWJLZXkyAQAAACCjWOGcrwud2dk3niQ7aUUvt9ZGVUi46621qn53UsQEPQAAAAAMYWRtaW5QdWJLZXkzAQAAACCK0LT5MEsa8VS1dms5d3Y/ANGsCGMTMJjd1OVqZKQfKQAAAAA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UAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTQGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMDAwUAAAAPbG9ja1NoYXJlVG9rZW5zBgUAAAANcG9vbEZ1bmN0aW9ucwYFAAAACGxvY2tTd29wBQAAAA1zaWduZWRCeUFkbWluBwQAAAAKYWRtMVNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEAAAAAAAAAAAEAAAAAAAAAAAAEAAAACmFkbTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAAAphZG0zU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAKYWRtMVNpZ25lZAUAAAAKYWRtMlNpZ25lZAUAAAAKYWRtM1NpZ25lZAAAAAAAAAAAAnehoYU=", "height": 1915915, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 1RKAfpNgnr8JZMxy9UZsxKDBNqJmnWWhJXHYi9p7ovP Next: 42DmXwKtw7jDJaxKPyvRhQ77FhKbMSayuCzeLkjiz2uR Diff:
Old | New | Differences | |
---|---|---|---|
334 | 334 | @Callable(i) | |
335 | 335 | func withdraw (pool,userAddress,transactionId) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
336 | 336 | then { | |
337 | - | let userRecordKey = userWithdrawKey(pool, userAddress, | |
338 | - | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, | |
337 | + | let userRecordKey = userWithdrawKey(pool, userAddress, transactionId) | |
338 | + | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, transactionId) | |
339 | 339 | let sendUserAmount = getIntegerValue(this, userRecordKey) | |
340 | 340 | let burnTokenAmount = getIntegerValue(this, userWithdrawBurnTokenKey) | |
341 | 341 | let poolAmountKey = (pool + "_asset_balance") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let depositFee = 1000 | |
5 | 5 | ||
6 | 6 | let controllerFee = 10000 | |
7 | 7 | ||
8 | 8 | let platformFee = 10000 | |
9 | 9 | ||
10 | 10 | let adminPubKey1 = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
11 | 11 | ||
12 | 12 | let adminPubKey2 = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt' | |
13 | 13 | ||
14 | 14 | let adminPubKey3 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | 16 | let adminPubKey4 = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
17 | 17 | ||
18 | 18 | let govermanceAddress = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL') | |
19 | 19 | ||
20 | 20 | let swopFiGovermanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | 22 | let farmingAddress = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
23 | 23 | ||
24 | 24 | let keySWOPid = "SWOP_id" | |
25 | 25 | ||
26 | 26 | let SWOP = fromBase58String(getStringValue(farmingAddress, keySWOPid)) | |
27 | 27 | ||
28 | 28 | let depositType = "deposit" | |
29 | 29 | ||
30 | 30 | let withdrawType = "withdraw" | |
31 | 31 | ||
32 | 32 | let swopFiPools = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
33 | 33 | ||
34 | 34 | let swopFiFunctions = ["replenishWithTwoTokens", "exchange"] | |
35 | 35 | ||
36 | 36 | func isPoolActive (pool) = { | |
37 | 37 | let kActive = (pool + "_active") | |
38 | 38 | let isActive = match getBoolean(this, kActive) { | |
39 | 39 | case boolean: Boolean => | |
40 | 40 | boolean | |
41 | 41 | case _ => | |
42 | 42 | throw("Pool is not active!") | |
43 | 43 | } | |
44 | 44 | isActive | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getDAppAssetAddress (pool) = match getString((pool + "_service_token")) { | |
49 | 49 | case string: String => | |
50 | 50 | string | |
51 | 51 | case nothing => | |
52 | 52 | throw("You try to deposit on unsupported pool") | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getLiquidutyAssetAddress (pool) = match getString((pool + "_liquidity_token")) { | |
57 | 57 | case string: String => | |
58 | 58 | string | |
59 | 59 | case nothing => | |
60 | 60 | throw("You try to withdraw from unsupported pool") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getStakedAmount (poolAddress) = if ((poolAddress == toBase58String(SWOP))) | |
65 | 65 | then match getInteger(swopFiGovermanceAddress, (toString(this) + "_SWOP_amount")) { | |
66 | 66 | case staked: Int => | |
67 | 67 | staked | |
68 | 68 | case nothing: Unit => | |
69 | 69 | 0 | |
70 | 70 | case _ => | |
71 | 71 | throw("Match error") | |
72 | 72 | } | |
73 | 73 | else match getInteger(farmingAddress, (((poolAddress + "_") + toString(this)) + "_share_tokens_locked")) { | |
74 | 74 | case staked: Int => | |
75 | 75 | staked | |
76 | 76 | case nothing: Unit => | |
77 | 77 | 0 | |
78 | 78 | case _ => | |
79 | 79 | throw("Match error") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func transferToUser (amount,assetId,poolAddress,type) = { | |
84 | 84 | let dAppStakedTokens = getStakedAmount(poolAddress) | |
85 | 85 | let assetIdQuantity = match assetInfo(assetId) { | |
86 | 86 | case asset: Asset => | |
87 | 87 | asset.quantity | |
88 | 88 | case _ => | |
89 | 89 | throw("Can't find asset") | |
90 | 90 | } | |
91 | 91 | if ((dAppStakedTokens == 0)) | |
92 | 92 | then amount | |
93 | 93 | else if ((type == depositType)) | |
94 | 94 | then { | |
95 | 95 | let transferToUserAmount = fraction(amount, assetIdQuantity, dAppStakedTokens) | |
96 | 96 | transferToUserAmount | |
97 | 97 | } | |
98 | 98 | else { | |
99 | 99 | let transferToUserAmount = fraction(amount, dAppStakedTokens, assetIdQuantity) | |
100 | 100 | transferToUserAmount | |
101 | 101 | } | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func userWithdrawKey (pool,userAddress,transactionId) = (((((pool + "_") + userAddress) + "_") + transactionId) + "_withdraw") | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func userWithdrawBurnTokensKey (pool,userAddress,transactionId) = (((((pool + "_") + userAddress) + "_") + transactionId) + "_withdraw_burn_token") | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(i) | |
112 | 112 | func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
113 | 113 | then { | |
114 | 114 | func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated | |
115 | 115 | ||
116 | 116 | func generatePoolLiquidityTokenKeys (accumulated,pool) = { | |
117 | 117 | let poolIndex = value(indexOf(pools, pool)) | |
118 | 118 | let liquidityToken = liquidityTokens[poolIndex] | |
119 | 119 | StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | func generatePoolServiceTokenKeys (accumulated,pool) = { | |
123 | 123 | let poolIndex = value(indexOf(pools, pool)) | |
124 | 124 | let liquidityToken = serviceTokens[poolIndex] | |
125 | 125 | StringEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = { | |
129 | 129 | let poolIndex = value(indexOf(pools, pool)) | |
130 | 130 | let liquidityToken = liquidityTokenDecimals[poolIndex] | |
131 | 131 | IntegerEntry((pool + "_service_token_decimal"), liquidityToken) :: accumulated | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated | |
135 | 135 | ||
136 | 136 | let poolBalanceKeys = { | |
137 | 137 | let $l = pools | |
138 | 138 | let $s = size($l) | |
139 | 139 | let $acc0 = nil | |
140 | 140 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
141 | 141 | then $a | |
142 | 142 | else generatePoolKeys($a, $l[$i]) | |
143 | 143 | ||
144 | 144 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
145 | 145 | then $a | |
146 | 146 | else throw("List size exceeds 20") | |
147 | 147 | ||
148 | 148 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
149 | 149 | } | |
150 | 150 | let poolLiquidityTokenKeys = { | |
151 | 151 | let $l = pools | |
152 | 152 | let $s = size($l) | |
153 | 153 | let $acc0 = nil | |
154 | 154 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
155 | 155 | then $a | |
156 | 156 | else generatePoolLiquidityTokenKeys($a, $l[$i]) | |
157 | 157 | ||
158 | 158 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
159 | 159 | then $a | |
160 | 160 | else throw("List size exceeds 20") | |
161 | 161 | ||
162 | 162 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
163 | 163 | } | |
164 | 164 | let poolServiceTokenKeys = { | |
165 | 165 | let $l = pools | |
166 | 166 | let $s = size($l) | |
167 | 167 | let $acc0 = nil | |
168 | 168 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
169 | 169 | then $a | |
170 | 170 | else generatePoolServiceTokenKeys($a, $l[$i]) | |
171 | 171 | ||
172 | 172 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
173 | 173 | then $a | |
174 | 174 | else throw("List size exceeds 20") | |
175 | 175 | ||
176 | 176 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
177 | 177 | } | |
178 | 178 | let poolLiquidityTokenDecimalKeys = { | |
179 | 179 | let $l = pools | |
180 | 180 | let $s = size($l) | |
181 | 181 | let $acc0 = nil | |
182 | 182 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
183 | 183 | then $a | |
184 | 184 | else generatePoolLiquidityTokenDecimalKeys($a, $l[$i]) | |
185 | 185 | ||
186 | 186 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
187 | 187 | then $a | |
188 | 188 | else throw("List size exceeds 20") | |
189 | 189 | ||
190 | 190 | $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
191 | 191 | } | |
192 | 192 | let poolActiveKeys = { | |
193 | 193 | let $l = pools | |
194 | 194 | let $s = size($l) | |
195 | 195 | let $acc0 = nil | |
196 | 196 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
197 | 197 | then $a | |
198 | 198 | else generatePoolActiveKeys($a, $l[$i]) | |
199 | 199 | ||
200 | 200 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
201 | 201 | then $a | |
202 | 202 | else throw("List size exceeds 20") | |
203 | 203 | ||
204 | 204 | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
205 | 205 | } | |
206 | 206 | ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys) | |
207 | 207 | } | |
208 | 208 | else throw("Only admin can call this function") | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(i) | |
213 | 213 | func deleteDepositLockRecords (records) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
214 | 214 | then { | |
215 | 215 | func generateDeletingKeys (accumulated,record) = DeleteEntry((record + "_locked")) :: accumulated | |
216 | 216 | ||
217 | 217 | let deleteKeys = { | |
218 | 218 | let $l = records | |
219 | 219 | let $s = size($l) | |
220 | 220 | let $acc0 = nil | |
221 | 221 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
222 | 222 | then $a | |
223 | 223 | else generateDeletingKeys($a, $l[$i]) | |
224 | 224 | ||
225 | 225 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
226 | 226 | then $a | |
227 | 227 | else throw("List size exceeds 100") | |
228 | 228 | ||
229 | 229 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
230 | 230 | } | |
231 | 231 | deleteKeys | |
232 | 232 | } | |
233 | 233 | else throw("Only admin can call this function") | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(i) | |
238 | 238 | func issueToken (name,description,quantity,decimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
239 | 239 | then [Issue(name, description, quantity, decimals, true, unit, 0)] | |
240 | 240 | else throw("Only admin can call this function") | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | ||
244 | 244 | @Callable(a8) | |
245 | 245 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(i) | |
250 | 250 | func deposit (pool) = if ((size(i.payments) != 1)) | |
251 | 251 | then throw("One attached payment expected") | |
252 | 252 | else { | |
253 | 253 | let amount = i.payments[0].amount | |
254 | 254 | let assetId = i.payments[0].assetId | |
255 | 255 | let assetIdString = match assetId { | |
256 | 256 | case id: ByteVector => | |
257 | 257 | toBase58String(id) | |
258 | 258 | case _ => | |
259 | 259 | throw("Match error") | |
260 | 260 | } | |
261 | 261 | if ((0 >= amount)) | |
262 | 262 | then throw(("Deposit amount must be positive. Actual: " + toString(amount))) | |
263 | 263 | else { | |
264 | 264 | let poolAmountKey = (pool + "_asset_balance") | |
265 | 265 | let userAddress = toString(i.caller) | |
266 | 266 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
267 | 267 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
268 | 268 | let liquidutyAssetAddress = match getString((pool + "_liquidity_token")) { | |
269 | 269 | case string: String => | |
270 | 270 | string | |
271 | 271 | case nothing => | |
272 | 272 | throw("You try to deposit on unsupported pool") | |
273 | 273 | } | |
274 | 274 | if (isPoolActive(pool)) | |
275 | 275 | then { | |
276 | 276 | let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) { | |
277 | 277 | case asset: Asset => | |
278 | 278 | asset.decimals | |
279 | 279 | case _ => | |
280 | 280 | throw("Can't find asset") | |
281 | 281 | } | |
282 | 282 | if ((liquidutyAssetAddress != assetIdString)) | |
283 | 283 | then throw("You attached wrong liquidity token from Swop.fi") | |
284 | 284 | else { | |
285 | 285 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
286 | 286 | let userAmount = match getInteger(userPoolAmountKey) { | |
287 | 287 | case int: Int => | |
288 | 288 | int | |
289 | 289 | case nothing => | |
290 | 290 | 0 | |
291 | 291 | } | |
292 | 292 | let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
293 | 293 | let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool, depositType) | |
294 | 294 | let fee = (amount - userAmountWithoutFee) | |
295 | 295 | let newPoolAmount = ((poolAmount + amount) - fee) | |
296 | 296 | let newUserPoolAmount = (userAmount + transferToUserAmount) | |
297 | 297 | let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked") | |
298 | 298 | [Reissue(fromBase58String(dAppAssetAddress), transferToUserAmount, true), ScriptTransfer(i.caller, transferToUserAmount, fromBase58String(dAppAssetAddress)), ScriptTransfer(govermanceAddress, fee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(lockTokensKey, userAmountWithoutFee), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)] | |
299 | 299 | } | |
300 | 300 | } | |
301 | 301 | else throw("Pool is not active!") | |
302 | 302 | } | |
303 | 303 | } | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | ||
307 | 307 | @Callable(i) | |
308 | 308 | func initWithdraw (pool) = if ((size(i.payments) != 1)) | |
309 | 309 | then throw("One attached payment expected") | |
310 | 310 | else { | |
311 | 311 | let amount = i.payments[0].amount | |
312 | 312 | let assetId = i.payments[0].assetId | |
313 | 313 | let assetIdString = match assetId { | |
314 | 314 | case id: ByteVector => | |
315 | 315 | toBase58String(id) | |
316 | 316 | case _ => | |
317 | 317 | throw("Match error") | |
318 | 318 | } | |
319 | 319 | if ((0 >= amount)) | |
320 | 320 | then throw(("Withraw amount must be positive. Actual: " + toString(amount))) | |
321 | 321 | else if (isPoolActive(pool)) | |
322 | 322 | then { | |
323 | 323 | let userAddress = toString(i.caller) | |
324 | 324 | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
325 | 325 | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
326 | 326 | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
327 | 327 | [IntegerEntry(userRecordKey, transferToUserAmount), IntegerEntry(userWithdrawBurnTokenKey, amount)] | |
328 | 328 | } | |
329 | 329 | else throw("Pool is not active!") | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(i) | |
335 | 335 | func withdraw (pool,userAddress,transactionId) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
336 | 336 | then { | |
337 | - | let userRecordKey = userWithdrawKey(pool, userAddress, | |
338 | - | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, | |
337 | + | let userRecordKey = userWithdrawKey(pool, userAddress, transactionId) | |
338 | + | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, transactionId) | |
339 | 339 | let sendUserAmount = getIntegerValue(this, userRecordKey) | |
340 | 340 | let burnTokenAmount = getIntegerValue(this, userWithdrawBurnTokenKey) | |
341 | 341 | let poolAmountKey = (pool + "_asset_balance") | |
342 | 342 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
343 | 343 | let userAmount = match getInteger(userPoolAmountKey) { | |
344 | 344 | case int: Int => | |
345 | 345 | int | |
346 | 346 | case nothing => | |
347 | 347 | 0 | |
348 | 348 | } | |
349 | 349 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
350 | 350 | let liquidutyAssetAddress = getLiquidutyAssetAddress(pool) | |
351 | 351 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
352 | 352 | let newPoolAmount = (poolAmount - sendUserAmount) | |
353 | 353 | let newUserPoolAmount = (userAmount - sendUserAmount) | |
354 | 354 | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer(i.caller, sendUserAmount, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount), DeleteEntry(userRecordKey), DeleteEntry(userWithdrawBurnTokenKey)] | |
355 | 355 | } | |
356 | 356 | else throw("Only admin can call this function") | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | ||
360 | 360 | @Callable(i) | |
361 | 361 | func poolActivating (pools,statuses) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
362 | 362 | then { | |
363 | 363 | func generatePoolActiveKeys (accumulated,pool) = { | |
364 | 364 | let poolIndex = value(indexOf(pools, pool)) | |
365 | 365 | let status = statuses[poolIndex] | |
366 | 366 | BooleanEntry((pool + "_active"), status) :: accumulated | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | let poolActiveKeys = { | |
370 | 370 | let $l = pools | |
371 | 371 | let $s = size($l) | |
372 | 372 | let $acc0 = nil | |
373 | 373 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
374 | 374 | then $a | |
375 | 375 | else generatePoolActiveKeys($a, $l[$i]) | |
376 | 376 | ||
377 | 377 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
378 | 378 | then $a | |
379 | 379 | else throw("List size exceeds 100") | |
380 | 380 | ||
381 | 381 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
382 | 382 | } | |
383 | 383 | poolActiveKeys | |
384 | 384 | } | |
385 | 385 | else throw("Only admin can call this function") | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | @Verifier(tx) | |
389 | 389 | func verify () = match tx { | |
390 | 390 | case inv: InvokeScriptTransaction => | |
391 | 391 | let lockShareTokens = if ((inv.dApp == farmingAddress)) | |
392 | 392 | then if (if ((inv.function == "lockShareTokens")) | |
393 | 393 | then true | |
394 | 394 | else (inv.function == "claim")) | |
395 | 395 | then true | |
396 | 396 | else (inv.function == "withdrawShareTokens") | |
397 | 397 | else false | |
398 | 398 | let lockSwop = if ((inv.dApp == swopFiGovermanceAddress)) | |
399 | 399 | then if ((inv.function == "lockSWOP")) | |
400 | 400 | then true | |
401 | 401 | else (inv.function == "withdrawSWOP") | |
402 | 402 | else false | |
403 | 403 | let dAppAddress = match inv.dApp { | |
404 | 404 | case dApp: Address => | |
405 | 405 | toString(dApp) | |
406 | 406 | case _ => | |
407 | 407 | throw("Transaction must have only address") | |
408 | 408 | } | |
409 | 409 | let poolFunctions = if (containsElement(swopFiPools, dAppAddress)) | |
410 | 410 | then containsElement(swopFiFunctions, inv.function) | |
411 | 411 | else false | |
412 | 412 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
413 | 413 | then true | |
414 | 414 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
415 | 415 | then true | |
416 | 416 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey4)) | |
417 | 417 | then true | |
418 | 418 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
419 | 419 | if (if (if (lockShareTokens) | |
420 | 420 | then true | |
421 | 421 | else poolFunctions) | |
422 | 422 | then true | |
423 | 423 | else lockSwop) | |
424 | 424 | then signedByAdmin | |
425 | 425 | else false | |
426 | 426 | case _ => | |
427 | 427 | let adm1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
428 | 428 | then 1 | |
429 | 429 | else 0 | |
430 | 430 | let adm2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
431 | 431 | then 1 | |
432 | 432 | else 0 | |
433 | 433 | let adm3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
434 | 434 | then 1 | |
435 | 435 | else 0 | |
436 | 436 | (((adm1Signed + adm2Signed) + adm3Signed) >= 2) | |
437 | 437 | } | |
438 | 438 |
github/deemru/w8io/fabc49c 70.04 ms ◑