func (md *MatrixDeposit) GetInterest(contract *Contract, stateDB StateDB, addr common.Address) *big.Int {
	interestKey := append(addr[:], 'R', 'E', 'W', 'A', 'R', 'D')
	info := stateDB.GetState(contract.Address(), common.BytesToHash(interestKey))
	if info != emptyHash {
		return info.Big()
	}
	return big.NewInt(0)
}
// GetInterest get current interest with state db and address.
GetInterest get current interest with state db and address.
// GetInterest get current interest with state db and address .
func (md *MatrixDeposit) GetInterest(contract *Contract, stateDB StateDB, addr common.Address) *big.Int {
	interestKey := append(addr[:], 'R', 'E', 'W', 'A', 'R', 'D')
	info := stateDB.GetState(contract.Address(), common.BytesToHash(interestKey))
	if info != emptyHash {
		return info.Big()
	}
	return big.NewInt(0)
}
func ( md * MatrixDeposit ) GetInterest ( contract * Contract , stateDB StateDB , addr common . Address ) * big . Int { interestKey := append ( addr [ : ] , 'R' , 'E' , 'W' , 'A' , 'R' , 'D' ) info := stateDB . GetState ( contract . Address ( ) , common . BytesToHash ( interestKey ) ) if info != emptyHash { return info . Big ( ) } return big . NewInt ( 0 ) }
GetInterest get current interest with state db and address.
GetInterest get current interest with state db and address .