Skip to content

Commit 33716e2

Browse files
committed
fix: fix infinifi phantom token incorrect constructor
1 parent fedcbc9 commit 33716e2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

contracts/helpers/infinifi/InfinifiUnwindingPhantomToken.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ contract InfinifiUnwindingPhantomToken is PhantomERC20, Ownable, IPhantomToken {
2727
/// @param _infinifiUnwindingGateway The Infinifi Unwinding Gateway where the pending assets are tracked
2828
constructor(address _infinifiUnwindingGateway)
2929
PhantomERC20(
30-
IInfinifiUnwindingGateway(infinifiUnwindingGateway).iUSD(),
30+
IInfinifiUnwindingGateway(_infinifiUnwindingGateway).iUSD(),
3131
"Infinifi Unwinding iUSD",
3232
"wdiUSD",
33-
IERC20Metadata(IInfinifiUnwindingGateway(infinifiUnwindingGateway).iUSD()).decimals()
33+
IERC20Metadata(IInfinifiUnwindingGateway(_infinifiUnwindingGateway).iUSD()).decimals()
3434
)
35-
{}
35+
{
36+
infinifiUnwindingGateway = _infinifiUnwindingGateway;
37+
}
3638

3739
/// @notice Returns the amount of assets pending/claimable for withdrawal
3840
/// @param account The account for which the calculation is performed

0 commit comments

Comments
 (0)