0

I'm having problems with this part of the code. Can you tell me how to solve this problem? I have read various documentation, but maybe someone knows the solution

  function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256 ) {
        (uint256 tFee, uint256 tBurn, uint256 tCharity, uint256 tLiquidity) = _getTBasics(tAmount, _TAX_FEE, _BURN_FEE, _CHARITY_FEE, _LIQUIDITY_FEE);
        uint256 tTransferAmount = getTTransferAmount(tAmount, tFee, tBurn, tCharity, tLiquidity);
        uint256 currentRate =  _getRate();
        (uint256 rAmount, uint256 rFee) = _getRBasics(tAmount, tFee, currentRate);
        uint256 rTransferAmount = _getRTransferAmount(rAmount, rFee, tBurn, tCharity, tLiquidity, currentRate);
        return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tBurn, tCharity, tLiquidity);
    }
New contributor
Dmitry is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • I don't know the exact answer, but my guess would be the sausage code you have here (uint256 tFee, uint256 tBurn, uint256 tCharity, uint256 tLiquidity). Here's a link that might give you an idea:stackoverflow.com/questions/61619191/…
    – Icarus23
    Oct 13 at 8:07
0

you can try a method that was used in one of the Uniswap router here: Uniswap

or an article by James Carlyle James Carlyle

you might need to do a lot of refactoring if you are to use a struct

Not the answer you're looking for? Browse other questions tagged or ask your own question.