Security
STX audit breakdown.
Best Practices
v Owner cannot stop or pause the smart contract. v Owner cannot lock or burn the user assets. v Owner cannot mint tokens after initial contract creation/deployment. v The smart contract utilises “SafeMath” function to avoid common smart contract
uint8 public constant MAX_TAX = 15; //MAX_TAX prevents malicious tax use
vulnerabilities.
SOCIAL @interfinetwork WEB interfi.network
string private _name = "SectorProtocol";
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow"); uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow"); return c;
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero");
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero");
Note ⚠ v Be aware that active smart contract owner privileges constitute an elevated impact to smart
contract safety and security. v Smart contract owner can set liquidity parameters in the smart contract.
//Impossible to release LP unless LP lock time is zero
function releaseLP() public onlyOwner { require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked"); IPancakeERC20 liquidityToken = IPancakeERC20(_pancakePairAddress); uint256 amount = liquidityToken.balanceOf(address(this));
liquidityToken.transfer(msg.sender, amount);
//Impossible to remove LP unless lock time is zero
function removeLP() public onlyOwner { require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked"); _liquidityUnlockTime = block.timestamp; IPancakeERC20 liquidityToken = IPancakeERC20(_pancakePairAddress); uint256 amount = liquidityToken.balanceOf(address(this));
Sector protocol Full Audit ( Score 91/100 ) click here ->
Sector Protocol GitHub S/C link. click here ->
Last updated