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