| | |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final DappSystemProfitDao dappSystemProfitDao; |
| | | private final ChainProducer chainProducer; |
| | | private final ContractMain contractMain; |
| | | |
| | | private final DappMemberNodeMapper dappMemberNodeMapper; |
| | | private final DappChargeUsdtMapper dappChargeUsdtMapper; |
| | |
| | | log.info("amount:{},address:{}",amount,address); |
| | | ThreadUtil.sleep(5000); |
| | | // String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL_CONTRACT.name()).transferUSDT(address, amount); |
| | | String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transferUSDT(address, amount); |
| | | // String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transferUSDT(address, amount); |
| | | |
| | | String hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transfer(address, amount); |
| | | if(StrUtil.isEmpty(hash)){ |
| | | // hash = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transfer(address, amount); |
| | | return; |
| | | } |
| | | // if(StrUtil.isEmpty(hash)){ |
| | |
| | | chainProducer.sendAntACoinInBPoolMsg(fundFlowToB.getId()); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | |
| | | System.out.print(1); |
| | | System.out.print(2); |
| | | // ThreadUtil.execute(() -> { |
| | | // //90%进入A币底池 |
| | | // System.out.print(1); |
| | | // ThreadUtil.sleep(5000); |
| | | // //10%进入B币LP薄饼底池 |
| | | // System.out.print(2); |
| | | // }); |
| | | } |
| | | |
| | | @Override |
| | | public void contractAnDaoInMsg(Long flowId) { |
| | | /** |
| | |
| | | * 测试转账 |
| | | * @param args |
| | | */ |
| | | // public static void main(String[] args) { |
| | | // String transfer = ChainService.getInstance(ChainEnum.BSC_USDT_A_POOL.name()).transfer("0x74fC0e035f315F7BD8b7686e22581AB1afC45e97", new BigDecimal(1)); |
| | | public static void main(String[] args) { |
| | | // BigDecimal amount = new BigDecimal("2000"); |
| | | // String address = "0xCe74955CF5289E803EE518902076eF42BB09b7a8"; |
| | | //// String transfer = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transferUSDT(address, amount); |
| | | // String transfer = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL_CONTRACT.name()).transferUSDT(address, amount); |
| | | // System.out.println(transfer); |
| | | // |
| | | // } |
| | | BigDecimal amount = new BigDecimal("83.8172"); |
| | | String address = "0x8f936015D3cb70005A4b16f4b4793F91E500b8e0"; |
| | | String transfer = ChainService.getInstance(ChainEnum.BSC_USDT_W_POOL.name()).transfer(address |
| | | , amount); |
| | | System.out.println(transfer); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 生成当前分钟的k线数据,type为0 |