# Add OneKey wallet support for PancakeSwap
## Background introduction
PancakeSwap is a popular DEX and has the most users of any decentralized platforms. OneKey wallet is a user-friendly, secure crypto asset wallet. Adding OneKey wallet support for PancakeSwap should can benefit millions of users of PancakeSwap and OneKey wallet.
I created a [OneKeySupport](https://github.com/AndyJiangPro/pancake-frontend/commits/OneKeySupport) branch(still work in progress) and testing is under way.
## Issues observed
### When I tap OneKey Icon, Metamask window showed
When both Metamask and OneKey are installed, and Metamask window showed when I tap the OneKey Icon.
I do not think it is a problem of Pancake becaue Dodo has the same issue. I recorded a [video](https://www.dropbox.com/s/k9aue6hn9wayp6s/OneKeyWallet.mp4?dl=0).
### OneKey wallet detection
[Here](https://docs.onekey.so/Extension/API%20Reference/onekey-provider/) it says I should be able to detect if OneKey is installed by:
```javascript
typeof window !== 'undefined' && window.onekey
```
However, when I test this in the Chrome Browser console.
```shell
$ window.onekey
undefined
$ window.$onekey
{jsBridge: ce, $private: _e, ethereum: we, solana: Yi, starcoin: so, …}
```
So the question is, if I should use `window.$onekey` to detect if OneKey is installed?
## Merge request
PancakeSwap is the most popular decentralized platform.
[OneKey wallet](https://onekey.so/) is a user-friendly, secure crypto wallet. It provides both hardware and software crypto wallet solutions. It has millions of users and has a very good reputation in the community.
Adding OneKey wallet support for PancakeSwap should can benefit millions of PancakeSwap and OneKey Wallet users.