Skip to content

Commit

Permalink
Revert "feat: address screening (aave#1017)"
Browse files Browse the repository at this point in the history
This reverts commit 01a9666.
  • Loading branch information
twur committed Aug 13, 2022
1 parent 2799dcf commit 62af257
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 153 deletions.
3 changes: 1 addition & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NEXT_PUBLIC_ENV=prod
NEXT_PUBLIC_SCREENING_URL=https://aave-api-v2.aave.com
NEXT_PUBLIC_ENV=prod
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ TENDERLY_ACCOUNT=
TENDERLY_PROJECT=
NEXT_PUBLIC_ENV=prod
NEXT_PUBLIC_ENABLE_GOVERNANCE=true
NEXT_PUBLIC_ENABLE_STAKING=true
NEXT_PUBLIC_SCREENING_URL=https://aave-api-v2.aave.com
NEXT_PUBLIC_ENABLE_STAKING=true
1 change: 0 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ runs:
NEXT_PUBLIC_ENV: '${{ inputs.NEXT_PUBLIC_ENV }}'
NEXT_PUBLIC_ENABLE_GOVERNANCE: 'true'
NEXT_PUBLIC_ENABLE_STAKING: 'true'
NEXT_PUBLIC_SCREENING_URL: 'https://aave-api-v2.aave.com'
1 change: 0 additions & 1 deletion custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ namespace NodeJS {
NEXT_PUBLIC_ENABLE_GOVERNANCE: string;
NEXT_PUBLIC_ENABLE_STAKING: string;
NEXT_PUBLIC_ENV: string;
NEXT_PUBLIC_SCREENING_URL: string;
}
}
53 changes: 25 additions & 28 deletions pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { WalletModalContextProvider } from 'src/hooks/useWalletModal';
import { PermissionProvider } from 'src/hooks/usePermissions';
import AaveMetaImage from 'public/aaveMetaLogo.png';
import { FaucetModal } from 'src/components/transactions/Faucet/FaucetModal';
import { AddressBlocked } from 'src/components/AddressBlocked';

// Client-side cache, shared for the whole session of the user in the browser.
const clientSideEmotionCache = createEmotionCache();
Expand Down Expand Up @@ -79,33 +78,31 @@ export default function MyApp(props: MyAppProps) {
<ProtocolDataProvider>
<ConnectionStatusProvider>
<AppGlobalStyles>
<AddressBlocked>
<PermissionProvider>
<ModalContextProvider>
<BackgroundDataProvider>
<AppDataProvider>
<TxBuilderProvider>
<WalletModalContextProvider>
<GasStationProvider>
{getLayout(<Component {...pageProps} />)}
<SupplyModal />
<WithdrawModal />
<BorrowModal />
<RepayModal />
<CollateralChangeModal />
<RateSwitchModal />
<ClaimRewardsModal />
<EmodeModal />
<SwapModal />
<FaucetModal />
</GasStationProvider>
</WalletModalContextProvider>
</TxBuilderProvider>
</AppDataProvider>
</BackgroundDataProvider>
</ModalContextProvider>
</PermissionProvider>
</AddressBlocked>
<PermissionProvider>
<ModalContextProvider>
<BackgroundDataProvider>
<AppDataProvider>
<TxBuilderProvider>
<WalletModalContextProvider>
<GasStationProvider>
{getLayout(<Component {...pageProps} />)}
<SupplyModal />
<WithdrawModal />
<BorrowModal />
<RepayModal />
<CollateralChangeModal />
<RateSwitchModal />
<ClaimRewardsModal />
<EmodeModal />
<SwapModal />
<FaucetModal />
</GasStationProvider>
</WalletModalContextProvider>
</TxBuilderProvider>
</AppDataProvider>
</BackgroundDataProvider>
</ModalContextProvider>
</PermissionProvider>
</AppGlobalStyles>
</ConnectionStatusProvider>
</ProtocolDataProvider>
Expand Down
20 changes: 0 additions & 20 deletions src/components/AddressBlocked.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions src/components/AddressBlockedModal.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/hooks/useAddressAllowed.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ msgstr "Before supplying"
msgid "Before supplying, you need to approve its usage by the Aave protocol. You can learn more in our<0>FAQ</0>"
msgstr "Before supplying, you need to approve its usage by the Aave protocol. You can learn more in our<0>FAQ</0>"

#: src/components/AddressBlockedModal.tsx
msgid "Blocked Address"
msgstr "Blocked Address"

#: pages/index.page.tsx
#: src/components/transactions/Borrow/BorrowModal.tsx
#: src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsListItem.tsx
Expand Down Expand Up @@ -591,7 +587,6 @@ msgstr "Disabling E-Mode"
msgid "Disabling this asset as collateral affects your borrowing power and Health Factor."
msgstr "Disabling this asset as collateral affects your borrowing power and Health Factor."

#: src/components/AddressBlockedModal.tsx
#: src/layouts/WalletWidget.tsx
msgid "Disconnect Wallet"
msgstr "Disconnect Wallet"
Expand Down Expand Up @@ -1566,10 +1561,6 @@ msgstr "There was some error. Please try changing the parameters or <0><1>copy t
msgid "These funds have been borrowed and are not available for withdrawal at this time."
msgstr "These funds have been borrowed and are not available for withdrawal at this time."

#: src/components/AddressBlockedModal.tsx
msgid "This address is blocked on app.aave.com because it is associated with one or more"
msgstr "This address is blocked on app.aave.com because it is associated with one or more"

#: src/components/caps/CapsTooltip.tsx
msgid "This asset has almost reached its borrow cap. There is only {messageValue} available to be borrowed from this market."
msgstr "This asset has almost reached its borrow cap. There is only {messageValue} available to be borrowed from this market."
Expand Down Expand Up @@ -2001,10 +1992,6 @@ msgstr "Zero address not valid"
msgid "assets"
msgstr "assets"

#: src/components/AddressBlockedModal.tsx
msgid "blocked activities"
msgstr "blocked activities"

#: src/components/transactions/FlowCommons/GasEstimationError.tsx
msgid "copy the error"
msgstr "copy the error"
Expand Down

0 comments on commit 62af257

Please sign in to comment.