diff --git a/src/components/AuctionBlock.tsx b/src/components/AuctionBlock.tsx
index 8debc733..b5317acf 100644
--- a/src/components/AuctionBlock.tsx
+++ b/src/components/AuctionBlock.tsx
@@ -236,7 +236,11 @@ const AuctionBlock = (auction: Props) => {
>
{sellSymbol} OFFERED
{`${formatNumber(
- sellInititalAmount,
+ eventType === 'DEBT' &&
+ Number(sellAmount) !==
+ Number(sellInititalAmount)
+ ? sellAmount
+ : sellInititalAmount,
2
)} ${sellSymbol}`}
diff --git a/src/components/AuctionsOperations/AuctionsPayment.tsx b/src/components/AuctionsOperations/AuctionsPayment.tsx
index baeaae67..bf698a94 100644
--- a/src/components/AuctionsOperations/AuctionsPayment.tsx
+++ b/src/components/AuctionsOperations/AuctionsPayment.tsx
@@ -98,7 +98,7 @@ const AuctionsPayment = () => {
const maxBid = (): string => {
const sellAmountBN = sellAmount
- ? BigNumber.from(toFixedString(sellAmount, 'RAD'))
+ ? BigNumber.from(toFixedString(sellAmount, 'WAD'))
: BigNumber.from('0')
const buyAmountBN = buyAmount
? auctionType === 'STAKED_TOKEN'
@@ -111,7 +111,9 @@ const AuctionsPayment = () => {
if (isOngoingAuction) {
// We need to bid 3% less than the current best bid
return gebUtils
- .wadToFixed(sellAmountBN.div(bidIncreaseBN))
+ .wadToFixed(
+ sellAmountBN.div(bidIncreaseBN).mul(gebUtils.WAD)
+ )
.toString()
} else {
// Auction restart (no bids and passed the dealine)
@@ -122,13 +124,17 @@ const AuctionsPayment = () => {
)
)
return gebUtils
- .wadToFixed(numerator.div(bidIncreaseBN))
+ .wadToFixed(
+ numerator.div(bidIncreaseBN).mul(gebUtils.WAD)
+ )
.toString()
}
} else {
// We need to bid 3% less than the current best bid
return gebUtils
- .wadToFixed(sellAmountBN.div(bidIncreaseBN))
+ .wadToFixed(
+ sellAmountBN.div(bidIncreaseBN).mul(gebUtils.WAD)
+ )
.toString()
}
}
diff --git a/src/components/ConnectedWalletIcon.tsx b/src/components/ConnectedWalletIcon.tsx
index 96a6fc7c..95dae36f 100644
--- a/src/components/ConnectedWalletIcon.tsx
+++ b/src/components/ConnectedWalletIcon.tsx
@@ -10,7 +10,6 @@ interface Props {
const ConnectedWalletIcon = ({ size }: Props) => {
const { connector } = useWeb3React()
- console.log(connector)
function getStatusIcon() {
if (connector === injected) {