Skip to content

Commit

Permalink
Merge pull request #36 from lets-fucking-game/dev
Browse files Browse the repository at this point in the history
Releasing V0.2.1 - Dapp Improvments
  • Loading branch information
0xGeegZ authored Nov 16, 2022
2 parents 315f5bc + 045ab38 commit 9aec994
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Once the total number of players is reached, the game starts.

## How it works

As a player, you will have to log in during a random time slot that change everyday. If you forget, you lose.
As a player, you'll have to interact with the game smart contract each day during a random time slot. This time slot change everyday and could be during the day or during the night. If you forget just once, you lose.

The last remaining players share the prizes according to the prizepool repartition.

Expand All @@ -45,13 +45,13 @@ The game creator can also manage the winners structure to allow more or less pla

## How we built it

Mono Repo boilerplate crafted from multiple other boileplates. This help us to bootstrap this project in the best conditions :
Mono Repo boilerplate crafted from multiple other boilerplates. This help us to bootstrap this project in the best conditions :

- [https://github.com/hackbg/chainlink-fullstack/](https://github.com/hackbg/chainlink-fullstack/) : For the monorepo configuration
- [https://github.com/emretepedev/solidity-hardhat-typescript-boilerplate](https://github.com/emretepedev/solidity-hardhat-typescript-boilerplate) : For the Smart Contract Project configuration
- [https://github.com/pancakeswap/pancake-frontend](https://github.com/pancakeswap/pancake-frontend) : For the front end project configuration

Smart contract : Solidity, Hardhat and Chainlink Keeper
Smart contract : Solidity, Hardhat and ChainLink Keeper

Front end : Used Nextjs and Etherjs to develop a cross chain dapp

Expand Down Expand Up @@ -93,13 +93,13 @@ We would then like to add the possibility of depositing NFTs in the prizepool as

Rather than organizing Twitter contests to win an NFT, why not offer several people in the community the opportunity to sign up for a game and be the actor of their victory? That would be much more fun.

Then, we would like to interface with the chainlink Data Feed service to allow the creator of the game to ask for an action on Twitter (like, share, comment) and a proof in order to register to the game.
Then, we would like to interface with the ChainLink Data Feed service to allow the creator of the game to ask for an action on Twitter (like, share, comment) and a proof in order to register to the game.

Lfg would thus become a real social engagement tool for its web3 community, especially for influencer or NFTs projects.

It will also be necessary to improve the architecture of the smart contracts, in particular to optimize them and optimize gas costs.

Last, we would like to use Ethereum Push Notification to improve user experience and why not add Chainlink VRF to randomize in a better way the daily time range generation.
Last, we would like to use Ethereum Push Notification to improve user experience and why not add ChainLink VRF to randomize in a better way the daily time range generation.

## Built with

Expand Down
16 changes: 9 additions & 7 deletions packages/dapp/src/components/Logo/CurrencyLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ export default function CurrencyLogo({
return []
}, [currency, uriLocations])

if (currency?.isNative) {
if (currency.chainId === ChainId.BSC || currency.chainId === ChainId.BSC_TESTNET) {
return <BinanceIcon width={size} style={style} />
}
return <StyledLogo size={size} srcs={[`/images/chains/${currency.chainId}.png`]} width={size} style={style} />
}
// // return <StyledLogo size={size} srcs={[`/images/1/tokens/${currency.address}.png`]} width={size} style={style} />

// if (currency?.isNative) {
// if (currency.chainId === ChainId.BSC || currency.chainId === ChainId.BSC_TESTNET) {
// return <BinanceIcon width={size} style={style} />
// }
return <StyledLogo size={size} srcs={[`/images/chains/${currency.chainId}.png`]} width={size} style={style} />
// }

return <StyledLogo size={size} srcs={srcs} alt={`${currency?.symbol ?? 'token'} logo`} style={style} />
// return <StyledLogo size={size} srcs={srcs} alt={`${currency?.symbol ?? 'token'} logo`} style={style} />
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const CardHeadingSection: React.FC<React.PropsWithChildren<ExpandableSectionProp
{isReady ? (
<>
{/* <TokenPairImage variant="inverted" primaryToken={token} secondaryToken={quoteToken} width={64} height={64} /> */}
<CurrencyLogo currency={token} size="24px" />
<CurrencyLogo currency={token} size="56px" />
{/* <DoubleCurrencyLogo currency0={token} currency1={token} size={20} />
<Text bold ml="8px">
{!token ? <Dots>{t('Loading')}</Dots> : `${token.symbol}`}
Expand Down

1 comment on commit 9aec994

@vercel
Copy link

@vercel vercel bot commented on 9aec994 Nov 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.