Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Nov 23, 2023
1 parent 58d1c00 commit a43d3dc
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 218 deletions.
39 changes: 38 additions & 1 deletion integrationtest/output/results.json
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
{"accounts":{"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd":[{"denom":"cusdc","amount":"999998975129996"},{"denom":"rowan","amount":"999999002243793715591658472"}]},"Pools":{"cusdc":{"external_asset":{"symbol":"cusdc"},"native_asset_balance":"997756206284408341528","external_asset_balance":"1024870004","pool_units":"1000000000000000000000","swap_price_native":"3.851417996402505993","swap_price_external":"0.259644629830901241","reward_period_native_distributed":"0","external_liabilities":"0","external_custody":"0","native_liabilities":"0","native_custody":"0","health":"0.995049498561352358","interest_rate":"0.400000000000000000","last_height_interest_rate_computed":5,"unsettled_external_liabilities":"0","unsettled_native_liabilities":"0","block_interest_native":"0","block_interest_external":"13699020"}},"LPs":{"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd":{"asset":{"symbol":"cusdc"},"liquidity_provider_units":"1000000000000000000000","liquidity_provider_address":"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd"}}}
{
"accounts": {
"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": [
{ "denom": "cusdc", "amount": "999998975129996" },
{ "denom": "rowan", "amount": "999999002243793715591658472" }
]
},
"Pools": {
"cusdc": {
"external_asset": { "symbol": "cusdc" },
"native_asset_balance": "997756206284408341528",
"external_asset_balance": "1024870004",
"pool_units": "1000000000000000000000",
"swap_price_native": "3.851417996402505993",
"swap_price_external": "0.259644629830901241",
"reward_period_native_distributed": "0",
"external_liabilities": "0",
"external_custody": "0",
"native_liabilities": "0",
"native_custody": "0",
"health": "0.995049498561352358",
"interest_rate": "0.400000000000000000",
"last_height_interest_rate_computed": 5,
"unsettled_external_liabilities": "0",
"unsettled_native_liabilities": "0",
"block_interest_native": "0",
"block_interest_external": "13699020"
}
},
"LPs": {
"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": {
"asset": { "symbol": "cusdc" },
"liquidity_provider_units": "1000000000000000000000",
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
"last_updated_block": 0
}
}
}
93 changes: 47 additions & 46 deletions integrationtest/output/tc1.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
{
"accounts": {
"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": [
{
"denom": "cusdc",
"amount": "999998994370679"
},
{
"denom": "rowan",
"amount": "999999000005078262924594065"
}
]
},
"Pools": {
"cusdc": {
"external_asset": {
"symbol": "cusdc"
},
"native_asset_balance": "999994921737075405935",
"external_asset_balance": "1005629321",
"pool_units": "1000000000000000000000",
"swap_price_native": "0.987727340533795089",
"swap_price_external": "1.012425149089800862",
"reward_period_native_distributed": "0",
"external_liabilities": "0",
"external_custody": "0",
"native_liabilities": "0",
"native_custody": "0",
"health": "0.990098960118728966",
"interest_rate": "0.500000000000000000",
"last_height_interest_rate_computed": 5,
"unsettled_external_liabilities": "0",
"unsettled_native_liabilities": "2023304519940209643",
"block_interest_native": "0",
"block_interest_external": "4390203"
}
},
"LPs": {
"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": {
"asset": {
"symbol": "cusdc"
},
"liquidity_provider_units": "1000000000000000000000",
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd"
}
}
}
"accounts": {
"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": [
{
"denom": "cusdc",
"amount": "999998994370679"
},
{
"denom": "rowan",
"amount": "999999000005078262924594065"
}
]
},
"Pools": {
"cusdc": {
"external_asset": {
"symbol": "cusdc"
},
"native_asset_balance": "999994921737075405935",
"external_asset_balance": "1005629321",
"pool_units": "1000000000000000000000",
"swap_price_native": "0.987727340533795089",
"swap_price_external": "1.012425149089800862",
"reward_period_native_distributed": "0",
"external_liabilities": "0",
"external_custody": "0",
"native_liabilities": "0",
"native_custody": "0",
"health": "0.990098960118728966",
"interest_rate": "0.500000000000000000",
"last_height_interest_rate_computed": 5,
"unsettled_external_liabilities": "0",
"unsettled_native_liabilities": "2023304519940209643",
"block_interest_native": "0",
"block_interest_external": "4390203"
}
},
"LPs": {
"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": {
"asset": {
"symbol": "cusdc"
},
"liquidity_provider_units": "1000000000000000000000",
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
"last_updated_block": 1
}
}
}
129 changes: 65 additions & 64 deletions integrationtest/output/tc2.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,66 @@
{
"accounts": {
"sif15ky9du8a2wlstz6fpx3p4mqpjyrm5cgqhns3lt": [
{
"denom": "atom",
"amount": "1000000000000000000"
},
{
"denom": "cusdc",
"amount": "1000000000000000000"
},
{
"denom": "rowan",
"amount": "999999500000000000000000000000"
}
],
"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": [
{
"denom": "atom",
"amount": "998999999500000000"
},
{
"denom": "cusdc",
"amount": "1000000000000000000"
},
{
"denom": "rowan",
"amount": "999000014013414589440803461377"
}
]
},
"Pools": {
"atom": {
"external_asset": {
"symbol": "atom"
},
"native_asset_balance": "1000487089285600288982742163",
"external_asset_balance": "999004488135149",
"pool_units": "1000000000000000000000000000",
"swap_price_native": "1.000007907317368468",
"swap_price_external": "0.999992092745156704",
"reward_period_native_distributed": "2000000000000000000000",
"external_liabilities": "500000000",
"external_custody": "996011864851",
"native_liabilities": "500000000000000000000000",
"native_custody": "897299810270213796460",
"health": "0.999499996303992980",
"interest_rate": "0.200000000000000000",
"last_height_interest_rate_computed": 2,
"unsettled_external_liabilities": "0",
"unsettled_native_liabilities": "0",
"block_interest_native": "89729273457704882289",
"block_interest_external": "0"
}
},
"LPs": {
"\u0001atom_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": {
"asset": {
"symbol": "atom"
},
"liquidity_provider_units": "1000000000000000000000000000",
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd"
}
}
}
"accounts": {
"sif15ky9du8a2wlstz6fpx3p4mqpjyrm5cgqhns3lt": [
{
"denom": "atom",
"amount": "1000000000000000000"
},
{
"denom": "cusdc",
"amount": "1000000000000000000"
},
{
"denom": "rowan",
"amount": "999999500000000000000000000000"
}
],
"sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": [
{
"denom": "atom",
"amount": "998999999500000000"
},
{
"denom": "cusdc",
"amount": "1000000000000000000"
},
{
"denom": "rowan",
"amount": "999000014013414589440803461377"
}
]
},
"Pools": {
"atom": {
"external_asset": {
"symbol": "atom"
},
"native_asset_balance": "1000487089285600288982742163",
"external_asset_balance": "999004488135149",
"pool_units": "1000000000000000000000000000",
"swap_price_native": "1.000007907317368468",
"swap_price_external": "0.999992092745156704",
"reward_period_native_distributed": "2000000000000000000000",
"external_liabilities": "500000000",
"external_custody": "996011864851",
"native_liabilities": "500000000000000000000000",
"native_custody": "897299810270213796460",
"health": "0.999499996303992980",
"interest_rate": "0.200000000000000000",
"last_height_interest_rate_computed": 2,
"unsettled_external_liabilities": "0",
"unsettled_native_liabilities": "0",
"block_interest_native": "89729273457704882289",
"block_interest_external": "0"
}
},
"LPs": {
"\u0001atom_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": {
"asset": {
"symbol": "atom"
},
"liquidity_provider_units": "1000000000000000000000000000",
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd",
"last_updated_block": 0
}
}
}
Loading

0 comments on commit a43d3dc

Please sign in to comment.