Skip to content

Commit

Permalink
Fixed issue with approval on ibEUR to MIM not working correctly.
Browse files Browse the repository at this point in the history
Signed-off-by: antonnell <[email protected]>
  • Loading branch information
antonnell committed May 22, 2022
1 parent bdf741d commit 3ca237c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/ffSwap/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function Setup({ theme, handleNext }) {

let approvalNotRequired = false
if(fromAssetValue) {
if(['sUSD', 'ibEUR'].includes(fromAssetValue.symbol)) {
if(['sUSD'].includes(fromAssetValue.symbol) || (fromAssetValue.symbol === 'ibEUR' && toAssetValue.symbol === 'sUSD')) {
approvalNotRequired = BigNumber(fromAssetValue.allowanceV2).gte(fromAmountValue) || ((!fromAmountValue || fromAmountValue === '') && BigNumber(fromAssetValue.allowanceV2).gt(0) )
} else {
approvalNotRequired = BigNumber(fromAssetValue.allowanceV3).gte(fromAmountValue) || ((!fromAmountValue || fromAmountValue === '') && BigNumber(fromAssetValue.allowanceV3).gt(0) )
Expand Down
2 changes: 1 addition & 1 deletion components/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function Navigation(props) {
</Grid>
</Grid>
</div>
<Typography className={classes.smallVersion}>Version 0.8.1</Typography>
<Typography className={classes.smallVersion}>Version 0.8.2</Typography>
{ warningOpen &&
<FFWarning close={ closeWarning } />
}
Expand Down

0 comments on commit 3ca237c

Please sign in to comment.