tx · GynaDwFtznPBH3sNGNqLgtbaBeBekz5nYV2yW5QMLnWD 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2021.11.05 17:23 [1777801] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "GynaDwFtznPBH3sNGNqLgtbaBeBekz5nYV2yW5QMLnWD", "fee": 1400000, "feeAssetId": null, "timestamp": 1636122291619, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "y3FYeT3NoMuPhYnC3bQeVCM3yiNuuNXqGFRSndz2gUnBHGq122emGCevxn8kNqB87nZsSLTRQgxNyoYnvA2jwua" ], "script": "base64:AAIFAAAAAAAAABkIAhIAEgYKBBgYGBESABIDCgEIEgQKAggBAAAAAwAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAFAAAAAmE4AQAAAARpbml0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAxM1BQSDd4N2lxb2JXNXppeWlSQ2ljMTlyUXFLcjZuUFlhSzFfYXNzZXRfYmFsYW5jZQAAAAAAAG3UrQUAAAADbmlsAAAAAWkBAAAACGFkZFBvb2xzAAAABAAAAAVwb29scwAAAA9saXF1aWRpdHlUb2tlbnMAAAANc2VydmljZVRva2VucwAAABZsaXF1aWRpdHlUb2tlbkRlY2ltYWxzCgEAAAAQZ2VuZXJhdGVQb29sS2V5cwAAAAIAAAALYWNjdW11bGF0ZWQAAAAEcG9vbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARwb29sAgAAAA5fYXNzZXRfYmFsYW5jZQAAAAAAAAAA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ZAAAAAQUAAAAVbGlxdWlkdXR5QXNzZXRBZGRyZXNzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA1wb29sQW1vdW50S2V5BQAAAA1uZXdQb29sQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABF1c2VyUG9vbEFtb3VudEtleQUAAAARbmV3VXNlclBvb2xBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAEXVzZXJQb29sRWFybmVkS2V5BQAAAA91c2VyRWFybmVkVG90YWwFAAAAA25pbAkAAAIAAAABAgAAACZZb3UgaGF2ZSBub3Qgc3VjaCBiYWxhbmNlIGZvciB3aXRoZHJhdwAAAAEAAAACYjYBAAAAAmI3AAAAAAkAAfQAAAADCAUAAAACYjYAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJiNgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJiNgAAAA9zZW5kZXJQdWJsaWNLZXnaaitB", "height": 1777801, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CqhVUdawARc4KnboWZVw9oBpmTksMUSXzxAfz8zzbnF9 Next: BsTRcwfFnAp7nzp6mDB92k5PmDQPy5GybQXCuXhiVYSt Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | func generatePoolLiquidityTokenKeys (accumulated,pool) = { | |
20 | 20 | let poolIndex = value(indexOf(pools, pool)) | |
21 | 21 | let liquidityToken = liquidityTokens[poolIndex] | |
22 | - | ||
22 | + | StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | func generatePoolServiceTokenKeys (accumulated,pool) = { | |
26 | 26 | let poolIndex = value(indexOf(pools, pool)) | |
27 | 27 | let liquidityToken = serviceTokens[poolIndex] | |
28 | - | ||
28 | + | StringEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = { | |
32 | 32 | let poolIndex = value(indexOf(pools, pool)) | |
33 | 33 | let liquidityToken = liquidityTokenDecimals[poolIndex] | |
34 | - | ||
34 | + | IntegerEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
35 | 35 | } | |
36 | 36 | ||
37 | - | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) | |
37 | + | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated | |
38 | 38 | ||
39 | + | let poolBalanceKeys = { | |
40 | + | let $l = pools | |
41 | + | let $s = size($l) | |
42 | + | let $acc0 = nil | |
43 | + | func 1 ($a,$i) = if (($i >= $s)) | |
44 | + | then $a | |
45 | + | else generatePoolKeys($a, $l[$i]) | |
46 | + | ||
47 | + | func 2 ($a,$i) = if (($i >= $s)) | |
48 | + | then $a | |
49 | + | else throw("List size exceeds 20") | |
50 | + | ||
51 | + | 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) | |
52 | + | } | |
53 | + | let poolLiquidityTokenKeys = { | |
54 | + | let $l = pools | |
55 | + | let $s = size($l) | |
56 | + | let $acc0 = nil | |
57 | + | func 1 ($a,$i) = if (($i >= $s)) | |
58 | + | then $a | |
59 | + | else generatePoolLiquidityTokenKeys($a, $l[$i]) | |
60 | + | ||
61 | + | func 2 ($a,$i) = if (($i >= $s)) | |
62 | + | then $a | |
63 | + | else throw("List size exceeds 20") | |
64 | + | ||
65 | + | 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) | |
66 | + | } | |
39 | 67 | let poolServiceTokenKeys = { | |
40 | 68 | let $l = pools | |
41 | 69 | let $s = size($l) | |
78 | 106 | ||
79 | 107 | 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) | |
80 | 108 | } | |
81 | - | poolActiveKeys | |
109 | + | ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys) | |
82 | 110 | } | |
83 | 111 | ||
84 | 112 |
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 | @Callable(a8) | |
11 | 11 | func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 7197869)] | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = { | |
17 | 17 | func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated | |
18 | 18 | ||
19 | 19 | func generatePoolLiquidityTokenKeys (accumulated,pool) = { | |
20 | 20 | let poolIndex = value(indexOf(pools, pool)) | |
21 | 21 | let liquidityToken = liquidityTokens[poolIndex] | |
22 | - | ||
22 | + | StringEntry((pool + "_liquidity_token"), liquidityToken) :: accumulated | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | func generatePoolServiceTokenKeys (accumulated,pool) = { | |
26 | 26 | let poolIndex = value(indexOf(pools, pool)) | |
27 | 27 | let liquidityToken = serviceTokens[poolIndex] | |
28 | - | ||
28 | + | StringEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = { | |
32 | 32 | let poolIndex = value(indexOf(pools, pool)) | |
33 | 33 | let liquidityToken = liquidityTokenDecimals[poolIndex] | |
34 | - | ||
34 | + | IntegerEntry((pool + "_service_token"), liquidityToken) :: accumulated | |
35 | 35 | } | |
36 | 36 | ||
37 | - | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) | |
37 | + | func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true) :: accumulated | |
38 | 38 | ||
39 | + | let poolBalanceKeys = { | |
40 | + | let $l = pools | |
41 | + | let $s = size($l) | |
42 | + | let $acc0 = nil | |
43 | + | func 1 ($a,$i) = if (($i >= $s)) | |
44 | + | then $a | |
45 | + | else generatePoolKeys($a, $l[$i]) | |
46 | + | ||
47 | + | func 2 ($a,$i) = if (($i >= $s)) | |
48 | + | then $a | |
49 | + | else throw("List size exceeds 20") | |
50 | + | ||
51 | + | 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) | |
52 | + | } | |
53 | + | let poolLiquidityTokenKeys = { | |
54 | + | let $l = pools | |
55 | + | let $s = size($l) | |
56 | + | let $acc0 = nil | |
57 | + | func 1 ($a,$i) = if (($i >= $s)) | |
58 | + | then $a | |
59 | + | else generatePoolLiquidityTokenKeys($a, $l[$i]) | |
60 | + | ||
61 | + | func 2 ($a,$i) = if (($i >= $s)) | |
62 | + | then $a | |
63 | + | else throw("List size exceeds 20") | |
64 | + | ||
65 | + | 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) | |
66 | + | } | |
39 | 67 | let poolServiceTokenKeys = { | |
40 | 68 | let $l = pools | |
41 | 69 | let $s = size($l) | |
42 | 70 | let $acc0 = nil | |
43 | 71 | func 1 ($a,$i) = if (($i >= $s)) | |
44 | 72 | then $a | |
45 | 73 | else generatePoolServiceTokenKeys($a, $l[$i]) | |
46 | 74 | ||
47 | 75 | func 2 ($a,$i) = if (($i >= $s)) | |
48 | 76 | then $a | |
49 | 77 | else throw("List size exceeds 20") | |
50 | 78 | ||
51 | 79 | 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) | |
52 | 80 | } | |
53 | 81 | let poolLiquidityTokenDecimalKeys = { | |
54 | 82 | let $l = pools | |
55 | 83 | let $s = size($l) | |
56 | 84 | let $acc0 = nil | |
57 | 85 | func 1 ($a,$i) = if (($i >= $s)) | |
58 | 86 | then $a | |
59 | 87 | else generatePoolLiquidityTokenDecimalKeys($a, $l[$i]) | |
60 | 88 | ||
61 | 89 | func 2 ($a,$i) = if (($i >= $s)) | |
62 | 90 | then $a | |
63 | 91 | else throw("List size exceeds 20") | |
64 | 92 | ||
65 | 93 | 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) | |
66 | 94 | } | |
67 | 95 | let poolActiveKeys = { | |
68 | 96 | let $l = pools | |
69 | 97 | let $s = size($l) | |
70 | 98 | let $acc0 = nil | |
71 | 99 | func 1 ($a,$i) = if (($i >= $s)) | |
72 | 100 | then $a | |
73 | 101 | else generatePoolActiveKeys($a, $l[$i]) | |
74 | 102 | ||
75 | 103 | func 2 ($a,$i) = if (($i >= $s)) | |
76 | 104 | then $a | |
77 | 105 | else throw("List size exceeds 20") | |
78 | 106 | ||
79 | 107 | 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) | |
80 | 108 | } | |
81 | - | poolActiveKeys | |
109 | + | ((((poolBalanceKeys ++ poolLiquidityTokenKeys) ++ poolServiceTokenKeys) ++ poolLiquidityTokenDecimalKeys) ++ poolActiveKeys) | |
82 | 110 | } | |
83 | 111 | ||
84 | 112 | ||
85 | 113 | ||
86 | 114 | @Callable(a8) | |
87 | 115 | func call () = { | |
88 | 116 | let a9 = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0) | |
89 | 117 | let b1 = calculateAssetId(a9) | |
90 | 118 | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), a9] | |
91 | 119 | } | |
92 | 120 | ||
93 | 121 | ||
94 | 122 | ||
95 | 123 | @Callable(i) | |
96 | 124 | func deposit (pool) = { | |
97 | 125 | let amount = i.payments[0].amount | |
98 | 126 | let assetId = i.payments[0].assetId | |
99 | 127 | let poolAmountKey = (pool + "_asset_balance") | |
100 | 128 | let userAddress = toString(i.caller) | |
101 | 129 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
102 | 130 | let dAppAssetAddress = getStringValue(this, (pool + "_service_token")) | |
103 | 131 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
104 | 132 | let userAmount = match getInteger(userPoolAmountKey) { | |
105 | 133 | case int: Int => | |
106 | 134 | int | |
107 | 135 | case nothing => | |
108 | 136 | 0 | |
109 | 137 | } | |
110 | 138 | let newPoolAmount = (poolAmount + amount) | |
111 | 139 | let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
112 | 140 | let newUserPoolAmount = (userAmount + userAmountWithoutFee) | |
113 | 141 | [Reissue(fromBase58String(dAppAssetAddress), userAmountWithoutFee, true), ScriptTransfer(i.caller, userAmountWithoutFee, fromBase58String(dAppAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)] | |
114 | 142 | } | |
115 | 143 | ||
116 | 144 | ||
117 | 145 | ||
118 | 146 | @Callable(i) | |
119 | 147 | func withdraw (pool,userEarned) = { | |
120 | 148 | let amount = i.payments[0].amount | |
121 | 149 | let assetId = i.payments[0].assetId | |
122 | 150 | let poolAmountKey = (pool + "_asset_balance") | |
123 | 151 | let userAddress = toString(i.caller) | |
124 | 152 | let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance") | |
125 | 153 | let userPoolEarnedKey = (((pool + "_") + userAddress) + "_earned") | |
126 | 154 | let poolAmount = getIntegerValue(this, poolAmountKey) | |
127 | 155 | let userAmount = match getInteger(userPoolAmountKey) { | |
128 | 156 | case int: Int => | |
129 | 157 | int | |
130 | 158 | case nothing => | |
131 | 159 | 0 | |
132 | 160 | } | |
133 | 161 | let userEarnedBefore = match getInteger(userPoolEarnedKey) { | |
134 | 162 | case int: Int => | |
135 | 163 | int | |
136 | 164 | case nothing => | |
137 | 165 | 0 | |
138 | 166 | } | |
139 | 167 | let liquidutyAssetAddress = getStringValue(this, (pool + "_liquidity_token")) | |
140 | 168 | let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) { | |
141 | 169 | case asset: Asset => | |
142 | 170 | asset.decimals | |
143 | 171 | case _ => | |
144 | 172 | throw("Can't find asset") | |
145 | 173 | } | |
146 | 174 | let dAppAssetAddress = getStringValue(this, (pool + "_service_token")) | |
147 | 175 | let userEarnedTotal = (userEarned + userEarnedBefore) | |
148 | 176 | let amountWithoutFee = ((amount - fraction(amount, 1, platformFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP)) | |
149 | 177 | let newPoolAmount = (poolAmount - amountWithoutFee) | |
150 | 178 | if ((userAmount >= amount)) | |
151 | 179 | then { | |
152 | 180 | let newUserPoolAmount = (userAmount - amountWithoutFee) | |
153 | 181 | [Burn(fromBase58String(dAppAssetAddress), amountWithoutFee), ScriptTransfer(i.caller, amountWithoutFee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount), IntegerEntry(userPoolEarnedKey, userEarnedTotal)] | |
154 | 182 | } | |
155 | 183 | else throw("You have not such balance for withdraw") | |
156 | 184 | } | |
157 | 185 | ||
158 | 186 | ||
159 | 187 | @Verifier(b6) | |
160 | 188 | func b7 () = sigVerify(b6.bodyBytes, b6.proofs[0], b6.senderPublicKey) | |
161 | 189 |
github/deemru/w8io/fabc49c 50.27 ms ◑