mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-14 03:11:02 +00:00
fix: remove unused variable lint errors
This commit is contained in:
@@ -196,8 +196,7 @@ export const AddLiquidityModal: React.FC<AddLiquidityModalProps> = ({
|
|||||||
|
|
||||||
const fetchPoolReserves = async () => {
|
const fetchPoolReserves = async () => {
|
||||||
try {
|
try {
|
||||||
// First, get asset minBalances from chain
|
// Get asset1 minBalance from chain (e.g., DOT = 0.1)
|
||||||
let asset0MinBalance = 0.1; // default for native
|
|
||||||
let asset1MinBalance = 0.1; // default
|
let asset1MinBalance = 0.1; // default
|
||||||
|
|
||||||
if (asset1 >= 0) {
|
if (asset1 >= 0) {
|
||||||
@@ -209,7 +208,7 @@ export const AddLiquidityModal: React.FC<AddLiquidityModalProps> = ({
|
|||||||
asset1MinBalance = Math.max(Number(minBalRaw) / Math.pow(10, asset1Decimals), 0.1);
|
asset1MinBalance = Math.max(Number(minBalRaw) / Math.pow(10, asset1Decimals), 0.1);
|
||||||
if (import.meta.env.DEV) console.log(`Asset ${asset1} minBalance:`, asset1MinBalance);
|
if (import.meta.env.DEV) console.log(`Asset ${asset1} minBalance:`, asset1MinBalance);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch {
|
||||||
if (import.meta.env.DEV) console.log('Could not fetch asset1 minBalance');
|
if (import.meta.env.DEV) console.log('Could not fetch asset1 minBalance');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user