PolkaBridge is a decentralized all-in-one application platform.
One of PolkaBridge’s most noticeable product is PolkaBridge DEX - a decentralized exchange that allows users to swap tokens on Polkadot to other ones on other blockchain platforms without any centralized organizations. In addition, with the smart deflationary farming mechanism, liquidity providers can earn more rewards than they think.
In future, we will launch Lending, Launchpad, Predict and more to scale up ecosystem.
MintSwapCanonicalToken.withdrawErc20(IERC20,address) (#987-989) ignores return value by _token.transfer(_acc,_token.balanceOf(address(this))) (#988)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Address.isContract(address) (#485-495) uses assembly
- INLINE ASM (#491-493)
Address.verifyCallResult(bool,bytes,string) (#654-674) uses assembly
- INLINE ASM (#666-669)
Do not use evm assembly.
Additional information: link
Address.functionCall(address,bytes) (#538-540) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#567-573) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#627-629) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#637-646) is never used and should be removed
Address.functionStaticCall(address,bytes) (#600-602) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#610-619) is never used and should be removed
Address.sendValue(address,uint256) (#513-518) is never used and should be removed
Context._msgData() (#102-104) is never used and should be removed
Ownable.initOwner() (#777-780) is never used and should be removed
SafeERC20.safeApprove(IERC20,address,uint256) (#703-716) is never used and should be removed
SafeERC20.safeDecreaseAllowance(IERC20,address,uint256) (#727-738) is never used and should be removed
SafeERC20.safeIncreaseAllowance(IERC20,address,uint256) (#718-725) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.8.0 (#4) allows old versions
solc-0.8.2 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#513-518):
- (success) = recipient.call{value: amount}() (#516)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#581-592):
- (success,returndata) = target.call{value: value}(data) (#590)
Low level call in Address.functionStaticCall(address,bytes,string) (#610-619):
- (success,returndata) = target.staticcall(data) (#617)
Low level call in Address.functionDelegateCall(address,bytes,string) (#637-646):
- (success,returndata) = target.delegatecall(data) (#644)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MultiBridgeToken.mint(address,uint256)._to (#837) is not in mixedCase
Parameter MultiBridgeToken.mint(address,uint256)._amount (#837) is not in mixedCase
Parameter MultiBridgeToken.newMechanism(address,uint256)._to (#846) is not in mixedCase
Parameter MultiBridgeToken.newMechanism(address,uint256)._amount (#846) is not in mixedCase
Parameter MultiBridgeToken.burn(uint256)._amount (#855) is not in mixedCase
Parameter MultiBridgeToken.burn(address,uint256)._from (#867) is not in mixedCase
Parameter MultiBridgeToken.burn(address,uint256)._amount (#867) is not in mixedCase
Parameter MultiBridgeToken.burnFrom(address,uint256)._from (#877) is not in mixedCase
Parameter MultiBridgeToken.burnFrom(address,uint256)._amount (#877) is not in mixedCase
Parameter MultiBridgeToken.updateBridgeSupplyCap(address,uint256)._bridge (#913) is not in mixedCase
Parameter MultiBridgeToken.updateBridgeSupplyCap(address,uint256)._cap (#913) is not in mixedCase
Parameter MintSwapCanonicalToken.swapBridgeForCanonical(address,uint256)._bridgeToken (#946) is not in mixedCase
Parameter MintSwapCanonicalToken.swapBridgeForCanonical(address,uint256)._amount (#946) is not in mixedCase
Parameter MintSwapCanonicalToken.swapCanonicalForBridge(address,uint256)._bridgeToken (#964) is not in mixedCase
Parameter MintSwapCanonicalToken.swapCanonicalForBridge(address,uint256)._amount (#964) is not in mixedCase
Parameter MintSwapCanonicalToken.setBridgeTokenSwapCap(address,uint256)._bridgeToken (#981) is not in mixedCase
Parameter MintSwapCanonicalToken.setBridgeTokenSwapCap(address,uint256)._swapCap (#981) is not in mixedCase
Parameter MintSwapCanonicalToken.withdrawErc20(IERC20,address)._token (#987) is not in mixedCase
Parameter MintSwapCanonicalToken.withdrawErc20(IERC20,address)._acc (#987) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
name() should be declared external:
- ERC20.name() (#133-135)
symbol() should be declared external:
- ERC20.symbol() (#141-143)
decimals() should be declared external:
- ERC20.decimals() (#158-160)
- MultiBridgeToken.decimals() (#904-906)
totalSupply() should be declared external:
- ERC20.totalSupply() (#165-167)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#172-174)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#184-188)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#207-211)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#229-238)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#252-256)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#272-281)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#801-804)
Use the external attribute for functions never called from the contract.
Additional information: link
Young tokens have high risks of scam / price dump / death
Token is relatively young, but twitter if very old (probably it's fake).
Twitter account has relatively few followers