tx · 42DmXwKtw7jDJaxKPyvRhQ77FhKbMSayuCzeLkjiz2uR 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.02.09 18:12 [1916260] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "42DmXwKtw7jDJaxKPyvRhQ77FhKbMSayuCzeLkjiz2uR", "fee": 1400000, "feeAssetId": null, "timestamp": 1644419554986, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "3ie478tdnvC1zZdMQGQchnPRt1QQprAEv3uXPSqVE9dRkBScDSmV8Ne1vnzNrN75ZDWFskJnyCV9XmSYXdcejMzA", "3MyE7bVwS2TipvgWccgacoJYWeBcemgC8dPdv2nZyv7HorzN9F7PUhbRFyaMsiauZgyCvqH5nhLot53AVoch9xS3", "3pZfymnZzQu27Tbgsd2CnXZpuzPwtv4VVk1cxZh9T2t14vM7ZPuLX5qS9VEkARTCM2oNN2EtbtWRACZ58MU1yskW" ], "script": "base64:AAIFAAAAAAAAADAIAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIFCgMICAgSBAoCGBQAAAAZAAAAAApkZXBvc2l0RmVlAAAAAAAAAAPoAAAAAA1jb250cm9sbGVyRmVlAAAAAAAAACcQAAAAAAtwbGF0Zm9ybUZlZQAAAAAAAAAnEAAAAAAMYWRtaW5QdWJLZXkxAQAAACBML0XVfOoUYZ0u5wVeWtFjxl6V510E+3IIEVV8EjlQeAAAAAAMYWRtaW5QdWJLZXkyAQAAACCjWOGcrwud2dk3niQ7aUUvt9ZGVUi46621qn53UsQEPQAAAAAMYWRtaW5QdWJLZXkzAQAAACCK0LT5MEsa8VS1dms5d3Y/ANGsCGMTMJjd1OVqZKQfKQAAAAAMYWRtaW5QdWJL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U2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAKYWRtM1NpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAxhZG1pblB1YktleTMAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAACmFkbTFTaWduZWQFAAAACmFkbTJTaWduZWQFAAAACmFkbTNTaWduZWQAAAAAAAAAAALg/P/S", "height": 1916260, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5E7vePqtFBgT3TE3MGPkqUKyDdDpJT6UKxdQf5imCrdq Next: Ggpv3t9Htx8aKByWxe3Uv8TDqbFu75cmmZRTB7bVv88J Diff:
Old | New | Differences | |
---|---|---|---|
106 | 106 | ||
107 | 107 | ||
108 | 108 | func userWithdrawBurnTokensKey (pool,userAddress,transactionId) = (((((pool + "_") + userAddress) + "_") + transactionId) + "_withdraw_burn_token") | |
109 | + | ||
110 | + | ||
111 | + | func getUserTotalLockedKey (pool,userAddress) = (((pool + "_") + userAddress) + "_service_token_total_locked") | |
112 | + | ||
113 | + | ||
114 | + | func getUserTotalLocked (key) = match getInteger(key) { | |
115 | + | case int: Int => | |
116 | + | int | |
117 | + | case nothing => | |
118 | + | 0 | |
119 | + | } | |
109 | 120 | ||
110 | 121 | ||
111 | 122 | @Callable(i) | |
289 | 300 | case nothing => | |
290 | 301 | 0 | |
291 | 302 | } | |
303 | + | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
304 | + | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
292 | 305 | let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
293 | 306 | let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool, depositType) | |
294 | 307 | let fee = (amount - userAmountWithoutFee) | |
295 | 308 | let newPoolAmount = ((poolAmount + amount) - fee) | |
296 | 309 | let newUserPoolAmount = (userAmount + transferToUserAmount) | |
310 | + | let newUserTotalLocked = (userTotalLocked + transferToUserAmount) | |
297 | 311 | let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked") | |
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)] | |
312 | + | [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), IntegerEntry(userTotalLockedKey, newUserTotalLocked)] | |
299 | 313 | } | |
300 | 314 | } | |
301 | 315 | else throw("Pool is not active!") | |
316 | 330 | case _ => | |
317 | 331 | throw("Match error") | |
318 | 332 | } | |
333 | + | let assetIdByteVector = match assetId { | |
334 | + | case id: ByteVector => | |
335 | + | id | |
336 | + | case _ => | |
337 | + | throw("Match error") | |
338 | + | } | |
319 | 339 | if ((0 >= amount)) | |
320 | 340 | then throw(("Withraw amount must be positive. Actual: " + toString(amount))) | |
321 | 341 | else if (isPoolActive(pool)) | |
322 | 342 | then { | |
323 | 343 | let userAddress = toString(i.caller) | |
324 | - | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
325 | - | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
326 | - | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
344 | + | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
345 | + | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
346 | + | let userTotalBalance = assetBalance(i.caller, assetIdByteVector) | |
347 | + | let nonLockedBalance = (userTotalBalance - userTotalLocked) | |
348 | + | if ((amount > nonLockedBalance)) | |
349 | + | then throw("You have a locked tokens. Wait a time for unlock or try to withdrraw less") | |
350 | + | else { | |
351 | + | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
352 | + | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
353 | + | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
327 | 354 | [IntegerEntry(userRecordKey, transferToUserAmount), IntegerEntry(userWithdrawBurnTokenKey, amount)] | |
355 | + | } | |
328 | 356 | } | |
329 | 357 | else throw("Pool is not active!") | |
330 | 358 | } |
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 | + | ||
110 | + | ||
111 | + | func getUserTotalLockedKey (pool,userAddress) = (((pool + "_") + userAddress) + "_service_token_total_locked") | |
112 | + | ||
113 | + | ||
114 | + | func getUserTotalLocked (key) = match getInteger(key) { | |
115 | + | case int: Int => | |
116 | + | int | |
117 | + | case nothing => | |
118 | + | 0 | |
119 | + | } | |
109 | 120 | ||
110 | 121 | ||
111 | 122 | @Callable(i) | |
112 | 123 | func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
113 | 124 | then { | |
114 | 125 | func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated | |
115 | 126 | ||
116 | 127 | func generatePoolLiquidityTokenKeys (accumulated,pool) = { | |
117 | 128 | let poolIndex = value(indexOf(pools, pool)) | |
118 | 129 | let liquidityToken = liquidityTokens[poolIndex] | |
119 | 130 | StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated | |
120 | 131 | } | |
121 | 132 | ||
122 | 133 | func generatePoolServiceTokenKeys (accumulated,pool) = { | |
123 | 134 | let poolIndex = value(indexOf(pools, pool)) | |
124 | 135 | let liquidityToken = serviceTokens[poolIndex] | |
125 | 136 | StringEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
126 | 137 | } | |
127 | 138 | ||
128 | 139 | func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = { | |
129 | 140 | let poolIndex = value(indexOf(pools, pool)) | |
130 | 141 | let liquidityToken = liquidityTokenDecimals[poolIndex] | |
131 | 142 | IntegerEntry((pool + "_service_token_decimal"), liquidityToken) :: accumulated | |
132 | 143 | } | |
133 | 144 | ||
134 | 145 | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated | |
135 | 146 | ||
136 | 147 | let poolBalanceKeys = { | |
137 | 148 | let $l = pools | |
138 | 149 | let $s = size($l) | |
139 | 150 | let $acc0 = nil | |
140 | 151 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
141 | 152 | then $a | |
142 | 153 | else generatePoolKeys($a, $l[$i]) | |
143 | 154 | ||
144 | 155 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
145 | 156 | then $a | |
146 | 157 | else throw("List size exceeds 20") | |
147 | 158 | ||
148 | 159 | $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 | 160 | } | |
150 | 161 | let poolLiquidityTokenKeys = { | |
151 | 162 | let $l = pools | |
152 | 163 | let $s = size($l) | |
153 | 164 | let $acc0 = nil | |
154 | 165 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
155 | 166 | then $a | |
156 | 167 | else generatePoolLiquidityTokenKeys($a, $l[$i]) | |
157 | 168 | ||
158 | 169 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
159 | 170 | then $a | |
160 | 171 | else throw("List size exceeds 20") | |
161 | 172 | ||
162 | 173 | $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 | 174 | } | |
164 | 175 | let poolServiceTokenKeys = { | |
165 | 176 | let $l = pools | |
166 | 177 | let $s = size($l) | |
167 | 178 | let $acc0 = nil | |
168 | 179 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
169 | 180 | then $a | |
170 | 181 | else generatePoolServiceTokenKeys($a, $l[$i]) | |
171 | 182 | ||
172 | 183 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
173 | 184 | then $a | |
174 | 185 | else throw("List size exceeds 20") | |
175 | 186 | ||
176 | 187 | $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 | 188 | } | |
178 | 189 | let poolLiquidityTokenDecimalKeys = { | |
179 | 190 | let $l = pools | |
180 | 191 | let $s = size($l) | |
181 | 192 | let $acc0 = nil | |
182 | 193 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
183 | 194 | then $a | |
184 | 195 | else generatePoolLiquidityTokenDecimalKeys($a, $l[$i]) | |
185 | 196 | ||
186 | 197 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
187 | 198 | then $a | |
188 | 199 | else throw("List size exceeds 20") | |
189 | 200 | ||
190 | 201 | $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 | 202 | } | |
192 | 203 | let poolActiveKeys = { | |
193 | 204 | let $l = pools | |
194 | 205 | let $s = size($l) | |
195 | 206 | let $acc0 = nil | |
196 | 207 | func $f4_1 ($a,$i) = if (($i >= $s)) | |
197 | 208 | then $a | |
198 | 209 | else generatePoolActiveKeys($a, $l[$i]) | |
199 | 210 | ||
200 | 211 | func $f4_2 ($a,$i) = if (($i >= $s)) | |
201 | 212 | then $a | |
202 | 213 | else throw("List size exceeds 20") | |
203 | 214 | ||
204 | 215 | $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 | 216 | } | |
206 | 217 | ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys) | |
207 | 218 | } | |
208 | 219 | else throw("Only admin can call this function") | |
209 | 220 | ||
210 | 221 | ||
211 | 222 | ||
212 | 223 | @Callable(i) | |
213 | 224 | func deleteDepositLockRecords (records) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
214 | 225 | then { | |
215 | 226 | func generateDeletingKeys (accumulated,record) = DeleteEntry((record + "_locked")) :: accumulated | |
216 | 227 | ||
217 | 228 | let deleteKeys = { | |
218 | 229 | let $l = records | |
219 | 230 | let $s = size($l) | |
220 | 231 | let $acc0 = nil | |
221 | 232 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
222 | 233 | then $a | |
223 | 234 | else generateDeletingKeys($a, $l[$i]) | |
224 | 235 | ||
225 | 236 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
226 | 237 | then $a | |
227 | 238 | else throw("List size exceeds 100") | |
228 | 239 | ||
229 | 240 | $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 | 241 | } | |
231 | 242 | deleteKeys | |
232 | 243 | } | |
233 | 244 | else throw("Only admin can call this function") | |
234 | 245 | ||
235 | 246 | ||
236 | 247 | ||
237 | 248 | @Callable(i) | |
238 | 249 | func issueToken (name,description,quantity,decimals) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
239 | 250 | then [Issue(name, description, quantity, decimals, true, unit, 0)] | |
240 | 251 | else throw("Only admin can call this function") | |
241 | 252 | ||
242 | 253 | ||
243 | 254 | ||
244 | 255 | @Callable(a8) | |
245 | 256 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
246 | 257 | ||
247 | 258 | ||
248 | 259 | ||
249 | 260 | @Callable(i) | |
250 | 261 | func deposit (pool) = if ((size(i.payments) != 1)) | |
251 | 262 | then throw("One attached payment expected") | |
252 | 263 | else { | |
253 | 264 | let amount = i.payments[0].amount | |
254 | 265 | let assetId = i.payments[0].assetId | |
255 | 266 | let assetIdString = match assetId { | |
256 | 267 | case id: ByteVector => | |
257 | 268 | toBase58String(id) | |
258 | 269 | case _ => | |
259 | 270 | throw("Match error") | |
260 | 271 | } | |
261 | 272 | if ((0 >= amount)) | |
262 | 273 | then throw(("Deposit amount must be positive. Actual: " + toString(amount))) | |
263 | 274 | else { | |
264 | 275 | let poolAmountKey = (pool + "_asset_balance") | |
265 | 276 | let userAddress = toString(i.caller) | |
266 | 277 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
267 | 278 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
268 | 279 | let liquidutyAssetAddress = match getString((pool + "_liquidity_token")) { | |
269 | 280 | case string: String => | |
270 | 281 | string | |
271 | 282 | case nothing => | |
272 | 283 | throw("You try to deposit on unsupported pool") | |
273 | 284 | } | |
274 | 285 | if (isPoolActive(pool)) | |
275 | 286 | then { | |
276 | 287 | let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) { | |
277 | 288 | case asset: Asset => | |
278 | 289 | asset.decimals | |
279 | 290 | case _ => | |
280 | 291 | throw("Can't find asset") | |
281 | 292 | } | |
282 | 293 | if ((liquidutyAssetAddress != assetIdString)) | |
283 | 294 | then throw("You attached wrong liquidity token from Swop.fi") | |
284 | 295 | else { | |
285 | 296 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
286 | 297 | let userAmount = match getInteger(userPoolAmountKey) { | |
287 | 298 | case int: Int => | |
288 | 299 | int | |
289 | 300 | case nothing => | |
290 | 301 | 0 | |
291 | 302 | } | |
303 | + | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
304 | + | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
292 | 305 | let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
293 | 306 | let transferToUserAmount = transferToUser(userAmountWithoutFee, fromBase58String(dAppAssetAddress), pool, depositType) | |
294 | 307 | let fee = (amount - userAmountWithoutFee) | |
295 | 308 | let newPoolAmount = ((poolAmount + amount) - fee) | |
296 | 309 | let newUserPoolAmount = (userAmount + transferToUserAmount) | |
310 | + | let newUserTotalLocked = (userTotalLocked + transferToUserAmount) | |
297 | 311 | let lockTokensKey = (((((pool + "_") + userAddress) + "_") + toBase58String(i.transactionId)) + "_locked") | |
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)] | |
312 | + | [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), IntegerEntry(userTotalLockedKey, newUserTotalLocked)] | |
299 | 313 | } | |
300 | 314 | } | |
301 | 315 | else throw("Pool is not active!") | |
302 | 316 | } | |
303 | 317 | } | |
304 | 318 | ||
305 | 319 | ||
306 | 320 | ||
307 | 321 | @Callable(i) | |
308 | 322 | func initWithdraw (pool) = if ((size(i.payments) != 1)) | |
309 | 323 | then throw("One attached payment expected") | |
310 | 324 | else { | |
311 | 325 | let amount = i.payments[0].amount | |
312 | 326 | let assetId = i.payments[0].assetId | |
313 | 327 | let assetIdString = match assetId { | |
314 | 328 | case id: ByteVector => | |
315 | 329 | toBase58String(id) | |
316 | 330 | case _ => | |
317 | 331 | throw("Match error") | |
318 | 332 | } | |
333 | + | let assetIdByteVector = match assetId { | |
334 | + | case id: ByteVector => | |
335 | + | id | |
336 | + | case _ => | |
337 | + | throw("Match error") | |
338 | + | } | |
319 | 339 | if ((0 >= amount)) | |
320 | 340 | then throw(("Withraw amount must be positive. Actual: " + toString(amount))) | |
321 | 341 | else if (isPoolActive(pool)) | |
322 | 342 | then { | |
323 | 343 | let userAddress = toString(i.caller) | |
324 | - | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
325 | - | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
326 | - | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
344 | + | let userTotalLockedKey = getUserTotalLockedKey(pool, userAddress) | |
345 | + | let userTotalLocked = getUserTotalLocked(userTotalLockedKey) | |
346 | + | let userTotalBalance = assetBalance(i.caller, assetIdByteVector) | |
347 | + | let nonLockedBalance = (userTotalBalance - userTotalLocked) | |
348 | + | if ((amount > nonLockedBalance)) | |
349 | + | then throw("You have a locked tokens. Wait a time for unlock or try to withdrraw less") | |
350 | + | else { | |
351 | + | let transferToUserAmount = transferToUser(amount, fromBase58String(assetIdString), pool, withdrawType) | |
352 | + | let userRecordKey = userWithdrawKey(pool, userAddress, toBase58String(i.transactionId)) | |
353 | + | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, toBase58String(i.transactionId)) | |
327 | 354 | [IntegerEntry(userRecordKey, transferToUserAmount), IntegerEntry(userWithdrawBurnTokenKey, amount)] | |
355 | + | } | |
328 | 356 | } | |
329 | 357 | else throw("Pool is not active!") | |
330 | 358 | } | |
331 | 359 | ||
332 | 360 | ||
333 | 361 | ||
334 | 362 | @Callable(i) | |
335 | 363 | func withdraw (pool,userAddress,transactionId) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
336 | 364 | then { | |
337 | 365 | let userRecordKey = userWithdrawKey(pool, userAddress, transactionId) | |
338 | 366 | let userWithdrawBurnTokenKey = userWithdrawBurnTokensKey(pool, userAddress, transactionId) | |
339 | 367 | let sendUserAmount = getIntegerValue(this, userRecordKey) | |
340 | 368 | let burnTokenAmount = getIntegerValue(this, userWithdrawBurnTokenKey) | |
341 | 369 | let poolAmountKey = (pool + "_asset_balance") | |
342 | 370 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
343 | 371 | let userAmount = match getInteger(userPoolAmountKey) { | |
344 | 372 | case int: Int => | |
345 | 373 | int | |
346 | 374 | case nothing => | |
347 | 375 | 0 | |
348 | 376 | } | |
349 | 377 | let dAppAssetAddress = getDAppAssetAddress(pool) | |
350 | 378 | let liquidutyAssetAddress = getLiquidutyAssetAddress(pool) | |
351 | 379 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
352 | 380 | let newPoolAmount = (poolAmount - sendUserAmount) | |
353 | 381 | let newUserPoolAmount = (userAmount - sendUserAmount) | |
354 | 382 | [Burn(fromBase58String(dAppAssetAddress), burnTokenAmount), ScriptTransfer(i.caller, sendUserAmount, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount), DeleteEntry(userRecordKey), DeleteEntry(userWithdrawBurnTokenKey)] | |
355 | 383 | } | |
356 | 384 | else throw("Only admin can call this function") | |
357 | 385 | ||
358 | 386 | ||
359 | 387 | ||
360 | 388 | @Callable(i) | |
361 | 389 | func poolActivating (pools,statuses) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
362 | 390 | then { | |
363 | 391 | func generatePoolActiveKeys (accumulated,pool) = { | |
364 | 392 | let poolIndex = value(indexOf(pools, pool)) | |
365 | 393 | let status = statuses[poolIndex] | |
366 | 394 | BooleanEntry((pool + "_active"), status) :: accumulated | |
367 | 395 | } | |
368 | 396 | ||
369 | 397 | let poolActiveKeys = { | |
370 | 398 | let $l = pools | |
371 | 399 | let $s = size($l) | |
372 | 400 | let $acc0 = nil | |
373 | 401 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
374 | 402 | then $a | |
375 | 403 | else generatePoolActiveKeys($a, $l[$i]) | |
376 | 404 | ||
377 | 405 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
378 | 406 | then $a | |
379 | 407 | else throw("List size exceeds 100") | |
380 | 408 | ||
381 | 409 | $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 | 410 | } | |
383 | 411 | poolActiveKeys | |
384 | 412 | } | |
385 | 413 | else throw("Only admin can call this function") | |
386 | 414 | ||
387 | 415 | ||
388 | 416 | @Verifier(tx) | |
389 | 417 | func verify () = match tx { | |
390 | 418 | case inv: InvokeScriptTransaction => | |
391 | 419 | let lockShareTokens = if ((inv.dApp == farmingAddress)) | |
392 | 420 | then if (if ((inv.function == "lockShareTokens")) | |
393 | 421 | then true | |
394 | 422 | else (inv.function == "claim")) | |
395 | 423 | then true | |
396 | 424 | else (inv.function == "withdrawShareTokens") | |
397 | 425 | else false | |
398 | 426 | let lockSwop = if ((inv.dApp == swopFiGovermanceAddress)) | |
399 | 427 | then if ((inv.function == "lockSWOP")) | |
400 | 428 | then true | |
401 | 429 | else (inv.function == "withdrawSWOP") | |
402 | 430 | else false | |
403 | 431 | let dAppAddress = match inv.dApp { | |
404 | 432 | case dApp: Address => | |
405 | 433 | toString(dApp) | |
406 | 434 | case _ => | |
407 | 435 | throw("Transaction must have only address") | |
408 | 436 | } | |
409 | 437 | let poolFunctions = if (containsElement(swopFiPools, dAppAddress)) | |
410 | 438 | then containsElement(swopFiFunctions, inv.function) | |
411 | 439 | else false | |
412 | 440 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
413 | 441 | then true | |
414 | 442 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
415 | 443 | then true | |
416 | 444 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey4)) | |
417 | 445 | then true | |
418 | 446 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
419 | 447 | if (if (if (lockShareTokens) | |
420 | 448 | then true | |
421 | 449 | else poolFunctions) | |
422 | 450 | then true | |
423 | 451 | else lockSwop) | |
424 | 452 | then signedByAdmin | |
425 | 453 | else false | |
426 | 454 | case _ => | |
427 | 455 | let adm1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
428 | 456 | then 1 | |
429 | 457 | else 0 | |
430 | 458 | let adm2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
431 | 459 | then 1 | |
432 | 460 | else 0 | |
433 | 461 | let adm3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
434 | 462 | then 1 | |
435 | 463 | else 0 | |
436 | 464 | (((adm1Signed + adm2Signed) + adm3Signed) >= 2) | |
437 | 465 | } | |
438 | 466 |
github/deemru/w8io/03bedc9 88.16 ms ◑![]()