TSST.Dog - Smart Contract Audit Report
Summary
TSST.Dog ($TSST) is a new community-driven DeFi token.We reviewed the TSST.Dog token contract at commit 32ea3c0d2345f0b96849d56f6981337a5aa04467 on the team's Github repository.
Notes on the Contract:Audit Findings Summary
- The total supply of the token is set to 900 million $TSST [900,000,000].
- No burn functions are present; though the circulating supply can be reduced by sending tokens to the 0x..dead address, if desired.
- The owner can mint any amount of tokens to any address at any time.
- There was no token allocation for our team to analyze as the contract has yet to be deployed to the mainnet.
- There is a 10% tax fee on transfers when the user is buying or selling tokens via Uniswap. This fee does not apply to users who are excluded from transfer fees.
- The tokens collected from the tax fee are stored in the contract address balance. Once a threshold value of tokens (determined by the operator) is met, the tokens are swapped for ETH and split between four wallets controlled by the team.
- The token is designed to be a governance token where 1 token = 1 vote.
- Token holders can delegate their voting rights to any address. To save gas, users can also do so using an EIP-712 signature.
- The contract utilizes Safemath libraries and complies with the ERC20 token standard.
Ownership/Operator Controls:- The contract utilizes an Operator role. The Operator address has access to specific functionality of the contract.
- The Operator can exclude and include accounts from the tax fee.
- The Operator can update the threshold number of tokens need to perform a swap to any value at any time.
- The Operator can update the percentages of ETH distributed to the four team wallets.
- The Operator can update the addresses of the four team wallets at any time.
- The Operator can update the Uniswap Router address at any time.
- No external threats were identified.
- Please ensure trust in the team prior to investing as they have substantial control in the ecosystem.
- Date: November 12th, 2021
Audit Results
Vulnerability Category | Notes | Result |
---|---|---|
Arbitrary Storage Write | N/A | PASS |
Arbitrary Jump | N/A | PASS |
Delegate Call to Untrusted Contract | N/A | PASS |
Dependence on Predictable Variables | N/A | PASS |
Deprecated Opcodes | N/A | PASS |
Ether Thief | N/A | PASS |
Exceptions | N/A | PASS |
External Calls | N/A | PASS |
Flash Loans | N/A | PASS |
Integer Over/Underflow | N/A | PASS |
Multiple Sends | N/A | PASS |
Oracles | N/A | PASS |
Suicide | N/A | PASS |
State Change External Calls | N/A | PASS |
Unchecked Retval | N/A | PASS |
User Supplied Assertion | N/A | PASS |
Critical Solidity Compiler | N/A | PASS |
Overall Contract Safety | PASS |
Function Graph
Inheritence Chart
Functions Overview
($) = payable function
# = non-constant function
+ [Int] IUniswapV2Factory
- [Ext] feeTo
- [Ext] feeToSetter
- [Ext] getPair
- [Ext] allPairs
- [Ext] allPairsLength
- [Ext] createPair #
- [Ext] setFeeTo #
- [Ext] setFeeToSetter #
+ [Int] IUniswapV2Pair
- [Ext] name
- [Ext] symbol
- [Ext] decimals
- [Ext] totalSupply
- [Ext] balanceOf
- [Ext] allowance
- [Ext] approve #
- [Ext] transfer #
- [Ext] transferFrom #
- [Ext] DOMAIN_SEPARATOR
- [Ext] PERMIT_TYPEHASH
- [Ext] nonces
- [Ext] permit #
- [Ext] MINIMUM_LIQUIDITY
- [Ext] factory
- [Ext] token0
- [Ext] token1
- [Ext] getReserves
- [Ext] price0CumulativeLast
- [Ext] price1CumulativeLast
- [Ext] kLast
- [Ext] mint #
- [Ext] burn #
- [Ext] swap #
- [Ext] skim #
- [Ext] sync #
- [Ext] initialize #
+ [Int] IUniswapV2Router01
- [Ext] factory
- [Ext] WETH
- [Ext] addLiquidity #
- [Ext] addLiquidityETH ($)
- [Ext] removeLiquidity #
- [Ext] removeLiquidityETH #
- [Ext] removeLiquidityWithPermit #
- [Ext] removeLiquidityETHWithPermit #
- [Ext] swapExactTokensForTokens #
- [Ext] swapTokensForExactTokens #
- [Ext] swapExactETHForTokens ($)
- [Ext] swapTokensForExactETH #
- [Ext] swapExactTokensForETH #
- [Ext] swapETHForExactTokens ($)
- [Ext] quote
- [Ext] getAmountOut
- [Ext] getAmountIn
- [Ext] getAmountsOut
- [Ext] getAmountsIn
+ [Int] IUniswapV2Router02 (IUniswapV2Router01)
- [Ext] removeLiquidityETHSupportingFeeOnTransferTokens #
- [Ext] removeLiquidityETHWithPermitSupportingFeeOnTransferTokens #
- [Ext] swapExactTokensForTokensSupportingFeeOnTransferTokens #
- [Ext] swapExactETHForTokensSupportingFeeOnTransferTokens ($)
- [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
+ Context
- [Int] #
- [Int] _msgSender
- [Int] _msgData
+ Ownable (Context)
- [Int] #
- [Pub] owner
- [Pub] renounceOwnership #
- modifiers: onlyOwner
- [Pub] transferOwnership #
- modifiers: onlyOwner
- [Int] _transferOwnership #
+ [Int] IBEP20
- [Ext] totalSupply
- [Ext] decimals
- [Ext] symbol
- [Ext] name
- [Ext] getOwner
- [Ext] balanceOf
- [Ext] transfer #
- [Ext] allowance
- [Ext] approve #
- [Ext] transferFrom #
+ [Lib] SafeMath
- [Int] add
- [Int] sub
- [Int] sub
- [Int] mul
- [Int] div
- [Int] div
- [Int] mod
- [Int] mod
- [Int] min
- [Int] sqrt
+ [Lib] Address
- [Int] isContract
- [Int] sendValue #
- [Int] functionCall #
- [Int] functionCall #
- [Int] functionCallWithValue #
- [Int] functionCallWithValue #
- [Prv] _functionCallWithValue #
+ BEP20 (Context, IBEP20, Ownable)
- [Pub] #
- [Ext] getOwner
- [Pub] name
- [Pub] decimals
- [Pub] symbol
- [Pub] totalSupply
- [Pub] balanceOf
- [Pub] transfer #
- [Pub] allowance
- [Pub] approve #
- [Pub] transferFrom #
- [Pub] increaseAllowance #
- [Pub] decreaseAllowance #
- [Pub] mint #
- modifiers: onlyOwner
- [Int] _transfer #
- [Int] _mint #
- [Int] _burn #
- [Int] _approve #
- [Int] _burnFrom #
+ TsstToken (BEP20)
- [Pub] #
- [Pub] mint #
- modifiers: onlyOwner
- [Pub] updateBUSDAddress #
- modifiers: onlyOperator
- [Pub] updateTsstSwapRouter #
- modifiers: onlyOperator
- [Pub] operator
- [Int] _transfer #
- [Pub] updateTaxRate #
- modifiers: onlyOperator
- [Pub] transferOperator #
- modifiers: onlyOwner,onlyOperator
- [Pub] excludeFromFee #
- modifiers: onlyOperator
- [Pub] includeInFee #
- modifiers: onlyOperator
- [Pub] isExcludedFromFee
- [Pub] setFeeRate1 #
- modifiers: onlyOperator
- [Pub] setFeeRate2 #
- modifiers: onlyOperator
- [Pub] setFeeRate3 #
- modifiers: onlyOperator
- [Pub] setFeeRate4 #
- modifiers: onlyOperator
- [Pub] setFeeAddress1 #
- modifiers: onlyOperator
- [Pub] setFeeAddress2 #
- modifiers: onlyOperator
- [Pub] setFeeAddress3 #
- modifiers: onlyOperator
- [Pub] setFeeAddress4 #
- modifiers: onlyOperator
- [Ext] delegates
- [Ext] delegate #
- [Ext] delegateBySig #
- [Ext] getCurrentVotes
- [Ext] getPriorVotes
- [Int] _delegate #
- [Int] _moveDelegates #
- [Int] _writeCheckpoint #
- [Int] safe32
- [Int] getChainId