Here is how to calculate the feeFactor: https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/scripts/lib/proving.ts#L49-L52 and the pub input of the circuit: https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/circuits/withdraw/src/main.nr#L33-L43 and how the fee is calculated incontract: https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/contracts/evm/WarpToadCore.sol#L123-L132
Here is how to calculate the feeFactor: https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/scripts/lib/proving.ts#L49-L52
and the pub input of the circuit:
https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/circuits/withdraw/src/main.nr#L33-L43
and how the fee is calculated incontract:
https://github.com/JossDuff/warp-toad/blob/a4024ab5fe5320948a6348c14d80bb290b78ae89/backend/contracts/evm/WarpToadCore.sol#L123-L132