Is it possible to develop a contract that the APR increases as the TVL increases?

Hello everyone, I would like to know if there is any contract or a method that I can create a contract that will gradually increase the APR I have an example which is this AVAX network platform I analyzed about it I saw that it is also possible to implement in the BSC network but I didn't find anything to help me with this...

platform link is this

Smartcoin Chain Avax APR Increase per minute