| | |
| | | result.put("sourceTFC", ChainService.getInstance(ChainEnum.BSC_TFC.name()).balanceOf(ChainEnum.BSC_TFC_SOURCE.getAddress())); |
| | | result.put("sourceUSDT", ChainService.getInstance(ChainEnum.BSC_USDT.name()).balanceOf(ChainEnum.BSC_USDT_SOURCE.getAddress())); |
| | | result.put("cardCnt", 1000); |
| | | result.put("nftPrice", AppContants.NFT_ACTIVE_PRICE); |
| | | return result; |
| | | } |
| | | |
| | |
| | | } |
| | | system.setBuyRemain(balance); |
| | | system.setBuyTotal(balance); |
| | | |
| | | |
| | | Object maxDailyBuy = redisUtils.get(AppContants.REDIS_KEY_IDO_USDT_MAX_BUY_DAILY + member.getAddress()); |
| | | if (maxDailyBuy == null) { |
| | | DateTime tomorrow = DateUtil.beginOfDay(DateUtil.tomorrow()); |
| | | long time = DateUtil.between(new Date(), tomorrow, DateUnit.SECOND, true); |
| | | |
| | | redisUtils.set(AppContants.REDIS_KEY_IDO_USDT_MAX_BUY_DAILY + member.getAddress(), new BigDecimal("1000"), time); |
| | | } |
| | | |
| | | return system; |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | DataDictionaryCustom data = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(AppContants.DIC_TYPE_SYSTEM_SETTING, AppContants.DIC_VALUE_MINI_HOLD_COIN_LIMIT); |
| | | BigDecimal miniLimit = new BigDecimal(data.getValue()); |
| | | if (fundFlow.getTargetAmount().compareTo(miniLimit) < 0) { |
| | | return; |
| | | } |
| | | |
| | | if (!hasProfit(parent.getAddress())) { |
| | | return; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | DappMemberBoxRecordEntity memberBoxRecordEntity = new DappMemberBoxRecordEntity(); |
| | | memberBoxRecordEntity.setMemberId(parent.getId()); |
| | | memberBoxRecordEntity.setAddress(parent.getAddress()); |
| | | memberBoxRecordEntity.setFromMemberId(member.getId()); |
| | | memberBoxRecordEntity.setFromAddress(member.getAddress()); |
| | | this.dappMemberBoxRecordMapper.insert(memberBoxRecordEntity); |
| | | |
| | | if (box > 0) { |
| | | DappWalletCoinEntity walletCoin = dappWalletCoinDao.selectByMemberId(parent.getId()); |
| | | walletCoin.setBoxCnt(walletCoin.getBoxCnt() + box); |
| | | dappWalletCoinDao.updateById(walletCoin); |
| | | |
| | | DappMemberBoxRecordEntity memberBoxRecordEntity = new DappMemberBoxRecordEntity(); |
| | | memberBoxRecordEntity.setMemberId(parent.getId()); |
| | | memberBoxRecordEntity.setAddress(parent.getAddress()); |
| | | memberBoxRecordEntity.setFromMemberId(member.getId()); |
| | | memberBoxRecordEntity.setFromAddress(member.getAddress()); |
| | | this.dappMemberBoxRecordMapper.insert(memberBoxRecordEntity); |
| | | |
| | | DappFundFlowEntity boxFundFlow = new DappFundFlowEntity(parent.getId(), new BigDecimal(box), 5, 2, BigDecimal.ZERO); |
| | | dappFundFlowDao.insert(boxFundFlow); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public void sdmWithdrawFee(String data) { |
| | | |
| | | } |
| | | } |