Skip to content

Commit

Permalink
Feature/ifo v2 (pancakeswap#837)
Browse files Browse the repository at this point in the history
* fix: Clean the current IFO code

* chore: Prepare for V2

* feat: Create foldable card

* feat: Contract interactions

* feat: New design

* feat(ifo): Details FAQ (pancakeswap#2)

* feat(ifo): Details FAQ

* chore: Move details to config file

* refactor: Config description to array

* fix: Named export (pancakeswap#3)

* feat: Card states (pancakeswap#4)

* style: Ribbon gradient (pancakeswap#5)

* feat: Commit LPs

* feat: Visual fallbacks

* fix: Visual glicthes

* fix: Claim

* fix: Display in the cards

* feat: Add get LP step in the contribute modal

* fix: Commit lp button

* feat: Rework the contribute modal

* feat: Add the tooltip on the small card

* fix: Visual fixes

* feat: Add achievements

* feat: Fetch LP price

* fix: Increase tax precision

* fix: Pull offering amount when user contribute

* chore: Update IFO footer

* feat: Add tooltip when nothing to claim

* chore: Change the config file format

* chore: Cleanup

* chore: Remove the test config

* feat: Add new ifo config

Co-authored-by: Chef Hachioji <[email protected]>
  • Loading branch information
RabbitDoge and hachiojidev authored Apr 15, 2021
1 parent 4c63695 commit 96d7828
Show file tree
Hide file tree
Showing 68 changed files with 3,713 additions and 1,561 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@binance-chain/bsc-connector": "^1.0.0",
"@crowdin/crowdin-api-client": "^1.10.4",
"@ethersproject/abi": "^5.0.7",
"@pancakeswap-libs/uikit": "^0.24.0",
"@pancakeswap-libs/uikit": "^0.25.3",
"@reduxjs/toolkit": "^1.5.0",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
Expand Down
Binary file added public/images/curtain-bottom-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/curtain-bottom-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ifo-bunny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/images/ifo-bunny.svg

This file was deleted.

60 changes: 60 additions & 0 deletions public/images/ifos/horizon-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/images/ifos/horizon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/__tests__/config/ifo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import ifos from 'config/constants/ifo'
import campaigns from 'config/constants/campaigns'

describe('Config IFOs', () => {
it.each(ifos.map((ifo) => ifo.id))('IFO #%d has an unique id', (id) => {
it.each(ifos.map((ifo) => ifo.id))('IFO %s has an unique id', (id) => {
const duplicates = ifos.filter((i) => id === i.id)
expect(duplicates).toHaveLength(1)
})
it.each(ifos.map((ifo) => [ifo.id, ifo.address]))('IFO #%d has an unique address', (id, address) => {
it.each(ifos.map((ifo) => [ifo.id, ifo.address]))('IFO %s has an unique address', (id, address) => {
const duplicates = ifos.filter((i) => address === i.address)
expect(duplicates).toHaveLength(1)
})
it.each(ifos.map((ifo) => [ifo.id, ifo.campaignId]))('IFO #%d has an unique campaign ID', (id, campaignId) => {
it.each(ifos.map((ifo) => [ifo.id, ifo.campaignId]))('IFO %s has an unique campaign ID', (id, campaignId) => {
const duplicates = ifos.filter((i) => campaignId === i.campaignId)
expect(duplicates).toHaveLength(1)
})
it.each(ifos.map((ifo) => [ifo.id, ifo.campaignId]))('IFO #%d has an existing campaign ID', (id, campaignId) => {
it.each(ifos.map((ifo) => [ifo.id, ifo.campaignId]))('IFO %s has an existing campaign ID', (id, campaignId) => {
const campaign = campaigns.find((c) => campaignId === c.id)
expect(campaign).not.toBeUndefined()
})
Expand Down
2 changes: 0 additions & 2 deletions src/components/BalanceInput/index.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 96d7828

Please sign in to comment.