[dev question] How do I know the pool id of a staked LP in masterchef from contract? (Get pool id from lp address)

PancakeSwapPancakeSwap
$3.03
‑3.07%
self.pancakeswap1m ago
Edit: I was just trying to get the pid from an lp token address and should have just looked into stuff before I throwed a post on reddit, sorry, a habit ;) Edit2: ps I just decided to itterate through PoolInfo\[\] public poolInfo; and index it.