Skip to content
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

Coinswap Upgrade based on Cosmos-SDK v0.46.1 #308

Merged
merged 25 commits into from
Sep 6, 2022
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b94b05e
add simulation and update docs
taramakage May 20, 2022
2b8def3
feat: add the functionality of adding/removing liquidity unilaterally…
taramakage May 13, 2022
5a51dbd
Update keeper.go
taramakage May 16, 2022
cc2cf70
fix: replace pool-id with counterparty-name
taramakage May 24, 2022
f5a5b41
fix: modifty field of unilateral msg
taramakage May 26, 2022
5a86f0d
fix: appmodule version
taramakage May 31, 2022
4f52ac4
fix: register migration
taramakage May 31, 2022
0564ca5
fix: coinswap unit test
taramakage Jun 1, 2022
a8e3d0b
fix: add coinswap migration v153
taramakage Jun 2, 2022
aee0755
fix: panic by invalid token
taramakage Jun 13, 2022
a4192ae
fix: simplify calculation for removing unilateral liquidity and impro…
taramakage Jun 15, 2022
0151f56
fix: panic by insufficient funds
taramakage Jun 15, 2022
6c53314
fix: set zero unilateral fee valid
taramakage Jun 15, 2022
04c18a6
fix: improve calculation precision and set constraint of unilateral w…
taramakage Jun 17, 2022
daf62b1
fix and regenerate coinswap proto
taramakage Aug 31, 2022
fc32927
fix unit test
taramakage Aug 31, 2022
9b2829a
format coinswap proto
taramakage Aug 31, 2022
960eaf1
update changelog
taramakage Sep 1, 2022
349c52b
add wip github action
taramakage Sep 1, 2022
c8a033f
remove rest querier
taramakage Sep 1, 2022
7846bb1
rm beginblock & endblock
taramakage Sep 2, 2022
dee4946
refactor some code
taramakage Sep 2, 2022
b46f3b1
modify tx.proto and regenerate proto
taramakage Sep 2, 2022
51e34ea
refactor add/rm unilateral liquidity function
taramakage Sep 5, 2022
4fe8ba6
Merge branch 'develop' into yuandu/coinswap-upgrade-v046
taramakage Sep 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update keeper.go
taramakage committed Aug 31, 2022
commit 5a51dbd5ddc3bc28788aa9f662c4b2d67810907c
2 changes: 1 addition & 1 deletion modules/coinswap/keeper/keeper.go
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ func (k Keeper) addLiquidity(ctx sdk.Context,
func (k Keeper) addUnilateralLiquidity(ctx sdk.Context, msg *types.MsgAddUnilateralLiquidity) (sdk.Coin, error) {

pool, exist := k.GetPoolBySequenceId(ctx, msg.PoolId)
if exist != true {
if !exist {
return sdk.Coin{}, sdkerrors.Wrap(types.ErrReservePoolNotExists, fmt.Sprintf("liquidity pool id: %d ", msg.PoolId))
}