Federico Kunze
bfb9f7e20a
cleanup begin/end block ( #553 )
...
* cleanup begin/end block
* update cdp BeginBlocker
* update dist mint
* fix tests
* typo
* add comment on CloseExpiredAuctions
* fix tests
2020-06-17 05:09:44 -04:00
Nick DeLuca
f0e73e4aa8
Refactor CreateAuctionsFromDeposit ( #589 )
...
* refactor CreateAuctionsFromDeposit to complete exhibits 7 & 8 by
removing auction slices and simplify usage of largest remainder method
2020-06-16 11:02:47 -04:00
Kevin Davis
db2b237e1d
[R4R] Restore supply endpoints ( #586 )
...
* feat: restore supply endpoints
* use complete circulating supply schedule
* standardize query path
2020-06-15 12:01:58 -04:00
Denali Marsh
3784b4971b
update bep3 docs for mainnet ( #587 )
...
* update bep3 docs for mainnet
* update make link-check
2020-06-15 04:37:28 -04:00
Kevin Davis
2eb6036f42
[R4R] Add client for kavadist module ( #584 )
...
* feat: add params query for kavadist
2020-06-12 15:45:07 -04:00
Nick DeLuca
3e63356c58
Cache redundant calculation in cdp RepayPrinciple ( #569 )
...
* fix exhibit 29 and remove redundant calcuation
* use better naming (totalPrincipal instead of totalDebt) and add comment
for future maintainers
2020-06-11 16:14:47 -04:00
Nick DeLuca
890411b685
fix exhibit 48 - error message should match if statement ( #580 )
2020-06-11 14:33:36 -05:00
Nick DeLuca
25abdd10b5
Remove some redunancy in RepayPrinciple ( #577 )
...
* fix exhibit 30 - remove redunant conversions in adding principle to fee
amount, and store debt denom in local var to avoid calling getter
several times
* add deleted comment back
2020-06-11 14:32:39 -05:00
Nick DeLuca
5ba2706d56
Optimize calculation in savings distribution ( #573 )
...
* fix exhibit 33 by storing remaining surplus
* simplify with sdk.MinInt - if statement logic & assignment is just
taking the minimum
2020-06-11 14:25:32 -05:00
Nick DeLuca
7ae76b8440
Auctions Clean Up - Fixes redenancy and legibility ( #576 )
...
* resolve exhibit 41 - move redundant assignment into if block and only
assign if value is false. No need to assign true to already true value.
* fix exhibit 43 - use existing auctionID variable instead of GetID
* use improved name for auction type in case statemnt
* rename a to auction in PlaceBidSurplus for legibility (part of exhibit 44)
* rename a to auctions in PlaceForwardBidCollateral (part of exhibit 44)
* rename a to auction in PlaceReverseBigCollateral for legibility (part of exhibit 44)
* rename a to auction in PlaceBidDebt for legibility (part of exhibit 44)
* renmae rest of a to auction variables for legibility and resolve exhibit
44
* one missed rename and a typo fix
2020-06-11 14:23:58 -05:00
Nick DeLuca
2a446fe530
fix misleading logging ( #572 )
2020-06-10 12:10:55 -04:00
Nick DeLuca
3f043b90ac
Update GetTotalSurplus and GetTotalDebt to be consistent ( #567 )
...
* update GetTotalSurplus and GetTotalDebt code blocks to be consistent and
resolve feedback in exhibit 13
* spelling fix
* remove uneeded temp variables
* address PR feedback - use suite.Require() instead of default assertions
2020-06-10 10:18:13 -04:00
Nick DeLuca
44467569af
Fix Ineffectual if statements ( #568 )
...
* fix exhibits 19,20,28,32 ineffectual if statements
* Apply suggestions from code review
* Apply suggestions from code review
* Update x/cdp/keeper/cdp.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-09 07:07:58 -04:00
Denali Marsh
978efbcc49
Fix bep3 sims determinism ( #555 )
...
* fix bep3 sims
* remove newline
2020-06-05 14:24:08 -04:00
Federico Kunze
b2a4369d4e
ValidatorVestingAccount validation ( #552 )
2020-06-05 08:59:16 -04:00
Kevin Davis
5723001390
fix: populate collateral denoms once ( #551 )
2020-06-05 08:41:13 -04:00
Denali Marsh
a44068d08d
use collateral params from cdp state ( #550 )
2020-06-04 19:14:40 -07:00
Denali Marsh
ba3b353ee9
[R4R] add bep3 module param to committee ( #547 )
...
* update committee test
* update committee params
* update default deputy address to expected mainnet address
* spelling in comment
* fix bep3 sim values to 1
* bep3 sims:generate 32 length random number
2020-06-04 18:27:54 -07:00
Denali Marsh
09a75bd7c6
[R4R] optional bep3 config params ( #546 )
...
* add minAmount, maxAmount
* update kava-3 params for compile
* fix migration script
* update to mainnet params
* remove height span validation for incoming swaps
* update to sdk.Int, set lock to 220
* update lock range to [220, 270]
* update bep3 module docs
* update MsgClaim's ValidateBasic
* update test comments
2020-06-04 16:03:14 -07:00
Kevin Davis
c049aad495
Minor audit fixes ( #540 )
...
* use mod and quo to calculate how many auctions to start
* check both return values in getDenomPrefix
* split auctions using weighted buckets
2020-06-04 08:58:39 -04:00
Kevin Davis
aebb3093ff
fix: use sdk.Int when loading augmented cdp ( #539 )
2020-06-03 18:36:58 -04:00
Ruaridh
4a8b5696cb
v0.8 Migration Scripts ( #518 )
...
* initial sketch
* add module migrations
* add migrations for all accout types
* test account migration
* add tendermint migration and migrate cmd
* remove need for errors pkg dependency
* add bech32 decoding fork
* add suggested params and cmd to write them
* add basic upgrade instructions
* fix tests
* address some migration todos
* tidy contrib folder
* finalize params values
* align cdp init genesis with other modules
* add tendermint and distribution test
add custom distribution migration to patch bug
* add staking migration test
* add slashing, evidence tests, refactor auth tests
* add full migration test
* remove go-amino dependency from go.mod
also tidy up unused indirect dependencies
* address remaining TODOs
* remove commented out code from legacy types
* add spot/liquidation markets ids to kava-3 params
* Apply suggestions from code review
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* address code review suggestions
* add validate genesis to migrate test
* refactor add params func
* remove commented out code from old types
* fix add params
* add deputy address
* add tests using exported kava-2 state
* incorporate new cdp params from master
* update params from review
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
* add deputy account
* add committee permissions for new params
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-06-03 15:35:00 -04:00
Denali Marsh
2d7f5c4080
[R4R] Better docs ( #541 )
...
* update sidebar order
* update event backticks
* fix broken links
* fix spelling
2020-06-03 14:54:31 -04:00
Denali Marsh
706207c60f
add backticks to params in spec ( #538 )
2020-06-02 10:49:29 -04:00
Kevin Davis
5336ccc0c0
Add surplus and debt auction lot params ( #531 )
...
* wip: add lot size param for surplus and debt auctions
* update tests with new params
* update spec
* address review comments
2020-05-31 09:59:40 -04:00
Denali Marsh
2ea06e4c80
[R4R] Basic docs tidying ( #534 )
...
* fix bep3 spec title, cdp collateral params
* display mod readme first
* fix link test
* update license year
2020-05-29 15:53:57 -07:00
Alexander Bezobchuk
90681abcc9
Merge PR #532 : Fix expiry parsing
2020-05-29 16:07:34 -04:00
Kevin Davis
eb3cb55fd0
Add incentive queries ( #528 )
...
* add incentive queries
* fix: add query route for claim periods
* address review comments
2020-05-28 10:57:22 -04:00
Federico Kunze
d130734c2e
x/incentive: genesis validation ( #519 )
...
* x/incentive: genesis validation
* validation funcs for arrays
* tests
* genesis tests
* rewards tests
* address @alexanderbez comments
* fix genesis incentive simulation
2020-05-28 10:26:08 -04:00
Denali Marsh
b2edeb8549
[R4R] Add flags to auction queries ( #522 )
...
* cli auction query flags
* update bep3 filter method name
* rest auction query flags
* add constants for auction type, phase
* fix test
* revisions
2020-05-24 19:27:11 -07:00
Alexander Bezobchuk
e7ceada952
REST Client Cleanup & Validation ( #523 )
...
* cleanup & from validation
* Add ValidateBasic calls
* Update x/incentive tx requests
* Address comments
2020-05-24 14:29:48 -04:00
Kevin Davis
aa54473309
fix struct tag ( #525 )
2020-05-24 09:46:22 -04:00
Kevin Davis
ade6edb918
[R4R] Add liquidation pricefeed ( #524 )
...
* add parameter for liquidation pricefeed
2020-05-24 09:42:46 -04:00
Federico Kunze
e3ce6a7c9f
x/auction: types validation ( #500 )
...
x/auction: types validation
2020-05-21 10:25:47 -04:00
Denali Marsh
67b89c2b9c
[R4R] Blacklist module accounts ( #517 )
...
* implement module account blacklist
* update cdp getModuleAccountCoins method
2020-05-21 00:50:12 -04:00
Kevin Davis
c556bd8c6c
fix: remove vesting client ( #516 )
2020-05-21 00:49:42 -04:00
Federico Kunze
ad7c08cfc3
x/pricefeed: GenesisState validation ( #514 )
...
* x/pricefeed: GenesisState validation
2020-05-21 00:49:27 -04:00
Denali Marsh
00508b61fe
Change !GTE to LT ( #512 )
2020-05-15 15:43:52 -07:00
Ruaridh
c28bc03248
Committtee audit revisions ( #510 )
...
* comments from review
Co-authored-by: Sunny Aggarwal <sunnya97@protonmail.ch>
Co-authored-by: jmahess <maheswaran@google.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
* add vote methods
* add draft new param change permission
* add and update tests
* rename ParamChangePermission
* account for perms becoming invalid at a later time
* add debtParam to permission
* add bep3 AssetParam to permissions
* add pricefeed Markets to permission
* add upgrade permission
* move proposal passing to the begin blocker
* fix iteration bug
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* address todos and audit comments
* add proposal examples
* refactor handler to be easier to read
* address review comments
* update comments
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: Sunny Aggarwal <sunnya97@protonmail.ch>
Co-authored-by: jmahess <maheswaran@google.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-15 15:25:49 -04:00
Federico Kunze
5069aebda7
minor fix
2020-05-15 12:49:54 -04:00
Federico Kunze
6a07def455
remove test case
2020-05-15 12:43:52 -04:00
Denali Marsh
dd1d248be2
[R4R] Add BnbDeputyFixedFee param to BEP3 module ( #511 )
...
* generate length 32 random bytes
* fix test
* implement BnbDeputyFixedFee param
* clean up for PR
* update deputy address
* remove impossible check
* move comment
2020-05-13 16:39:29 -07:00
Denali Marsh
fa8ae9647a
[R4R] Update secure RNG to generate bytes directly ( #509 )
...
* generate length 32 random bytes
* fix test
2020-05-13 16:38:34 -07:00
Federico Kunze
9932169a67
sim fixes
2020-05-13 12:05:55 -04:00
Kevin Davis
1099dfbd7d
CDP revisions ( #508 )
...
* address review comments
* add kavadist to modaccount check
* cdp and deposit validation in genesis
* cleanup genesis validation
* add validation test for types
* don't error on augmented cdp loading
* simplify collateral auction logic
2020-05-13 10:19:19 -04:00
Federico Kunze
907e93b7a8
fix conflicts
2020-05-13 09:38:38 -04:00
Federico Kunze
6dedc1520a
x/auction: audit revisions ( #497 )
...
Auction audit revisions
2020-05-13 09:31:36 -04:00
Federico Kunze
1a46b3fa2b
fix tests
2020-05-13 09:24:17 -04:00
Federico Kunze
3ee16963aa
Merge branch 'master' of github.com:Kava-Labs/kava into fedekunze/auction-validation
2020-05-13 09:14:47 -04:00
Federico Kunze
12fe0c60a3
x/bep3: fix swap validation ( #507 )
2020-05-13 08:41:54 -04:00
Kevin Davis
7f236d322d
[R4R] Update Swagger for testnet-6000 ( #496 )
...
* wip: update swagger for testnet-6000
* add remaining modules to swagger
* add committee api
2020-05-13 08:41:31 -04:00
Federico Kunze
2327b01ed4
message test
2020-05-12 16:37:08 -04:00
Federico Kunze
71742d2eef
auction tests
2020-05-12 16:32:18 -04:00
Denali Marsh
6c68e41758
[R4R] bep3 module audit revisions ( #505 )
...
* most audit revisions
* remove expected income
* update begin block spec
* filter queryAtomicSwaps, add queryAssetSupplies
* update old address
* update test
* Remove legacy method
* remove legacy comment
* address PR comments
* IsValid for SwapDirection, SwapStatus
* fix rng logging
* query asset supplies
* return [64]byte from rng
* remove cross chain field from MsgCreateAtomicSwap
* move swap filtering to querier
* rename Limit field to SupplyLimit
2020-05-12 13:15:38 -07:00
rhuairahrighairigh
f0c750cb4a
remove cdp review comment
2020-05-12 01:10:57 +01:00
rhuairahrighairigh
a5d70d1424
Merge branch 'master' into ro-auction-audit-revisions
2020-05-12 01:09:32 +01:00
rhuairahrighairigh
bc1a6a68e0
bugfix
2020-05-12 01:06:32 +01:00
rhuairahrighairigh
6b478a0f95
minor refactor
2020-05-12 00:57:48 +01:00
Federico Kunze
e3aad2306b
other validations
2020-05-11 19:10:14 -04:00
Federico Kunze
32213ed56c
x/auction: types validation
2020-05-11 18:56:28 -04:00
Kevin Davis
89b63a3cba
fix: simplify collateral auction logic
2020-05-11 18:35:16 -04:00
Ruaridh
d489bacfac
tidy payout function
...
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-11 21:07:39 +01:00
rhuairahrighairigh
7c477eb75d
add cdp math fix and debugging
2020-05-11 20:48:42 +01:00
rhuairahrighairigh
5987d966ef
increase auction maths safety
2020-05-11 20:45:00 +01:00
Federico Kunze
04cb414593
x/bep3: genesis validation ( #488 )
...
* validate asset supply
* validate swap
* genesis tests
* swap and supply unit tests
* use Require() for suite
* fix tests
* Apply suggestions from code review
Co-authored-by: Denali Marsh <denali@kava.io>
2020-05-11 12:55:09 -04:00
rhuairahrighairigh
8899a7ff04
replace some errors with panics
2020-05-11 14:55:32 +01:00
rhuairahrighairigh
976f8f632d
remove todo - leave to caller to deal with panic
2020-05-08 16:10:59 +01:00
rhuairahrighairigh
4039086e8d
tidy up events
2020-05-08 16:07:11 +01:00
Kevin Davis
7129e7c95b
use correct terminolgy in incentive spec
2020-05-07 19:41:14 -04:00
Kevin Davis
18b6a8ce25
remove extra newline
2020-05-07 17:52:21 -04:00
Kevin Davis
e60bf54b32
clean up validator vesting spec
2020-05-07 17:52:07 -04:00
Kevin Davis
db7aaef98d
cleanup cdp events
2020-05-07 17:35:42 -04:00
Kevin Davis
fd8d48e208
add committee spec
2020-05-07 16:58:46 -04:00
Kevin Davis
deef10a872
add voter address to vote event
2020-05-07 16:58:39 -04:00
Kevin Davis
c1e9a87fb3
add incentive spec
2020-05-07 13:46:48 -04:00
Kevin Davis
a295b793a9
fix: emit relevent events for incentive
2020-05-07 13:46:40 -04:00
Kevin Davis
0c49f1b089
add kavadist spec
2020-05-07 13:45:32 -04:00
Kevin Davis
dc5614b241
fix: emit inflation as coin
2020-05-07 13:45:16 -04:00
Kevin Davis
70b0f02e6d
fix: use correct abci method in pricefeed spec
2020-05-07 13:44:43 -04:00
Kevin Davis
178f74c1d8
fix: delete claim after user claims it
2020-05-07 13:43:36 -04:00
Kevin Davis
c6d287a5b3
feat: add pricefeed spec
2020-05-07 11:11:10 -04:00
Denali Marsh
8ef03e4181
[HOTFIX] Fix outgoing swaps in BEP3 sims ( #490 )
...
* check available asset supply on outgoing swaps
* switch maximum, current
2020-05-06 17:29:59 -07:00
Denali Marsh
611eff93cf
[R4R] Update bep3 module account permissions ( #483 )
...
* incoming swaps trigger acc registration
* move supply increment after recipient acc validation
* use expected keepers pattern
* remove expected keepers from alias
* update bep3 macc permissions
* clean supply keeper interface
* add module account check to genesis
* remove duplicated accountkeeper
2020-05-06 13:23:13 -07:00
Denali Marsh
7a904ddd6c
[R4R] Add outgoing swaps to bep3 sims ( #484 )
...
* incoming swaps trigger acc registration
* move supply increment after recipient acc validation
* use expected keepers pattern
* remove expected keepers from alias
* add outgoing swaps to sims
2020-05-06 12:30:27 -07:00
Denali Marsh
d56ad961c0
[R4R] Enable bep3 claim txs from new addresses ( #482 )
...
* incoming swaps trigger acc registration
* move supply increment after recipient acc validation
* use expected keepers pattern
* remove expected keepers from alias
* update comment
2020-05-06 10:56:43 -07:00
Ruaridh
23a5c7b969
Add committee simulations ( #431 )
...
* first pass at genesis and msgs
* add proposal generation
* add permission generation
* add decoder
* add invariants
* add committee change proposal generator
* improve committee change proposal generation
* fix error formatting
* update sims to v0.38
* Update x/committee/keeper/invariants.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* Update x/committee/keeper/invariants.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* tidy up comments
* tidy up random helpers
* add committee to ImportExport test
* add member check to vote invariant
* fix comment wording
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-05-04 17:17:20 -04:00
Jack Zampolin
f86d0f3c3b
Add changes from code review
2020-05-04 10:52:36 -07:00
Kevin Davis
471565e360
fix: add new event manager to ctx in handlers ( #485 )
2020-05-02 18:52:49 -04:00
Kevin Davis
8f3858509a
fix: various errors from linter ( #481 )
2020-05-01 14:13:29 -04:00
Federico Kunze
511e1e07ac
fix conflicts from development
2020-04-30 17:12:22 -04:00
Kevin Davis
22bba81944
Check spendable balance in cdp sims ( #480 )
...
* fix: check spendable balance
* don't log noisy result.Log
* remove dead comment
2020-04-30 17:02:42 -04:00
Federico Kunze
d8bbde78cc
build
2020-04-30 12:15:40 -04:00
Federico Kunze
1a04ffe396
fix some lint bugs
2020-04-30 11:33:10 -04:00
Federico Kunze
9743f356be
Merge branch 'master' of github.com:Kava-Labs/kava into linters
2020-04-30 10:31:20 -04:00
Kevin Davis
22315cc3ca
add committee to sims ( #479 )
...
* fix: update test for cdp breaking changes
* fix: add committee to sims
2020-04-30 10:27:37 -04:00
Federico Kunze
fe72a24aa0
update format
2020-04-30 10:23:41 -04:00
Federico Kunze
8853e8d3d1
linters and format
2020-04-30 10:13:31 -04:00
Federico Kunze
e9c16fa752
x/committee: committee gov module
...
Committee Gov Module
2020-04-30 09:16:33 -04:00
Kevin Davis
3cc2cc99b8
fix: enforce sorting of cdp ids when storing ( #475 )
2020-04-29 18:02:31 -04:00
Kevin Davis
c175e9e856
Add kava modules to TestAppImportExport ( #472 )
...
* add kava modules to TestAppImportExport
2020-04-29 10:10:41 -04:00
rhuairahrighairigh
e1cb079589
remove alias comment from godoc
2020-04-28 16:36:06 +01:00
rhuairahrighairigh
ffbeced199
apply various pr suggestions
2020-04-28 01:51:53 +01:00
rhuairahrighairigh
d1c0dd18b1
only import types pkgs within types
2020-04-28 01:28:00 +01:00
rhuairahrighairigh
307ecd54e2
remove unecessary codec tests
2020-04-28 01:26:48 +01:00
rhuairahrighairigh
447e7579a8
tidy up codec type registrations
2020-04-28 01:26:00 +01:00
rhuairahrighairigh
073cd7ebda
update module to v0.38
2020-04-27 19:19:05 +01:00
rhuairahrighairigh
6c3d525f0f
Merge branch 'master' into ro-emergency-gov-module
2020-04-27 15:55:20 +01:00
Kevin Davis
ae4aee46ff
Use sdk.Coin in cdp module ( #466 )
...
* Use sdk.Coin in cdp module
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <john@noreply>
2020-04-27 10:40:34 -04:00
rhuairahrighairigh
631b87eaf0
apply various PR comments
2020-04-27 15:37:25 +01:00
rhuairahrighairigh
c17de631d2
add nicer keeper get methods
2020-04-27 15:04:47 +01:00
rhuairahrighairigh
20c02a6a54
add permissions tests
2020-04-27 13:57:47 +01:00
rhuairahrighairigh
576dcc7dfd
rename files
2020-04-27 13:56:59 +01:00
rhuairahrighairigh
c231912642
add handler tests
2020-04-26 15:28:57 +01:00
rhuairahrighairigh
196ecf7f30
improve proposal tests
2020-04-25 17:39:59 +01:00
rhuairahrighairigh
ebb6366837
address various pr comments
2020-04-25 00:22:56 +01:00
rhuairahrighairigh
ccad1f82e2
switch to non length prefixed marshalling
2020-04-25 00:05:54 +01:00
rhuairahrighairigh
114097edb3
add cli help text test
2020-04-24 23:36:08 +01:00
rhuairahrighairigh
733711c88c
add query committee cmd
2020-04-24 23:16:04 +01:00
rhuairahrighairigh
5c280696fb
refactor begin blocker
2020-04-24 23:15:51 +01:00
Denali Marsh
b969a0ea33
Incentive module simulations ( #439 )
...
* Incentive module simulations (#439 )
Co-authored-by: John Maheswaran <jmaheswaran@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: John Maheswaran <john@kava.io>
2020-04-24 17:55:18 -04:00
Ruaridh
73dc488239
Apply suggestions from code review
...
Co-Authored-By: Denali Marsh <denali@kava.io>
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
2020-04-24 19:15:57 +01:00
Kevin Davis
e9a73b80ce
Incentives tests ( #429 )
...
* USDX Incentives tests (#429 )
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <jmaheswaran@users.noreply.github.com>
Co-authored-by: John Maheswaran <john@kava.io>
2020-04-24 11:44:44 -04:00
Kevin Davis
1ef9bd331b
USDX incentives implementation ( #399 )
...
* USDX incentives implementation (#399 )
* feat: upgrade to cosmos-sdk v0.38
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <jmaheswaran@users.noreply.github.com>
Co-authored-by: John Maheswaran <john@kava.io>
2020-04-24 11:20:34 -04:00
jmahess
5737f4fa19
[R4R] Update fees for all cdps ( #449 )
...
* update cdp fees in begin block
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <john@noreply>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-04-23 19:25:44 -04:00
Kevin Davis
23e23fdaaa
fix: restore auction sims operations ( #465 )
2020-04-23 14:51:37 -07:00
Denali Marsh
a4c5a13822
[R4R] BEP3 module spec and clean up ( #450 )
...
* bump SDK version to v0.38.2
* fix module.go and remove codespaces
* fix coins Add()
* fixes to handlers
* migrate errors
* more fixes
* fixes fixes fixes
* build
* check for paramstore keytable
* empty param validation function (TODO)
* param validations
* fix some tests
* fix all tests
* simulation fixes (WIP)
* auction and bep3 sim refactor
* fixes
* bep3 sims fixes
* auction and pricefeed fix
* cdp sims fixes
* fix tests
* Update x/auction/keeper/auctions.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* Update x/bep3/types/params.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* Apply suggestions from code review
Co-Authored-By: Denali Marsh <denali@kava.io>
* Update x/bep3/keeper/swap.go
Co-Authored-By: Denali Marsh <denali@kava.io>
* address comments from review
* address comments from review
* fix: run sims
* fix: implement marshal/unmarshal JSON for validator vesting account
* fix: don't call set on sealed config
* remove swap interface
* add concepts spec
* add state spec
* add messages spec
* update event names
* implement swap expired event
* add events spec
* add params spec
* add begin block spec
* add module readme
* update alias
* revisions
* aggregate expired swap ids for event emisison
* markdown-link-check-disable for circleci
* exclude api-endpoint links in Makefile
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-04-23 13:57:25 -07:00
Federico Kunze
a573625df8
[R4R] bump SDK version to v0.38.3 ( #421 )
...
* bump SDK version to v0.38.3
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: denalimarsh <denalimarsh@gmail.com>
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
2020-04-23 12:35:58 -04:00
Kevin Davis
0949a912cf
Choose simulation seed that runs without unbonding ( #447 )
...
* fix: ci failing due to memory consumption
* feat: choose seed that doesn't immediately exit
* fix: don't attempt to draw too much debt
* fix: remove comment
2020-04-18 11:34:25 -04:00
Federico Kunze
a0c2e4773b
pricefeed cleanup #428
...
[R4R] Pricefeed cleanup
2020-04-17 23:31:55 -04:00
jmahess
55747ed0b8
[R4R] Fix pricefeed sims so does not always go to zero ( #434 )
...
* Generate pricefeed prices using a random walk at the beginning of sims
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: John Maheswaran <john@kava.io>
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: John Maheswaran <john@noreply>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
Co-authored-by: Denali Marsh <denali@kava.io>
2020-04-17 18:29:54 -04:00
Kevin Davis
5ae0b76e0c
[R4R] Bep3 sim changes ( #442 )
...
* fix: choose claim amount as percentage
* fix: lower asset supply to avoid overwhelming auctions
2020-04-17 14:05:36 -04:00
Kevin Davis
783247851d
[R4R]: Avoid divide by zero when price is very small ( #441 )
...
* fix: avoid divide by zero when price is very small
* fix: typo
2020-04-16 07:43:44 -04:00
Kevin Davis
4cde3ba577
fix: prevent cdp sim from attempting to draw too much debt ( #438 )
...
* fix: account for all fees when drawing more debt
2020-04-15 14:54:38 -04:00
Kevin Davis
55b73e36ee
Fix: Check debt limit when adding cdp ( #433 )
...
* fix: check debt limit when opening cdp
* fix: increase debt limit for querier tests
2020-04-15 13:50:14 -04:00
Denali Marsh
45e40fe357
[WIP] Kavadist Simulations ( #435 )
...
* feat: kavadist sims
* refactor genesis, add validation
* implement params
* rename simulation to genesis
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-04-14 14:42:08 -07:00
Kevin Davis
acc96952a7
fix: non-determinism in auction sims ( #432 )
2020-04-14 13:49:31 -04:00
Kevin Davis
28a2ec6996
Merge branch 'master' into kd-pricefeed-cleanup
2020-04-13 21:30:33 -04:00
Kevin Davis
1fab788fd5
[R4R] Add cdp simulations ( #422 )
...
feat: cdp sims
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: John Maheswaran <john@kava.io>
2020-04-13 21:29:46 -04:00
Kevin Davis
8f9aece875
address review comments
2020-04-13 14:08:14 -04:00
Kevin Davis
f425efc56c
Merge branch 'master' into kd-pricefeed-cleanup
2020-04-13 14:07:51 -04:00
Kevin Davis
004837d7fc
Remove non-determinism from bep3 sims ( #427 )
...
* feat: remove non-determism from bep3 sims
2020-04-13 13:06:59 -04:00
Ruaridh
5bdffd5c1c
Add Auction Simulations ( #419 )
...
* first pass
* fix bid amount calculation
* untested refactor of sim ops and genesis
* refactor operations and fix auction bug
* add param changes and genesis
* address minor TODO
* add first draft of invariants
* improve param generation
* complete invariants
* fix genesis tests
* log no-op better
* small fixes
* add missed comma
Co-authored-by: John Maheswaran <john@kava.io>
2020-04-13 17:01:54 +01:00
Kevin Davis
09597cce27
Merge branch 'master' into kd-pricefeed-cleanup
2020-04-12 13:05:53 -04:00
jmahess
8d199746cd
[R4R] Pricefeed simulations ( #420 )
...
Co-authored-by: rhuairahrighairigh <ruaridh.odonnell@gmail.com>
Co-authored-by: John Maheswaran <john@kava.io>
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-04-12 12:34:01 -04:00
Denali Marsh
3da4657102
[R4R] BEP3 simulations ( #423 )
...
* implement randomized genesis, params
* implement operations: MsgCreateAtomicSwap
* implement claim, refund future ops
* remove dynamic block locks
* refactor BondedAddresses
* add consistent supported assets
2020-04-11 20:54:45 -07:00
Federico Kunze
71d862300d
remove pointer from AtomicSwap
2020-04-06 18:45:46 -04:00
Federico Kunze
66c73362c8
address comments from review
2020-04-06 18:43:43 -04:00
Federico Kunze
f827d896ba
Merge branch 'master' of github.com:Kava-Labs/kava into sim-store-decoder
2020-04-06 18:35:41 -04:00
Kevin Davis
174af29582
Merge remote-tracking branch 'origin/sim-store-decoder' into kd-pricefeed-cleanup
2020-04-06 10:00:00 -04:00
Kevin Davis
a6031172a1
feat: clean up pricefeed code
2020-04-06 09:56:59 -04:00