Skip to content

Commit

Permalink
remove redundant logging and add some to help debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaran- committed Sep 20, 2023
1 parent 6c9c926 commit 5e3f3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/IntentInidcator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ export const Indicator = ({
'w-3 h-3': size === 'lg',
}
)
console.log('classnames', names)
return <div className={names} data-testid="indicator" />
}
7 changes: 4 additions & 3 deletions src/pages/liquidity-provision/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ const MarketsLiquidity = () => {
)
const status = params.data.node.data.marketTradingMode
const intent = intentForStatus(status)
console.log('intentForStatus: ', intent)
return (
<div>
<Indicator variant={intent} />
Expand Down Expand Up @@ -375,6 +374,7 @@ const MarketsLiquidity = () => {
tradingMode,
auctionTrigger
)
console.log('data:', { params })
const intent = intentForStatus(tradingMode)
return (
<div>
Expand All @@ -385,6 +385,7 @@ const MarketsLiquidity = () => {
decimals={settlementAssetDecimals}
levels={feeLevels}
intent={intent}
triggerRatio={auctionTrigger}
/>
</div>
)
Expand All @@ -408,8 +409,8 @@ const percentageLiquidity = (suppliedStake, targetStake) => {
const display = Number.isNaN(roundedPercentage)
? 'N/A'
: roundedPercentage > 100
? '>100%'
: formatNumberPercentage(toBigNum(roundedPercentage, 0), 0)
? '>100%'
: formatNumberPercentage(toBigNum(roundedPercentage, 0), 0)
return display
}

Expand Down

0 comments on commit 5e3f3b6

Please sign in to comment.