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