OriginProtocol / OriginProtocol/origin-dollar
OP listing on Nanoly
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Nanoly sample response and the Protocol.sync entry point, then inspect the referenced abi.json and contract-call sections. Done means an adapter that supplies Nanoly with native OUSD and OETH yield data in the expected format; the issue does not name repository files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, solidity
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100