Skip to content

Commit

Permalink
fix: change naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 19, 2024
1 parent 6b8b1fd commit ff5f965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/contracts/extensions/stata-token/StataTokenFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,16 @@ contract StataTokenFactory is Initializable, IStataTokenFactory {
if (reserveData.aTokenAddress == address(0))
revert NotListedUnderlying(reserveData.aTokenAddress);
bytes memory symbol = abi.encodePacked(
'stat',
IERC20Metadata(reserveData.aTokenAddress).symbol(),
'v2'
'w',
IERC20Metadata(reserveData.aTokenAddress).symbol()
);
address stataToken = TRANSPARENT_PROXY_FACTORY.createDeterministic(
STATA_TOKEN_IMPL,
ProxyAdmin(PROXY_ADMIN),
abi.encodeWithSelector(
StataTokenV2.initialize.selector,
reserveData.aTokenAddress,
string(
abi.encodePacked('Stata ', IERC20Metadata(reserveData.aTokenAddress).name(), ' v2')
),
string(abi.encodePacked('Wrapped ', IERC20Metadata(reserveData.aTokenAddress).name())),
string(symbol)
),
bytes32(uint256(uint160(underlyings[i])))
Expand Down
4 changes: 2 additions & 2 deletions tests/extensions/stata-token/StataTokenV2Getters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ contract StataTokenV2GettersTest is BaseTest {
}

function test_getters() public view {
assertEq(stataTokenV2.name(), 'Stata Aave Local WETH v2');
assertEq(stataTokenV2.symbol(), 'stataLocWETHv2');
assertEq(stataTokenV2.name(), 'Wrapped Aave Local WETH');
assertEq(stataTokenV2.symbol(), 'waLocWETH');

address referenceAsset = stataTokenV2.getReferenceAsset();
assertEq(referenceAsset, aToken);
Expand Down

0 comments on commit ff5f965

Please sign in to comment.