-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add abci logic * feat: epoch hook for CLP reward distribution * feat: update clp cli for rewards params update * test: fix tests * test: fix tests * test: fix lint * test: fix tests * test: fix sifgen * test: fix integration tests * test: fix * feat: use calc pool units * feat: keep track of reward distribution * feat: reward happens evey hour * feat: add pool reward accounting * test: fix linter
- Loading branch information
Showing
77 changed files
with
6,377 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
{"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", | ||
"reward_amount_external": "0" | ||
} | ||
}, | ||
"LPs": { | ||
"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": { | ||
"asset": { "symbol": "cusdc" }, | ||
"liquidity_provider_units": "1000000000000000000000", | ||
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd", | ||
"last_updated_block": 0, | ||
"reward_amount": null | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
{ | ||
"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", | ||
"reward_amount_external": "0" | ||
} | ||
}, | ||
"LPs": { | ||
"\u0001cusdc_sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd": { | ||
"asset": { | ||
"symbol": "cusdc" | ||
}, | ||
"liquidity_provider_units": "1000000000000000000000", | ||
"liquidity_provider_address": "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd", | ||
"last_updated_block": 1, | ||
"reward_amount": null | ||
} | ||
} | ||
} |
Oops, something went wrong.