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