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