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

OP listing on Nanoly #1772

Open
sumpg41 opened this issue Aug 21, 2023 · 1 comment
Open

OP listing on Nanoly #1772

sumpg41 opened this issue Aug 21, 2023 · 1 comment
Labels
OETH OETH related things OUSD OUSD releated things P4 Something to consider, a feature request that we may not pursue

Comments

@sumpg41
Copy link

sumpg41 commented Aug 21, 2023

Nanoly (formally Coindix) is a great resource for finding the highest yield opportunity for individual tokens and protocols. Their team is willing to add Origin Protocol with native OUSD and OETH yields, if we can help build the adapter for them.

Sample response: https://gist.github.com/fabien7337/7fb858ae64e881c74ab8e5b3ef9b9399

const ethers = require('ethers')

class Protocol {
    static async sync() {
        // WEB3JS CONNECTION
        const provider = new ethers.providers.JsonRpcProvider('[WEB3JS_URL]')
        const abiRaw = fs.readFileSync('./abi.json')
        const abi = JSON.parse(abiRaw)

        const contract = new ethers.Contract('[CONTRACT_ADDRESS]', abi, account)

        // YOUR CONTRACT CALLS TO GET DATA

        return true
    }
}

module.exports = Protocol
@sumpg41 sumpg41 added P4 Something to consider, a feature request that we may not pursue OETH OETH related things OUSD OUSD releated things labels Aug 21, 2023
@sumpg41
Copy link
Author

sumpg41 commented Aug 22, 2023

I shared this PR with them: DefiLlama/yield-server#782

They said:

We need more information that Defillama:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OETH OETH related things OUSD OUSD releated things P4 Something to consider, a feature request that we may not pursue
Projects
None yet
Development

No branches or pull requests

1 participant