You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dospore
changed the title
Expected tokens minted breakdown, showing expected amount of tokens they will receive, and the expected price per token
Mint Modal Expected Tokens
Jan 25, 2022
protocol fees for v1 are not quite as simple as this Unfortunately. The annualized 1% is taken during upkeep split proportionately between long and short collateral holdings. We don't have code to calculate this and writing that code is probs not worth it imo. v2 have minting/burning fees that we know at the time of user committing so will be better then.
@issy-fleming
I don't believe we currently display gas fees in USD anywhere but we do have BTC/USD and ETH/USD pricing from chainlink. You might have to refactor a bit to initialize/access this pricing data since its only used in the context of BPT staking farms at the moment. Check out the way context/FarmContext/index.ts for reference. also you may already be doing this @dweberdev but I think you'll need to estimate gas spend using the ethers contract instance (poolCommitter i think)
Designs: https://www.figma.com/file/UkNDXVtYoQcaT6bRcTTcn9/Tracer-Deploy-1.3?node-id=192%3A39641
The text was updated successfully, but these errors were encountered: