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