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