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

Remove classic from the verified response map #24

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions internal/app/api/common/terraswap/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (r *repositoryImpl) getCw20Allowlist(url string) (terraswap.TokensMap, erro
}
var cw20TokenMap map[string]allowlist.Cw20Allowlist
if terraswap.IsClassic(r.chainId) {
cw20TokenMap = res.Classic
cw20TokenMap = res.Mainnet
} else if terraswap.IsMainnet(r.chainId) {
cw20TokenMap = res.Mainnet
} else if terraswap.IsTestnet(r.chainId) {
Expand Down Expand Up @@ -100,7 +100,7 @@ func (r *repositoryImpl) getIbcAllowlist(url string) (terraswap.TokensMap, error

var ibcTokenMap map[string]allowlist.IbcTokenAllowlist
if terraswap.IsClassic(r.chainId) {
ibcTokenMap = res.Classic
ibcTokenMap = res.Mainnet
} else if terraswap.IsMainnet(r.chainId) {
ibcTokenMap = res.Mainnet
} else if terraswap.IsTestnet(r.chainId) {
Expand Down
2 changes: 0 additions & 2 deletions internal/pkg/terraswap/allowlist/dtos.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ func (lhs IbcTokenAllowlist) Equal(src interface{}) bool {

type Cw20AllowlistResponse struct {
Mainnet map[string]Cw20Allowlist `json:"mainnet"`
Classic map[string]Cw20Allowlist `json:"classic"`
Testnet map[string]Cw20Allowlist `json:"testnet"`
}

type IbcAllowlistResponse struct {
Mainnet map[string]IbcTokenAllowlist `json:"mainnet"`
Classic map[string]IbcTokenAllowlist `json:"classic"`
Testnet map[string]IbcTokenAllowlist `json:"testnet"`
}

Expand Down
Loading