diff --git a/src/pages/Home/Card.css b/src/pages/Home/Card.css
index ff0f5c5..de846ab 100644
--- a/src/pages/Home/Card.css
+++ b/src/pages/Home/Card.css
@@ -1,8 +1,8 @@
.home__bottomCard{
background: #203A62;
border-radius: 21px;
-width: 350px;
-height: 500px;
+width: 345px;
+height: 419px;
display: flex;
flex-direction: column;
align-items: center;
diff --git a/src/pages/Home/Card.js b/src/pages/Home/Card.js
index 27b1812..8d9e7b0 100644
--- a/src/pages/Home/Card.js
+++ b/src/pages/Home/Card.js
@@ -94,7 +94,6 @@ function Card({
}
}
-
const checkApproved = async() => {
let userAddress = await signer.getAddress()
const isApproved = await token.allowance(userAddress, value.stakingAddress);
@@ -300,23 +299,10 @@ function Card({
Available Balance
{mystakebalance}
-
-
Max Contrubution
-
{Number(maxContribution).toLocaleString('en-US')}
-
-
-
Lock days
-
{Number(lockDays)} days
-
My Reward
-
${Number(reward)}
-
-
-
Pool Type
-
{poolType.toString()}
+
$0
-
setIsOpen(true)}>
{ Active ? "Stake" : "Ended"}
diff --git a/src/pages/Home/HomePage.jsx b/src/pages/Home/HomePage.jsx
index b348027..30606a8 100644
--- a/src/pages/Home/HomePage.jsx
+++ b/src/pages/Home/HomePage.jsx
@@ -63,6 +63,14 @@ function HomePage() {
function refreshData (signer) {
if(signer){
signer.getAddress().then((res)=>{setMyaddress(res)})
+ // getUserInfo()
+ // getUserLockTime()
+ // // getPoolInfo()
+ // getTokenBalance()
+ // getWhiteListAddresses()
+ // checkApproved()
+ // getClaimableTokens()
+ // getPoolLength()
getPoolArray()
}
}
@@ -71,9 +79,11 @@ function HomePage() {
for (let i = 0; i < await getPoolLength(); i++) {
poolDetails[i] = await getPoolInfo(i);
}
- console.log("pool details:", poolDetails);
+ console.log("array:",poolDetails);
}
+ console.log("array again:",poolDetails);
+
async function getPoolInfo(poolId){
try{
let _poolInfo = await staking.poolInfo(poolId);
@@ -107,7 +117,9 @@ function HomePage() {
const length = await staking.poolLength()
return (Number(length))
}
-
+
+ // console.log("length is",getPoolLength());
+
useEffect( ()=>{
refreshData(signer)
},[signer])