-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bugs discovered during simulation #31
fix: bugs discovered during simulation #31
Commits on Jul 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7c0d133 - Browse repository at this point
Copy the full SHA 7c0d133View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e03a41 - Browse repository at this point
Copy the full SHA 6e03a41View commit details -
sync state transitions, messages and fix some logics
DoCancelProvideInsurance when cancel provide insurance, we should return all of its spendable coins from both derived address and fee pool address. DoWithdrawInsurance we can accept request only paired or unpaired insurances, not unpairing insurance. it because unpairing insurance is already in state transition situation at epoch, so its weird to queue the request for that insurance.
Configuration menu - View commit details
-
Copy full SHA for a9e3316 - Browse repository at this point
Copy the full SHA a9e3316View commit details -
sync latest spec with latest code and fix some core logics
fix core logics before: * there can be bug because chunk's status is changed to unpairing but, current paired chunk's status is still Paired and chunk have paired insurance id even if it is unpairing chunk. after: if paired insurance of paired chunk have invalid insurance, then unpairing it and add it to out insurances to hande just like other unpairing chunks. add missing invariant checks * newly added RedelegationInfosInvariant was not included chore * refactor variables name in invariants.go * use lsm's own event key types, not other module's. * add module name to each event
Configuration menu - View commit details
-
Copy full SHA for fc34e6e - Browse repository at this point
Copy the full SHA fc34e6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d9e6a0 - Browse repository at this point
Copy the full SHA 6d9e6a0View commit details
Commits on Jul 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4513cf7 - Browse repository at this point
Copy the full SHA 4513cf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de9b56 - Browse repository at this point
Copy the full SHA 6de9b56View commit details -
solve import cycle and make it work
TODO: deal with staking module's initial stake part
Configuration menu - View commit details
-
Copy full SHA for c00b58c - Browse repository at this point
Copy the full SHA c00b58cView commit details
Commits on Jul 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6322bf6 - Browse repository at this point
Copy the full SHA 6322bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef8cb94 - Browse repository at this point
Copy the full SHA ef8cb94View commit details
Commits on Jul 31, 2023
-
Merge remote-tracking branch 'origin/liquidstaking-module' into zsyst…
…m/simulation-advance-epoch # Conflicts: # app/params/weights.go # proto/canto/liquidstaking/v1/liquidstaking.proto # x/liquidstaking/keeper/liquidstaking.go # x/liquidstaking/simulation/proposals.go # x/liquidstaking/spec/02_state.md # x/liquidstaking/spec/chunk_state_transition_diagram.png # x/liquidstaking/spec/insurance_state_transition_diagram.png # x/liquidstaking/types/liquidstaking.pb.go
Configuration menu - View commit details
-
Copy full SHA for f8247d4 - Browse repository at this point
Copy the full SHA f8247d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0263428 - Browse repository at this point
Copy the full SHA 0263428View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa2462 - Browse repository at this point
Copy the full SHA 2aa2462View commit details -
update invariant and refactor some codes
del shares can be less than 250K (e.g. slashing during re-delegation period, not yet reached epoch)
Configuration menu - View commit details
-
Copy full SHA for 1276983 - Browse repository at this point
Copy the full SHA 1276983View commit details
Commits on Aug 1, 2023
-
remove un-used check and add more context to panic message
now chunk invariants does not check its delegation shares. it can be changed by slashing during re-delegation.
Configuration menu - View commit details
-
Copy full SHA for d69186e - Browse repository at this point
Copy the full SHA d69186eView commit details -
fix: re-delegation matured logic
decision must be based on current block time. if current block time >= info.CompletionTime, then it is matured. if not, it is un-matured.
Configuration menu - View commit details
-
Copy full SHA for b7e877f - Browse repository at this point
Copy the full SHA b7e877fView commit details -
wip: fix some isseus and trouble shooting for seed 1623992154303935393
disabled mimicking begin block logic of distribution module at epoch
Configuration menu - View commit details
-
Copy full SHA for e400e88 - Browse repository at this point
Copy the full SHA e400e88View commit details -
fix: simulation cancel provide insurance
target insurance must be pairing
Configuration menu - View commit details
-
Copy full SHA for be9504b - Browse repository at this point
Copy the full SHA be9504bView commit details
Commits on Aug 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fae5123 - Browse repository at this point
Copy the full SHA fae5123View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdeac2f - Browse repository at this point
Copy the full SHA cdeac2fView commit details -
fix: not updated validator problem and power reduction
must use validator retrieved from latest state.
Configuration menu - View commit details
-
Copy full SHA for 6cdfeb7 - Browse repository at this point
Copy the full SHA 6cdfeb7View commit details
Commits on Aug 4, 2023
-
EpochInfo.CurrentEpochStartHeight is set to the block height at the time of init genesis. This state is changeable when export and import, so exclude it.
Configuration menu - View commit details
-
Copy full SHA for e2cdcae - Browse repository at this point
Copy the full SHA e2cdcaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a9b63f - Browse repository at this point
Copy the full SHA 2a9b63fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cfb616f - Browse repository at this point
Copy the full SHA cfb616fView commit details -
fix: restOutIns can have paired chunk
when ins directs Unbonding validator, then this situation can happen. In this situation, we just unpair and undelegate it.
Configuration menu - View commit details
-
Copy full SHA for c1f8596 - Browse repository at this point
Copy the full SHA c1f8596View commit details
Commits on Aug 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 13003eb - Browse repository at this point
Copy the full SHA 13003ebView commit details
Commits on Aug 8, 2023
-
fix: out insurance's status must not be updated
this is related with recent patch. outIns is already unpairing for unpairing_for_withdrawa, so we must not update it. chore: removed un-used method.
Configuration menu - View commit details
-
Copy full SHA for 9e82ef0 - Browse repository at this point
Copy the full SHA 9e82ef0View commit details
Commits on Aug 9, 2023
-
out insurance can be PAIRED status (ranked out but no replacement). if it is not unpairing or unpairing for withdrawal we must change its status to unpairing because unbonding will be started.
Configuration menu - View commit details
-
Copy full SHA for b7da931 - Browse repository at this point
Copy the full SHA b7da931View commit details -
when decide unstakable chunk, we should consider whether it is already queued or not.
Configuration menu - View commit details
-
Copy full SHA for fabb46f - Browse repository at this point
Copy the full SHA fabb46fView commit details -
optimize gas consumption (add InsuranceState) and update sim
optimize gas consumption * added new internal state InsuranceState * when calc NetAmount we don't need insurance states. so separate that state which will be used when query. update sim * apply default genesis * don't allow param change * enable inflation module temp: apply sdk.DefaultPowerReduction when calc epoch provision. this will be changed at next PR
Configuration menu - View commit details
-
Copy full SHA for 7aa59e6 - Browse repository at this point
Copy the full SHA 7aa59e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 335d028 - Browse repository at this point
Copy the full SHA 335d028View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb034c0 - Browse repository at this point
Copy the full SHA eb034c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b6759d - Browse repository at this point
Copy the full SHA 5b6759dView commit details
Commits on Aug 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6a5555f - Browse repository at this point
Copy the full SHA 6a5555fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9b2103 - Browse repository at this point
Copy the full SHA a9b2103View commit details -
Configuration menu - View commit details
-
Copy full SHA for 781a833 - Browse repository at this point
Copy the full SHA 781a833View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72d2a68 - Browse repository at this point
Copy the full SHA 72d2a68View commit details -
epoch module's state can be changed when initGenesis.
Configuration menu - View commit details
-
Copy full SHA for 58a181b - Browse repository at this point
Copy the full SHA 58a181bView commit details -
roll-back change and add NetAmountStateEssentials
all core logics using NetAmount before now use NetAmountEssentials. NetAmount is used just for querying.
Configuration menu - View commit details
-
Copy full SHA for 29125c1 - Browse repository at this point
Copy the full SHA 29125c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e47ac8d - Browse repository at this point
Copy the full SHA e47ac8dView commit details -
for this, applied custom ibc-go and cosmos-sdk to updated initialStake as sdk.Int
Configuration menu - View commit details
-
Copy full SHA for bed5d90 - Browse repository at this point
Copy the full SHA bed5d90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04d03d3 - Browse repository at this point
Copy the full SHA 04d03d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9b728d - Browse repository at this point
Copy the full SHA e9b728dView commit details