func (md *MatrixDeposit) AddInterest(contract *Contract, stateDB StateDB, addr common.Address, interest *big.Int) error {
	info := md.GetInterest(contract, stateDB, addr)
	if info == nil {
		return errInterestEmpty
	}
	info.Add(info, interest)
	if len(info.Bytes()) > 32 {
		return errInterestOverflow
	}
	return md.SetInterest(contract, stateDB, addr, info)
}
// AddInterest add current interest with state db and address.
AddInterest add current interest with state db and address.
// AddInterest add current interest with state db and address .
func (md *MatrixDeposit) AddInterest(contract *Contract, stateDB StateDB, addr common.Address, interest *big.Int) error {
	info := md.GetInterest(contract, stateDB, addr)
	if info == nil {
		return errInterestEmpty
	}
	info.Add(info, interest)
	if len(info.Bytes()) > 32 {
		return errInterestOverflow
	}
	return md.SetInterest(contract, stateDB, addr, info)
}
func ( md * MatrixDeposit ) AddInterest ( contract * Contract , stateDB StateDB , addr common . Address , interest * big . Int ) error { info := md . GetInterest ( contract , stateDB , addr ) if info == nil { return errInterestEmpty } info . Add ( info , interest ) if len ( info . Bytes ( ) ) > 32 { return errInterestOverflow } return md . SetInterest ( contract , stateDB , addr , info ) }
AddInterest add current interest with state db and address.
AddInterest add current interest with state db and address .