Commit 589d58f5 authored by Max Alekseenko's avatar Max Alekseenko

make usd_threshold required

parent fdbf1dec
......@@ -24,7 +24,7 @@ const config: Feature<{
logoUrl: value.logo,
url: value.url_template.replace('{chainId}', chain.id || ''),
dappId: marketplace.isEnabled ? value.dapp_id : undefined,
usdThreshold: value.usd_threshold || 1,
usdThreshold: value.usd_threshold,
});
}
......
......@@ -650,7 +650,7 @@ const schema = yup
url_template: yup.string().required(),
logo: yup.string(),
dapp_id: yup.string(),
usd_threshold: yup.number(),
usd_threshold: yup.number().required(),
});
return isUndefined || valueSchema.isValidSync(data);
......
......@@ -3,5 +3,5 @@ export type GasRefuelProviderConfig = {
dapp_id?: string;
url_template: string;
logo?: string;
usd_threshold?: number;
usd_threshold: number;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment