Beispiel #1
0
badger_registry = DotMap(token="0x3472a5a71965499acd81997a54bba8d852c6e53d",
                         symbol="BADGER")

digg_registry = DotMap(token="0x798D1bE841a82a273720CE31c822C61a67a601C3",
                       symbol="DIGG")

eth_registry = ChainRegistry(
    curve=curve_registry,
    uniswap=uniswap_registry,
    aragon=aragon_registry,
    sushiswap=sushi_registry,
    sushi=sushi_registry,
    gnosis_safe=gnosis_safe_registry,
    pickle=pickle_registry,
    harvest=harvest_registry,
    multicall=multicall,
    multisend=multisend,
    badger=badger_registry,
    yearn=yearn_registry,
    aave=aave_registry,
    chainlink=chainlink_registry,
    compound=compound_registry,
    defidollar=defidollar_registry,
    digg=digg_registry,
    convex=convex_registry,
)

eth_registry.tokens = DotMap(
    weth="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    wbtc="0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
    crv="0xD533a949740bb3306d119CC777fa900bA034cd52",
    tbtc=web3.toChecksumAddress("0x8daebade922df735c38c80c7ebd708af50815faa"),
        sushiWbtcWeth="",
    ),
    pids=DotMap(sushiBadgerWBtc=0, sushiEthWBtc=0),
)
token_registry = DotMap(
    bnb="0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    btcb="0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
    usdc="0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
    bBadger="0x1F7216fdB338247512Ec99715587bb97BBf96eae",
    bDigg="0x5986D5c77c65e5801a5cAa4fAE80089f870A71dA",
)

bsc_registry = ChainRegistry(
    sushiswap=sushi_registry,
    sushi=sushi_registry,
    multicall=multicall_registry,
    pancake=pancake_registry,
    tokens=token_registry,
)

bsc_registry.whales = DotMap(
    bnbBtcb=DotMap(
        whale=bsc_registry.pancake.masterChef,
        token=bsc_registry.pancake.chefPairs.bnbBtcb,
        action=WhaleRegistryAction.DISTRIBUTE_FROM_CONTRACT,
    ),
    bDiggBtcb=DotMap(
        whale=bsc_registry.pancake.masterChef,
        token=bsc_registry.pancake.chefPairs.bDiggBtcb,
        action=WhaleRegistryAction.DISTRIBUTE_FROM_CONTRACT,
    ),
Beispiel #3
0
        DotMap(
            id=2,
            sett="0xb9D076fDe463dbc9f915E5392F807315Bf940334",
        ),
    ],
)

eth_registry = ChainRegistry(
    curve=curve_registry,
    uniswap=uniswap_registry,
    aragon=aragon_registry,
    sushiswap=sushi_registry,
    sushi=sushi_registry,
    gnosis_safe=gnosis_safe_registry,
    pickle=pickle_registry,
    harvest=harvest_registry,
    multicall=multicall,
    multisend=multisend,
    badger=badger_registry,
    yearn=yearn_registry,
    aave=aave_registry,
    compound=compound_registry,
    defidollar=defidollar_registry,
)

eth_registry.tokens = DotMap(
    weth="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    wbtc="0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
    crv="0xD533a949740bb3306d119CC777fa900bA034cd52",
    tbtc=web3.toChecksumAddress("0x8daebade922df735c38c80c7ebd708af50815faa"),
    usdt=web3.toChecksumAddress("0xdac17f958d2ee523a2206206994597c13d831ec7"),
Beispiel #4
0
        sushiBadgerWBtc="",
        sushiWbtcWeth="",
    ),
    pids=DotMap(sushiBadgerWBtc=0, sushiEthWBtc=0),
)
token_registry = DotMap(
    bnb="0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
    btcb="0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",
    usdc="0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
    bBadger="0x1F7216fdB338247512Ec99715587bb97BBf96eae",
    bDigg="0x5986D5c77c65e5801a5cAa4fAE80089f870A71dA",
)

bsc_registry = ChainRegistry(sushiswap=sushi_registry,
                             sushi=sushi_registry,
                             multicall=multicall_registry,
                             pancake=pancake_registry,
                             tokens=token_registry)

bsc_registry.whales = DotMap(
    bnbBtcb=DotMap(
        whale=bsc_registry.pancake.masterChef,
        token=bsc_registry.pancake.chefPairs.bnbBtcb,
        action=WhaleRegistryAction.DISTRIBUTE_FROM_CONTRACT,
    ),
    bDiggBtcb=DotMap(
        whale=bsc_registry.pancake.masterChef,
        token=bsc_registry.pancake.chefPairs.bDiggBtcb,
        action=WhaleRegistryAction.DISTRIBUTE_FROM_CONTRACT,
    ),
    bBadgerBtcb=DotMap(