| | |
| | | * 0x55d398326f99059fF775485246999027B3197955 |
| | | * 测试链 0x337610d27c682E347C9cD60BD4b3b107C9d34dDd |
| | | */ |
| | | BSC_USDT("BSC", "0xE09705E2D5283ee4b74182Ed5906D30E3b0D5fa8", |
| | | "a922d1900a99e883c5ca684ea479a81f2c7de6b8efde7e81b3877ff056221460", |
| | | BSC_USDT("BSC", "0x8Afd8Bfd8be3cCEB47A6A997DD1b3Fb0046d5124", |
| | | "0x24a2b437f5d6b1212960fe6b0bff7dabae731a3e1fb32da6e4b50fc96623d05d", |
| | | "https://bsc-dataseed1.ninicoin.io", |
| | | "0x55d398326f99059fF775485246999027B3197955", |
| | | ""), |
| | |
| | | "https://bsc-dataseed1.ninicoin.io", |
| | | "0x46ac4921e58773ca22826df1640672b91b1db2b3", |
| | | ""), |
| | | BSC_GFA("BSC", "0xE09705E2D5283ee4b74182Ed5906D30E3b0D5fa8", |
| | | "a922d1900a99e883c5ca684ea479a81f2c7de6b8efde7e81b3877ff056221460", |
| | | BSC_GFA("BSC", "0x8Afd8Bfd8be3cCEB47A6A997DD1b3Fb0046d5124", |
| | | "0x24a2b437f5d6b1212960fe6b0bff7dabae731a3e1fb32da6e4b50fc96623d05d", |
| | | "https://bsc-dataseed1.ninicoin.io", |
| | | "0xaC97ff8173c41b83111b411A3Fa62D7C6ff385be", |
| | | ""), |
| | |
| | | }else if(FlowTypeEnum.DAI_BI_OUT.getValue() == type){ |
| | | //代币转账 |
| | | String transfer = ChainService.getInstance(ChainEnum.BSC_GFA.name()).transfer(dappMemberEntity.getAddress(), amount); |
| | | int retryTime = 0;//重试次数 |
| | | while (StrUtil.isEmpty(transfer)) { |
| | | // 休眠2s |
| | | try { |
| | | Thread.sleep(2000); |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if(retryTime < 3){ |
| | | transfer = ChainService.getInstance(ChainEnum.BSC_USDT.name()).transfer(dappMemberEntity.getAddress(), amount); |
| | | } |
| | | retryTime ++ ; |
| | | } |
| | | if(StrUtil.isNotEmpty(transfer)){ |
| | | dappFundFlowEntity.setFromHash(transfer); |
| | | dappFundFlowEntity.setStatus(2); |
| | |
| | | {type: 'checkbox', fixed: 'left'}, |
| | | {title: '地址', templet: '#approve-list', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {field: 'amount', title: '金额(USDT)', minWidth: 130}, |
| | | {field: 'amount', title: '金额(代币)', minWidth: 130}, |
| | | {title: '提现状态', templet: '#withdraw-status'}, |
| | | // {field: 'fee', title: '手续费', minWidth: 130}, |
| | | // {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |