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