Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/stores/main.hundred.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class MainHundredStore {
try{
const {data} = await axios.get('https://api.llama.fi/protocol/b.protocol')
const {currentChainTvls} = data
debugger
this.hundredTvlArbitrum = currentChainTvls.Arbitrum
this.hundredTvlFantom = currentChainTvls.Fantom
} catch (err) {
Expand Down
7 changes: 4 additions & 3 deletions src/stores/user.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import WalletSelectionModal from "../components/modals/WalletSelectionModal"
const supportedNetworks = {
"1": "Mainnet",
"42": "Kovan",
"421611": "Arbitrum Testnet",
"1137": "Hardhat"
}

Expand Down Expand Up @@ -112,9 +111,11 @@ class UserStore {
// save connection data to local storage
window.localStorage.setItem("walletType", this.walletType)
const networkType = await this.web3.eth.net.getId()
debugger
if (!supportedNetworks[networkType.toString()]) {
EventBus.$emit("app-error", "Only Mainnet and Kovan testnet are supported");
const path = window.location.pathname
if(path == "/compound" || path == "/maker" || path == "/app"){
EventBus.$emit("app-error", "Only Mainnet and Kovan testnet are supported");
}
return false;
}
runInAction(()=> {
Expand Down