| | |
| | | } |
| | | } |
| | | |
| | | // 激活卡牌 |
| | | if (fundFlow.getType() == 8) { |
| | | |
| | | return; |
| | | } |
| | | |
| | | OnlineTransferUtil.addTransferRecord(e.from, e.to, amount, e.log.getTransactionHash(), DappTransferRecordEntity.TRANSFER_SOURCE_FLAG_APPLICATION, "USDT"); |
| | | |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | HashMap<String, BigDecimal> map = new HashMap<>(); |
| | | map.put("x", x); |
| | | map.put("y", y); |
| | | map.put("nft", AppContants.NFT_ACTIVE_PRICE); |
| | | return map; |
| | | } |
| | | |
| | |
| | | nftActivation.setCount(box.getIndex()); |
| | | nftActivation.setOpenTime(time); |
| | | nftActivation.setExpireTime(expire); |
| | | |
| | | dappNftActivationDao.insert(nftActivation); |
| | | |
| | | ActiveNftListVo nft = new ActiveNftListVo(); |
| | |
| | | |
| | | |
| | | DappFundFlowEntity fundFlow = new DappFundFlowEntity(member.getId(), new BigDecimal(activeDto.getCount()), 8, 1, BigDecimal.ZERO, activeDto.getTxHash()); |
| | | fundFlow.setNewestPrice(AppContants.NFT_ACTIVE_PRICE); |
| | | fundFlow.setNewestPrice(AppContants.NFT_ACTIVE_PRICE.multiply(BigDecimal.valueOf(nftActive.getCount()))); |
| | | dappFundFlowDao.insert(fundFlow); |
| | | |
| | | int count = nftActive.getCount() - activeDto.getCount(); |