| | |
| | | * 目前每人限一单,总金额限制100U |
| | | */ |
| | | BigDecimal amountInLast = dappChargeUsdtMapper.selectBySumAmountMemberId(member.getId()); |
| | | DataDictionaryCustom systemAddressDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PoolEnum.SYSTEM_ADDRESS.getType(), |
| | | PoolEnum.SYSTEM_ADDRESS.getCode() |
| | | ); |
| | | if(StrUtil.isNotEmpty(systemAddressDic.getValue())){ |
| | | // if(!(dappMemberEntity.getAddress().equals("0x2bBAD0d2362a8dbdc655fBa5A0cd51d5379e38f7") |
| | | // ||dappMemberEntity.getAddress().equals("0xd5c13dc4372d1e02b93add9dcca901bef51168be") |
| | | // ||dappMemberEntity.getAddress().equals("0xe22bb5fB2e0F8ED9366785dADD33cA19355d037c") |
| | | // ||dappMemberEntity.getAddress().equals("0x7685E62E679886494E3cdc3DE7103E026f815AF0") |
| | | // ||dappMemberEntity.getAddress().equals("0x6893bE8F4fb73595A13f32bA5e1d198Ab135516C") |
| | | // )){ |
| | | // DataDictionaryCustom systemAddressDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | // PoolEnum.SYSTEM_ADDRESS.getType(), |
| | | // PoolEnum.SYSTEM_ADDRESS.getCode() |
| | | // ); |
| | | // if(StrUtil.isNotEmpty(systemAddressDic.getValue())){ |
| | | // if(getLocalAddress(dappMemberEntity.getAddress())){ |
| | | // if(BigDecimal.ZERO.compareTo(amountInLast) < 0){ |
| | | // throw new FebsException("Limit per address 100 USDT"); |
| | | // } |
| | | // } |
| | | // }else{ |
| | | // if(BigDecimal.ZERO.compareTo(amountInLast) < 0){ |
| | | // throw new FebsException("Limit per address 100 USDT"); |
| | | // } |
| | | // } |
| | | if(getLocalAddress(dappMemberEntity.getAddress())){ |
| | | if(BigDecimal.ZERO.compareTo(amountInLast) < 0){ |
| | | throw new FebsException("Limit per address 100 USDT"); |
| | | } |
| | | } |
| | | }else{ |
| | | if(BigDecimal.ZERO.compareTo(amountInLast) < 0){ |
| | | throw new FebsException("Limit per address 100 USDT"); |
| | | } |
| | |
| | | */ |
| | | if(address.equals("0x2bBAD0d2362a8dbdc655fBa5A0cd51d5379e38f7")){ |
| | | return false; |
| | | } |
| | | if(address.equals("0xd5c13dc4372d1e02b93add9dcca901bef51168be")){ |
| | | }else if(address.equals("0xd5c13dc4372d1e02b93add9dcca901bef51168be")){ |
| | | return false; |
| | | } |
| | | if(address.equals("0xe22bb5fB2e0F8ED9366785dADD33cA19355d037c")){ |
| | | }else if(address.equals("0xe22bb5fB2e0F8ED9366785dADD33cA19355d037c")){ |
| | | return false; |
| | | } |
| | | if(address.equals("0x7685E62E679886494E3cdc3DE7103E026f815AF0")){ |
| | | }else if(address.equals("0x7685E62E679886494E3cdc3DE7103E026f815AF0")){ |
| | | return false; |
| | | } |
| | | if(address.equals("0x6893bE8F4fb73595A13f32bA5e1d198Ab135516C")){ |
| | | }else if(address.equals("0x6893bE8F4fb73595A13f32bA5e1d198Ab135516C")){ |
| | | return false; |
| | | } |
| | | }else{ |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |