chore: set best as default

closes #164
This commit is contained in:
kieran 2024-07-11 11:25:15 +01:00
parent 4292b26e4b
commit 1716c021ef
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export default function DashboardIntroFinal() {
const [info, setInfo] = useState<StreamProviderInfo>();
const defaultEndpoint = useMemo(() => {
return info?.endpoints.find(a => a.name == "Good");
return info?.endpoints.find(a => a.name == "Best");
}, [info]);
async function loadInfo() {

View File

@ -16,7 +16,7 @@ export default function DashboardIntro() {
const exampleHours = 4;
const defaultEndpoint = useMemo(() => {
return info?.endpoints.find(a => a.name == "Good");
return info?.endpoints.find(a => a.name == "Best");
}, [info]);
const rate = useRates("BTCUSD");
const exampleCost = rate.ask * (exampleHours * (defaultEndpoint?.rate ?? 0) * 60) * 1e-8;