Skip to content

Commit

Permalink
add pool data type
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseevaiana committed Jul 18, 2024
1 parent 9be1e20 commit 55d5e76
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/containers/Earn/PoolBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@ import styled from 'styled-components'
import { formatWithCommas, getTokenLogo } from '~/utils'
import { Tooltip as ReactTooltip } from 'react-tooltip'

const PoolBlock = ({ nitroPoolAddress, nitroPoolData }: { nitroPoolAddress: string; nitroPoolData: any }) => {
console.log("DATA: ", nitroPoolData)
interface PoolData {
nitroData: {
startTime: number
endTime: number
apy: number
tvlUSD: number
}
spNftData: {
apy: number
}
collateral0TokenSymbol: string
collateral1TokenSymbol: string
rewardToken1Symbol: string
rewardToken2Symbol: string
}

const PoolBlock = ({ nitroPoolAddress, nitroPoolData }: { nitroPoolAddress: string; nitroPoolData: PoolData }) => {
console.log('DATA: ', nitroPoolData)
const { collateral0TokenSymbol, collateral1TokenSymbol, rewardToken1Symbol, rewardToken2Symbol } = nitroPoolData

const getTimePeriod = () => {
Expand Down

0 comments on commit 55d5e76

Please sign in to comment.