Skip to content

Commit

Permalink
fix: calc change
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdt committed Sep 25, 2021
1 parent f286f09 commit 9e71510
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ const RemoveLiquidity: React.FC = () => {

const handleApprovalPermitRDM = useCallback(
(spender: string, amount: BigNumber) => {
const burn = calculateShortBurn()

handlePermit(
entity.redeem.address,
TRADER[chainId].address,
calculateShortBurn().toString()
burn.toString()
)
.then((data) => {
console.log({ data })
Expand All @@ -151,7 +153,8 @@ const RemoveLiquidity: React.FC = () => {
)
const handleApprovalPermitLP = useCallback(
(spender: string, amount: BigNumber) => {
handlePermit(lpToken, spender, calculateLPBurn.toString())
const burn = calculateLPBurn()
handlePermit(lpToken, spender, burn.toString())
.then((data) => {
console.log({ data })
setSignData(data)
Expand Down

0 comments on commit 9e71510

Please sign in to comment.