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