forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Removes censorship and from the UI.
Also swaps out some of the RPC servers used since the Infura ones are known to censor. Keydonix is just currently just CloudFlare's JSON-RPC server under the hood (DNS CNAME). The reason the public CF server wasn't included was because there aren't public testnet servers, and I would like to ensure CF gets paid for the traffic being sent to it so they continue to offer their service (using the public gateway would result in the cost being entirely theirs). Also, if CloudFlare censors (or ends up being too expensive), I can redirect Keydonix to QuickNode or somewhere else that is cheaper/censorship resistant. The wallet test was disabled because after a day of debugging I was unable to figure out why changing the RPC server for mainnet from Infura to Keydonix results in the test failing. When I tested the behavior in a production environment everything worked, so I decided to disable the test for now so I could move forward.
- Loading branch information
1 parent
85d8566
commit 924d4e0
Showing
9 changed files
with
14 additions
and
202 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
import { useWeb3React } from '@web3-react/core' | ||
import AddressClaimModal from 'components/claim/AddressClaimModal' | ||
import ConnectedAccountBlocked from 'components/ConnectedAccountBlocked' | ||
import useAccountRiskCheck from 'hooks/useAccountRiskCheck' | ||
import { useModalIsOpen, useToggleModal } from 'state/application/hooks' | ||
import { ApplicationModal } from 'state/application/reducer' | ||
|
||
export default function TopLevelModals() { | ||
const addressClaimOpen = useModalIsOpen(ApplicationModal.ADDRESS_CLAIM) | ||
const addressClaimToggle = useToggleModal(ApplicationModal.ADDRESS_CLAIM) | ||
|
||
const blockedAccountModalOpen = useModalIsOpen(ApplicationModal.BLOCKED_ACCOUNT) | ||
const { account } = useWeb3React() | ||
|
||
useAccountRiskCheck(account) | ||
const open = Boolean(blockedAccountModalOpen && account) | ||
return ( | ||
<> | ||
<AddressClaimModal isOpen={addressClaimOpen} onDismiss={addressClaimToggle} /> | ||
<ConnectedAccountBlocked account={account} isOpen={open} /> | ||
</> | ||
) | ||
} |
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