func (md *MatrixDeposit) GetSlash(contract *Contract, stateDB StateDB, addr common.Address) *big.Int {
	slashKey := append(addr[:], 'S', 'L', 'A', 'S', 'H')
	info := stateDB.GetState(contract.Address(), common.BytesToHash(slashKey))
	if info != emptyHash {
		return info.Big()
	}
	return big.NewInt(0)
}
// GetSlash get current slash with state db and address.
GetSlash get current slash with state db and address.
// GetSlash get current slash with state db and address .
func (md *MatrixDeposit) GetSlash(contract *Contract, stateDB StateDB, addr common.Address) *big.Int {
	slashKey := append(addr[:], 'S', 'L', 'A', 'S', 'H')
	info := stateDB.GetState(contract.Address(), common.BytesToHash(slashKey))
	if info != emptyHash {
		return info.Big()
	}
	return big.NewInt(0)
}
func ( md * MatrixDeposit ) GetSlash ( contract * Contract , stateDB StateDB , addr common . Address ) * big . Int { slashKey := append ( addr [ : ] , 'S' , 'L' , 'A' , 'S' , 'H' ) info := stateDB . GetState ( contract . Address ( ) , common . BytesToHash ( slashKey ) ) if info != emptyHash { return info . Big ( ) } return big . NewInt ( 0 ) }
GetSlash get current slash with state db and address.
GetSlash get current slash with state db and address .