tx · 8BJc8rbU8mL76VrNKtakGN5S3emZizuNkLwpD3XS3RSZ 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t: -0.05000000 Waves 2021.02.07 20:54 [1388102] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves
{ "type": 13, "id": "8BJc8rbU8mL76VrNKtakGN5S3emZizuNkLwpD3XS3RSZ", "fee": 5000000, "feeAssetId": null, "timestamp": 1612720480080, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "3yjskWcX43eWQNfZU8Gqu1xR59M6K8mB2nkXKSJS2sU2xqumsBhJWMPWR5feQ34t9fSMzbzRpy3TyBZiF9G5bpP8" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASABIAEgASAAAAABEAAAAAAWUAAAACeOY5CGsAAAAADmt3b3Rhcm93bm93YWdpCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAA5rd290YXJvd25vd2FnaQAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAHZW5hYmxlZAkABBoAAAACBQAAAAR0aGlzAgAAAAdlbmFibGVkAAAAAAZwb3ppb20JAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAABlBvemlvbQAAAAAKYmFsYW5zVVNETgkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAILcwEVDzAH5/KJhWA+xRAa417KPR+5S8mya0Jgcjq6dKAAAAAAAAAABkAAAAAApiYWxhbnNVU0RUCQAAaAAAAAIJAAPwAAAAAgUAAAAEdGhpcwEAAAAgCQkIc1SlToBQ6g5srGyVfDpHDiTpgVyC9ileahaxg84AAAAAAAAAAGQBAAAAAmxuAAAAAQAAAAF4CQAAbQ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QwQGbB3trFVlWCSikWmDG3/qWow8z6GBwPCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAADQFAAAAA25pbAkAAAIAAAABAgAAAB1Nb3plc3ogd3DFgmFjaWMgdHlsa28gcHJvdG9uYQAAAAFpAQAAAAR0ZXN0AAAAAAQAAAACYWEJAABrAAAAAwAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAACYWEFAAAAAmFhBQAAAANuaWwAAAAA5SPKfw==", "height": 1388102, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HniMqT3XPHMkssR8E39GPktSWyVYPtTR1JpzNQnaV8jy Next: 6hAAcop7nfqjVxscPffqkdk2V6nz1AbA7vygDHUCL63o Diff:
Old | New | Differences | |
---|---|---|---|
204 | 204 | ||
205 | 205 | @Callable(i) | |
206 | 206 | func test () = { | |
207 | - | let aa = fraction( | |
207 | + | let aa = fraction(2, 3, 1) | |
208 | 208 | [IntegerEntry("aa", aa)] | |
209 | 209 | } | |
210 | 210 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let e = 2718281828459 | |
5 | 5 | ||
6 | 6 | let kwotarownowagi = getIntegerValue(this, "kwotarownowagi") | |
7 | 7 | ||
8 | 8 | let baza = (kwotarownowagi * 18) | |
9 | 9 | ||
10 | 10 | let enabled = getInteger(this, "enabled") | |
11 | 11 | ||
12 | 12 | let poziom = getIntegerValue(this, "Poziom") | |
13 | 13 | ||
14 | 14 | let balansUSDN = (assetBalance(this, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d') * 100) | |
15 | 15 | ||
16 | 16 | let balansUSDT = (assetBalance(this, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y') * 100) | |
17 | 17 | ||
18 | 18 | func ln (x) = log(x, 8, e, 8, 8, DOWN) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func exp (x) = pow((e / 10000), 8, x, 8, 8, DOWN) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func exp12 (x) = pow(e, 12, x, 12, 12, DOWN) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func mnozenie (x,y) = fraction(x, y, 100000000) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func mnozenie12do8 (x,y) = fraction(x, y, 1000000000000) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func dzielenie (x,y) = fraction(x, 100000000, y) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func dzielenie12 (x,y) = fraction(x, 1000000, (y / 1000000)) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func Halley (x,w) = { | |
40 | 40 | let wTimes = (mnozenie(w, exp(w)) - x) | |
41 | 41 | let wPlusOneTimes = mnozenie((w + 100000000), exp(w)) | |
42 | 42 | if ((wTimes != 0)) | |
43 | 43 | then (w - dzielenie(wTimes, (wPlusOneTimes - dzielenie(mnozenie((w + 200000000), wTimes), ((2 * w) + 200000000))))) | |
44 | 44 | else w | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func continuedfraction (x) = dzielenie(x, (100000000 + dzielenie(x, (100000000 + dzielenie(x, (200000000 + dzielenie((x * 5), (300000000 + dzielenie((x * 17), (1000000000 + dzielenie((x * 133), (1700000000 + dzielenie((x * 1927), (1900000000 + dzielenie((x * 13582711), 9442300000000))))))))))))))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func LambertW0 (x) = Halley(x, continuedfraction(x)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(i) | |
55 | 55 | func USDTnaUSDNnaUSDT () = { | |
56 | 56 | let oplata = fraction(i.payments[0].amount, 4, 10000) | |
57 | 57 | let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1) | |
58 | 58 | if ((enabled == 1)) | |
59 | 59 | then if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y')) | |
60 | 60 | then if ((kwotawymiany > (kwotarownowagi - balansUSDT))) | |
61 | 61 | then if ((balansUSDT >= kwotarownowagi)) | |
62 | 62 | then { | |
63 | 63 | let nowypoziom = (poziom + kwotawymiany) | |
64 | 64 | let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom))) | |
65 | 65 | [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 1)] | |
66 | 66 | } | |
67 | 67 | else { | |
68 | 68 | let czesc1 = (kwotarownowagi - balansUSDT) | |
69 | 69 | let nowypoziom = (((balansUSDT + kwotawymiany) + baza) - kwotarownowagi) | |
70 | 70 | let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza)))) | |
71 | 71 | [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 2)] | |
72 | 72 | } | |
73 | 73 | else { | |
74 | 74 | let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza)))) | |
75 | 75 | let nowypoziom = (poziom - wyplata) | |
76 | 76 | [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 3)] | |
77 | 77 | } | |
78 | 78 | else if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d')) | |
79 | 79 | then if ((kwotawymiany > (kwotarownowagi - balansUSDN))) | |
80 | 80 | then if ((balansUSDN >= kwotarownowagi)) | |
81 | 81 | then { | |
82 | 82 | let nowypoziom = (poziom + kwotawymiany) | |
83 | 83 | let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom))) | |
84 | 84 | [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 11)] | |
85 | 85 | } | |
86 | 86 | else { | |
87 | 87 | let czesc1 = (kwotarownowagi - balansUSDN) | |
88 | 88 | let nowypoziom = (((balansUSDN + kwotawymiany) + baza) - kwotarownowagi) | |
89 | 89 | let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza)))) | |
90 | 90 | [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 21)] | |
91 | 91 | } | |
92 | 92 | else { | |
93 | 93 | let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza)))) | |
94 | 94 | let nowypoziom = (poziom - wyplata) | |
95 | 95 | [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 31)] | |
96 | 96 | } | |
97 | 97 | else throw("Nieobsługiwany asset") | |
98 | 98 | else throw("Kontrakt tymczasowo wyłączony") | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | ||
103 | 103 | @Callable(i) | |
104 | 104 | func InwestycjaUSDN () = if ((i.payments[0].assetId != base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d')) | |
105 | 105 | then throw("Do tej funkcji mozesz wpłacać tylko USDN") | |
106 | 106 | else { | |
107 | 107 | let wplata = (i.payments[0].amount * 100) | |
108 | 108 | let b1 = if (((balansUSDN + wplata) > balansUSDT)) | |
109 | 109 | then balansUSDT | |
110 | 110 | else (balansUSDN + wplata) | |
111 | 111 | let b2 = if (((balansUSDN + wplata) > balansUSDT)) | |
112 | 112 | then (balansUSDN + wplata) | |
113 | 113 | else balansUSDT | |
114 | 114 | let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444)))) | |
115 | 115 | let W0 = LambertW0(a) | |
116 | 116 | let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444))) | |
117 | 117 | let wyplata = ((nowabaza - baza) / 9) | |
118 | 118 | let nowypoziomrownowagi = (nowabaza / 18) | |
119 | 119 | let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza) | |
120 | 120 | [IntegerEntry("W0", W0), IntegerEntry("a", a), IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')] | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Callable(i) | |
126 | 126 | func InwestycjaUSDT () = if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y')) | |
127 | 127 | then { | |
128 | 128 | let wplata = (i.payments[0].amount * 100) | |
129 | 129 | if (((balansUSDT + wplata) > balansUSDN)) | |
130 | 130 | then { | |
131 | 131 | let b1 = balansUSDN | |
132 | 132 | let b2 = (balansUSDT + wplata) | |
133 | 133 | let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444)))) | |
134 | 134 | let W0 = LambertW0(a) | |
135 | 135 | let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444))) | |
136 | 136 | let wyplata = ((nowabaza - baza) / 9) | |
137 | 137 | let nowypoziomrownowagi = (nowabaza / 18) | |
138 | 138 | let nowypoziom = (((balansUSDT + wplata) - nowypoziomrownowagi) + nowabaza) | |
139 | 139 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')] | |
140 | 140 | } | |
141 | 141 | else { | |
142 | 142 | let b1 = (balansUSDT + wplata) | |
143 | 143 | let b2 = balansUSDN | |
144 | 144 | let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444)))) | |
145 | 145 | let W0 = LambertW0(a) | |
146 | 146 | let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444))) | |
147 | 147 | let wyplata = ((nowabaza - baza) / 9) | |
148 | 148 | let nowypoziomrownowagi = (nowabaza / 18) | |
149 | 149 | let nowypoziom = ((balansUSDN - nowypoziomrownowagi) + nowabaza) | |
150 | 150 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')] | |
151 | 151 | } | |
152 | 152 | } | |
153 | 153 | else throw("Do tej funkcji mozesz wpłacać tylko USDT") | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(i) | |
158 | 158 | func WyplataUSDN () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')) | |
159 | 159 | then { | |
160 | 160 | let kwota = (i.payments[0].amount * 100) | |
161 | 161 | let nowabaza = (baza - (kwota * 9)) | |
162 | 162 | let nowakwotarownowagi = (nowabaza / 18) | |
163 | 163 | if ((balansUSDT > nowakwotarownowagi)) | |
164 | 164 | then { | |
165 | 165 | let nowypoziom = ((balansUSDT - nowakwotarownowagi) + nowabaza) | |
166 | 166 | let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza))) | |
167 | 167 | let wyplata = ((balansUSDN - nowakwotarownowagi) + a) | |
168 | 168 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("a1", a), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)] | |
169 | 169 | } | |
170 | 170 | else { | |
171 | 171 | let k = (nowakwotarownowagi - balansUSDT) | |
172 | 172 | let nowypoziom = mnozenie12do8(nowabaza, exp12(dzielenie12(k, nowabaza))) | |
173 | 173 | let wyplata = (balansUSDN - ((nowypoziom - nowabaza) + nowakwotarownowagi)) | |
174 | 174 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)] | |
175 | 175 | } | |
176 | 176 | } | |
177 | 177 | else throw("Mozesz wpłacic tylko protona") | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | ||
181 | 181 | @Callable(i) | |
182 | 182 | func WyplataUSDT () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')) | |
183 | 183 | then { | |
184 | 184 | let kwota = (i.payments[0].amount * 100) | |
185 | 185 | let nowabaza = (baza - (kwota * 9)) | |
186 | 186 | let nowakwotarownowagi = (nowabaza / 18) | |
187 | 187 | if ((balansUSDN > nowakwotarownowagi)) | |
188 | 188 | then { | |
189 | 189 | let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza) | |
190 | 190 | let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza))) | |
191 | 191 | let wyplata = ((balansUSDT - nowakwotarownowagi) + a) | |
192 | 192 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)] | |
193 | 193 | } | |
194 | 194 | else { | |
195 | 195 | let k = (nowakwotarownowagi - balansUSDN) | |
196 | 196 | let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza))) | |
197 | 197 | let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi)) | |
198 | 198 | [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount), IntegerEntry("Warunek", 52)] | |
199 | 199 | } | |
200 | 200 | } | |
201 | 201 | else throw("Mozesz wpłacic tylko protona") | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(i) | |
206 | 206 | func test () = { | |
207 | - | let aa = fraction( | |
207 | + | let aa = fraction(2, 3, 1) | |
208 | 208 | [IntegerEntry("aa", aa)] | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 |
github/deemru/w8io/169f3d6 47.11 ms ◑