-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: lp collect fee * feat: add disclaimer erc 20 * fix: add liqudity native symbol
- Loading branch information
Showing
11 changed files
with
88 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Trans } from '@lingui/macro' | ||
import { AlertTriangle } from 'react-feather' | ||
import { Flex, Text } from 'rebass' | ||
|
||
import { WarningCard } from 'components/Card' | ||
import useTheme from 'hooks/useTheme' | ||
import { ExternalLink } from 'theme' | ||
|
||
export default function DisclaimerERC20({ href }: { href?: string }) { | ||
const theme = useTheme() | ||
return ( | ||
<WarningCard padding="10px 16px"> | ||
<Flex alignItems="center" sx={{ gap: '12px' }} lineHeight={1.5}> | ||
<AlertTriangle stroke={theme.warning} size="16px" /> | ||
<Text flex={1} fontSize={12}> | ||
<Trans> | ||
Disclaimer: KyberSwap is a permissionless protocol optimized for the standard ERC20 implementation only. | ||
Please do your own research before you provide liquidity using tokens with unique mechanics (e.g. FOT, | ||
Rebase, LP tokens, contract deposits, etc.). More info{' '} | ||
<ExternalLink | ||
href={ | ||
href || | ||
'https://docs.kyberswap.com/liquidity-solutions/kyberswap-elastic/user-guides/elastic-pool-creation#non-standard-tokens' | ||
} | ||
> | ||
here | ||
</ExternalLink> | ||
</Trans> | ||
</Text> | ||
</Flex> | ||
</WarningCard> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters