Skip to content

Request cooldown by tokens #2

@0xChin

Description

@0xChin

Currently, the request cooldown is the same for every token, it would be great if we can make the cooldown be set by token (e.g: having to wait 24hs between requests of ETH in Goerli but have to wait 4hs between requests of MATIC in Mumbai). It should look like this:

"GOERLI": {
            "chainId": 5,
            "tokens": {
                "ETH": {
                    "amount": 0.1,
                    "isNativeToken": true
                },
                "LINK": {
                    "amount": 1,
                    "address": "0x326C977E6efc84E512bB9C30f76E30c160eD06FB"
                }
            },
            "blockExplorer": "https://goerli.etherscan.io/tx/",
            "nodeUri": "<node-uri>",
            "cooldown": 24
        },
        "MUMBAI": {
            "chainId": 80001,
            "tokens": {
                "MATIC": {
                    "amount": 0.1,
                    "isNativeToken": true
                },
                "LINK": {
                    "amount": 1,
                    "address": "0x326C977E6efc84E512bB9C30f76E30c160eD06FB"
                }
            },
            "blockExplorer": "https://mumbai.polygonscan.com/tx/",
            "nodeUri": "<node-uri>",
            "cooldown": 4
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions