Need help for lock tokens (Pancakeswap)

hello there. my token has an allocation part like this:

`uint256 teamAllocation = (MAX_SUPPLY * 17) / 100;
        uint256 marketingAllocation = (MAX_SUPPLY * 10) / 100;
        uint256 rewardsAllocation = (MAX_SUPPLY * 20) / 100;
        uint256 airdropAllocation = (MAX_SUPPLY * 3) / 100;
        uint256 liquidityAllocation = (MAX_SUPPLY * 15) / 100;
        uint256 stakingAllocation = (MAX_SUPPLY * 15) / 100;
        uint256 privateSaleAllocation = (MAX_SUPPLY * 5) / 100;
        uint256 publicSaleAllocation = (MAX_SUPPLY * 15) / 100;

I want to lock these tokens for a different times. should i do this lock process in my code or do i need to create a another smart contract? also i want to lock the liquidation pool for 1 year for example. but if i lock it, how do i open it for trading on Pancakeswap?

1 Like