Commit 6c85cc2a authored by Son of Odin's avatar Son of Odin

rename func

parent debb6a7b
Pipeline #128937284 passed with stages
in 31 minutes and 5 seconds
......@@ -107,8 +107,8 @@ func (v Vault) HasFunds() bool {
return false
}
// CoinCoint - counts the number of coins this vault has
func (v Vault) CoinCount() (count int) {
// CoinLength - counts the number of coins this vault has
func (v Vault) CoinLength() (count int) {
for _, coin := range v.Coins {
if !coin.Amount.IsZero() {
count += 1
......
......@@ -151,7 +151,7 @@ func (vm *VaultMgr) EndBlock(ctx sdk.Context, version semver.Version, constAcces
if coin.Asset.IsBNB() {
amt = common.SafeSub(
amt,
common.BNBGasFeeSingleton[0].Amount.MulUint64(uint64(vault.CoinCount())),
common.BNBGasFeeSingleton[0].Amount.MulUint64(uint64(vault.CoinLength())),
)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment