func (md *MatrixDeposit) AddSlash(contract *Contract, stateDB StateDB, addr common.Address, slash *big.Int) error {
	info := md.GetSlash(contract, stateDB, addr)
	if info == nil {
		return errSlashEmpty
	}
	info.Add(info, slash)
	if len(info.Bytes()) > 32 {
		return errSlashOverflow
	}
	return md.SetSlash(contract, stateDB, addr, info)
}
// AddSlash add current slash with state db and address.
AddSlash add current slash with state db and address.
// AddSlash add current slash with state db and address .
func (md *MatrixDeposit) AddSlash(contract *Contract, stateDB StateDB, addr common.Address, slash *big.Int) error {
	info := md.GetSlash(contract, stateDB, addr)
	if info == nil {
		return errSlashEmpty
	}
	info.Add(info, slash)
	if len(info.Bytes()) > 32 {
		return errSlashOverflow
	}
	return md.SetSlash(contract, stateDB, addr, info)
}
func ( md * MatrixDeposit ) AddSlash ( contract * Contract , stateDB StateDB , addr common . Address , slash * big . Int ) error { info := md . GetSlash ( contract , stateDB , addr ) if info == nil { return errSlashEmpty } info . Add ( info , slash ) if len ( info . Bytes ( ) ) > 32 { return errSlashOverflow } return md . SetSlash ( contract , stateDB , addr , info ) }
AddSlash add current slash with state db and address.
AddSlash add current slash with state db and address .