Skip to content

Core Smart Contracts of CoFiX v2.0: A Computable Financial Transaction Model. The Future of On-Chain Market Making is Here.

Notifications You must be signed in to change notification settings

Computable-Finance/CoFiX-V2.0

Repository files navigation

A computable financial transaction model

The Future of On-Chain Market Making is Here 🤑 📈📉💰

Whitepaper

https://cofix.io/doc/CoFiX_White_Paper.pdf

Documentation

https://docs.cofix.io/

https://github.com/Computable-Finance/Doc

Guide: How to Integrate with CoFiX

Smart Contract Diagrams

CoFiX Smart Contract

thanks 🦄 for great contract architecture

Usage

Run test

npm install

npm run test

Compile

Run truffle compile, get build results in build/contracts folder, including ABI json files.

or

Use npx oz compile to adopt @openzeppelin/cli toolchain.

Deploy

Deploy with truffle and you will get a contract deployement summary on contract addresses.

truffle migrate --network ropsten

You may need to activate() the price oracle through CoFiXController contract manually and set kTable with the help of scripts/setKTable.js.

Scripts

There are several scripts used to invoke with the protocol in scripts/ folder. Simplely run truffle exec scripts/SPECIFIC_SCRIPT.JS with flags to execute. Here are some examples.

Generate ABI

npm run genabi

Mainnet

Governance

CoFiX Governance (Multi-Sig) https://gnosis-safe.io/app/#/safes/0xF51d8FdF98286e1EA846c79f1526ECC95b93AbB8/balances

Check Record of Governance Authority Transfer to Multi-Sig Wallet and Details on CoFiX Multi-Sig Governance Contract here.

Governance ownership will be transferred to the CoFiX DAO in the next stage when the CoFi token is widely distributed.

🎉 Release 🎉

Contract Address
USDT 0xdAC17F958D2ee523a2206206994597C13D831ec7
HBTC 0x0316EB71485b0Ab14103307bf65a021042c6d380
NEST 0x04abEdA201850aC0124161F037Efd70c74ddC74C
WETH 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
NestPriceFacade 0xB5D2890c061c321A5B6A4a4254bb1522425BAF0A
NestVote 0xDa52f53a5bE4cb876DE79DcfF16F34B95e2D38e9
CoFiToken 0x1a23a6BfBAdB59fa563008c0fB7cf96dfCF34Ea1
CoFiXNode 0x558201DC4741efc11031Cdc3BC1bC728C23bF512
CoFiXV2Factory 0x39816B841436a57729723d9DA127805755d2CB51
CoFiXV2Router 0x72A63055b9AA997A4311D0D068170e38F5455b82
CoFiXV2Controller(Abandoned) 0xdE9972fe2567b7eEb3C015D7DCAefA8580877f7d
CoFiXV2Controller 0xf471bFd6c0A1Ab79cAD54B9608652B85638ceD97
CoFiXV2VaultForLP 0x618B7b93b07Bf78D04B2e8FB2B1C3B48049F8ED5
CoFiXV2VaultForTrader 0xb29A8d980E1408E487B9968f5E4f7fD7a9B0CaC5
CoFiXV2VaultForCNode 0x3881292cE52AeD0EdAFF1AC7A40DA12AB2453B84
ETH/USDT V2Pair 0x9DF98Ef91148fb0F2b9321D07f57C9bD0Ff8c381
ETH/HBTC V2Pair 0xe1162b20847117ACcB66C46C9bFabBa45c44bD4d
ETH/NEST V2Pair 0xB8F9218536870eeC443aEBF7C15dE59E535d0e0a
CoFiXV2StakingRewards ETH/USDT Pair 0x3C41B1bEAf0a3c0929233009bb49cF00Fd2E8D07
CoFiXV2StakingRewards ETH/HBTC Pair 0x50B48B17ee1E4d96113aaD5e3fa561495FAA23eB
CoFiXV2StakingRewards ETH/NEST Pair 0x74246388De82e5c40A01F640c7cab678ac1C5C13
V2CNodeStakingRewards CNode 0x810c0379d3215c4109F203E1C802A09008f7EbA2
CoFiXDAO(Abandoned) 0x278f5d08bEa1989BEfcC09A20ad60fB39702D556
CoFiXDAO(Abandoned) 0x2a9Dd2Cc6595b089a300c6D149032c52Da0cEDc1
CoFiXDAO 0x31127c12bc0C0d7D779dDfd57A87697b067FB100

About

Core Smart Contracts of CoFiX v2.0: A Computable Financial Transaction Model. The Future of On-Chain Market Making is Here.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published