Code Monkey home page Code Monkey logo

comdex's Introduction

Comdex : Democratizing Finance

An ecosystem of solutions built with an aim of bridging DeFi & CeFi

A DeFi infrastructure layer for the Cosmos ecosystem A layer-1 infrastructure for seamless deployment of DeFi applications in the Cosmos ecosystem, powering DeFi in the multi-chain future.

Plug & play customizable Comdex modules to deliver bleeding edge dApps

Docs

Checkout the documents here docs.comdex.one.

Harbor protocol : docs.harborprotocol.one.

Commodo : docs.commodo.one.

cSwap : docs.cswap.one.

If you have technical questions or concerns, ask a developer or community member in the Comdex discord.

Installation

Requires Go 1.20+

Linux

mkdir -p ${GOPATH}/src/github.com/comdex-official/ && \
cd ${GOPATH}/src/github.com/comdex-official/ && \
git clone https://github.com/comdex-official/comdex.git && \
cd ${GOPATH}/src/github.com/comdex-official/comdex/ && \
make install

Main Net

For further information on joining the mainnet, head over to the Comdex Networks MainNet.

Main Net Explorers

The explorer for this chain is hosted

Testnet

To verify latest testnet and main net version check Version

For further information on joining the testnet, head over to the Comdex Networks TestNet.

The explorer for this chain is hosted TestNet Explorer

want to contribute to comdex, please go through the contribution guides

License

Copyright © Comdex Technologies Pte Ltd. All rights reserved.

Licensed under the comdex license.

Project Status: Active -- The project has reached a stable, usable state and is being actively developed. version Go Report Card API Reference GitHub Lines Of Code Twitter Follow Discord Chat

comdex's People

Contributors

bpiv400 avatar bsrinivas8687 avatar cgsingh33 avatar chillyvee avatar comdexadmin avatar cryptovrse avatar dependabot[bot] avatar dheerajkd30 avatar dhogaivannan avatar faddat avatar gjermundgaraba avatar karthik340 avatar omahs avatar prashantkrv avatar prashantkrv2020 avatar pratikasr avatar rajrohit10 avatar subham2804 avatar vishnukumavat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

comdex's Issues

Creating Vault from CLI & validating data from front end

  1. Use the same user seeds to log in to the front end.
  2. Verify if it goes to the edit page in the front end or not
  3. Verify the total collateral locked in the dashboard
  4. Verify the ExtendedPairVault data in Vault Mapping
  5. Verify the collector, collections
  6. Verify the interest function (do the manual calculation as well to check)
  7. Check all related queries data
  8. Check all numbers of user balance n match it with existing vault data (numbers should add up)
  9. Check stability and draw down fees deductions

same asset can be added as genesis token in multiple apps

function : assetKeeper.AddAppRecords(*ctx, tc.msg)
error : same asset shouldnt be added as genesis token in multiple apps
data :

assetTypes.AppData{
Name: "cswap",
ShortName: "cswap",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
3,
&genesisSupply,
true,
userAddress1,
},
{
2,
&genesisSupply,
true,
userAddress1,
},
},
},

assetTypes.AppData{
Name: "commodo",
ShortName: "commodo",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
3,
&genesisSupply,
true,
userAddress1,
},
},
},

Duplicate Asset name allowed

Duplicate asset name shouldnt be allowed
function : assetKeeper.AddAssetRecords(*ctx, tc.msg)
data :
{"Add Asset cmdx ucmdx",
assetTypes.Asset{Name: "CMDX",
Denom: "ucmdx",
Decimals: 1000000,
IsOnChain: true},
false,
},
{"Add Asset: Duplicate Asset Name 2 cmdx uosmo",
assetTypes.Asset{Name: "CMDX",
Denom: "uosmo",
Decimals: 1000000,
IsOnChain: true},
true,
},

Asset query and KV store updation testing

Test it and post a list of all tx and query commands with their description. separately
Also, list all the gov commands of the module here. If they exist in the base proposal.

Asset doesn't exist but app gets added still

error : Asset ID 4 doesnt exist but able to add it in mint genesis token
function :
assetKeeper.AddAppRecords(*ctx, tc.msg)

data :

{
"Add App commodo commodo",
assetTypes.AppData{
Name: "sake",
ShortName: "sake",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
4,
&genesisSupply,
true,
userAddress1,
},
},
},
3,
false,
},

Locker testing

Locker deposit testing
Locker rewards accumulation testing
Locker Mapping Lookup table data testing
Withdrawing rewards from the locker
Matching numbers
Reviewing changes in collector values as a reward is distributed. (change will occur per block)
Match all the numbers (when testing locker n collector data, dont create new vaults after checking , else numbers will not match , do the lcoker testing after creating 2-3 vaults to get idea of the numbers )

Able to create extended pair vault with duplicate pair ID

function :
WasmAddExtendedPairsVaultRecords

data :

{"Add Extended Pair Vault : cmdx cmst",

		bindings.MsgAddExtendedPairsVault{
			AppID:               1,
			PairID:              1,
			StabilityFee:        sdk.MustNewDecFromStr("0.01"),
			ClosingFee:          sdk.MustNewDecFromStr("0"),
			LiquidationPenalty:  sdk.MustNewDecFromStr("0.12"),
			DrawDownFee:         sdk.MustNewDecFromStr("0.01"),
			IsVaultActive:       true,
			DebtCeiling:         1000000000000,
			DebtFloor:           1000000,
			IsStableMintVault:   false,
			MinCr:               sdk.MustNewDecFromStr("1.5"),
			PairName:            "CMDX-A",
			AssetOutOraclePrice: true,
			AssetOutPrice:       1000000,
			MinUsdValueLeft:     1000000,
		},
		"ucmdx",
		"ucmst",
		false,
		1,
	},
	{"Add  Extended Pair Vault : Duplicate PairID cmdx cmst",

		bindings.MsgAddExtendedPairsVault{
			AppID:               1,
			PairID:              1,
			StabilityFee:        sdk.MustNewDecFromStr("0.01"),
			ClosingFee:          sdk.MustNewDecFromStr("0"),
			LiquidationPenalty:  sdk.MustNewDecFromStr("0.12"),
			DrawDownFee:         sdk.MustNewDecFromStr("0.01"),
			IsVaultActive:       true,
			DebtCeiling:         1000000000000,
			DebtFloor:           1000000,
			IsStableMintVault:   false,
			MinCr:               sdk.MustNewDecFromStr("1.5"),
			PairName:            "CMDX-A",
			AssetOutOraclePrice: true,
			AssetOutPrice:       1000000,
			MinUsdValueLeft:     1000000,
		},

2 governance tokens for single app

function : assetKeeper.AddAppRecords(*ctx, tc.msg)
data :
assetTypes.AppData{
Name: "cswap",
ShortName: "cswap",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
3,
&genesisSupply,
true,
userAddress1,
},
{
2,
&genesisSupply,
true,
userAddress1,
},
},
},

Add Slack app in repo

Hello.

We would like to get notifications of upcoming releases.

It would be a massive help if we could do it through Github's Slack integration.

Could you kindly install it?

Thank you

Duplicate app name allowed

function : assetKeeper.AddAppRecords(*ctx, tc.msg)

data :
{
"Add App cswap cswap",
assetTypes.AppData{
Name: "cswap",
ShortName: "cswap",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
3,
&genesisSupply,
true,
userAddress1,
},
{
2,
&genesisSupply,
true,
userAddress1,
},
},
},
1,
false,
},
{
"Add Duplicate App name cswap werd",
assetTypes.AppData{
Name: "cswap",
ShortName: "werd",
MinGovDeposit: sdk.NewIntFromUint64(10000000),
GovTimeInSeconds: 900,
GenesisToken: []assetTypes.MintGenesisToken{
{
3,
&genesisSupply,
true,
userAddress1,
},
},
},
2,
true,
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.