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