I’m currently working on a payment integration with incognito. The docs and source code have been pretty useful, but I am having trouble finding good documentation in understanding withdrawal fee calculations.
Using the SDK on NodeJS. Stuck on properly calculating the fees for the "bridgeWithdraw"
function. How would I calculate the "nativeFee"
and "privacyFee"
for pETH->ETH
and pBTC->BTC
withdrawal?
What is the fee beakdown/flow, how to properly calculate the burn fees, internal unshielding fees, and where to append network fees?
Would really appreciate some help or links to point me in the right direction.