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