comdex-official / comdex Goto Github PK
View Code? Open in Web Editor NEWComdex: A DeFi infrastructure layer for the Cosmos ecosystem
Home Page: https://comdex.one/
License: Other
Comdex: A DeFi infrastructure layer for the Cosmos ecosystem
Home Page: https://comdex.one/
License: Other
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 )
This is not needed currently instead we need CodeCov workflow.
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,
},
x/liquidity/keeper/params.go:87:3:
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,
},
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,
},
comdex/x/oracle/keeper/query_server.go
Line 77 in b6f5c1d
tendemint/spm module is under active development so adding this as a dependency is not a good idea
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.
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,
},
},
},
This will be subdivided into multiple tasks
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
line no 43
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,
},
},
},
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,
},
Use all check points to verify the numbers and chekpoints existing in #239
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.