fix: collateral param permission (#813)

This commit is contained in:
Kevin Davis 2021-02-10 07:57:02 -07:00 committed by GitHub
parent 04b65e1d4e
commit e351e20727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ func (acps AllowedCollateralParams) Allows(current, incoming cdptypes.Collateral
var foundCurrentCP bool
var currentCP cdptypes.CollateralParam
for _, p := range current {
if p.Denom != incomingCP.Denom {
if p.Type != incomingCP.Type {
continue
}
foundCurrentCP = true