Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Cake to main token? #21

Open
tanhsnkt1997 opened this issue Aug 30, 2022 · 7 comments
Open

How to add Cake to main token? #21

tanhsnkt1997 opened this issue Aug 30, 2022 · 7 comments

Comments

@tanhsnkt1997
Copy link

tanhsnkt1997 commented Aug 30, 2022

If i add cake LIKE [EnumChainId.BSC]: {
BTC: {
address: UtilsAddresses.toCheckSum("0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"),
decimals: 18
},//
// DOT: {
// address: UtilsAddresses.toCheckSum("0x7083609fce4d1d8dc0c979aab8c869ea2c873402"),
// decimals: 18
// },//

    WBNB: {
        address: UtilsAddresses.toCheckSum("0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"),
        decimals: 18
    },
    BUSD: {
        address: UtilsAddresses.toCheckSum("0xe9e7cea3dedca5984780bafc599bd69add087d56"),
        decimals: 18
    },//
    USDC: {
        address: UtilsAddresses.toCheckSum("0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d"),
        decimals: 18
    },//
    USDT: {
        address: UtilsAddresses.toCheckSum("0x55d398326f99059ff775485246999027b3197955"),
        decimals: 18
    },//
    CAKE: {
        address: UtilsAddresses.toCheckSum("0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"),
        decimals: 18
    }
}

}

EnumMainTokens[EnumChainId.BSC].STABLECOINS = [ "BUSD", "USDC", "USDT", "CAKE" ].map( e => EnumMainTokens[EnumChainId.BSC][e].address ) ===> dependantToken: "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82" scrap always don't have data

@tanhsnkt1997
Copy link
Author

image

@tanhsnkt1997
Copy link
Author

@Linch1 Help me, please :((

@developer9
Copy link

Hey @tanhsnkt1997 Can you filter with the field mainToken like below?

{mainToken:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"}

@Linch1
Copy link
Owner

Linch1 commented Sep 1, 2022

Ehi @tanhsnkt1997 :) so you want pancake to be one of the main tokens, like BUSD,USDT,... , or you are having issues when filtering the pairs that contains the pancake token 🤔 ?

@tanhsnkt1997
Copy link
Author

Thanks @Linch1 and @developer9 it has data, but when i see the CAKE data when in dependentToken is very little, while poocoin has a lot ?

@tanhsnkt1997
Copy link
Author

tanhsnkt1997 commented Sep 2, 2022

@Linch1 @developer9 when i add cake as maintoken like above data {mainToken:
0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82} is a lot but {dependantToken:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"} has very few.

@tanhsnkt1997
Copy link
Author

image

image

This is the result when filtering in the above 2 cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants