Skip to content

Commit

Permalink
Eliminate redundant code in CurveV2 Tricrypto
Browse files Browse the repository at this point in the history
  • Loading branch information
duncancmt committed May 14, 2024
1 parent a53d896 commit 336beb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/chains/Mainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ contract MainnetSettlerMetaTxn is SettlerMetaTxn, MainnetMixin {
ISignatureTransfer.PermitTransferFrom memory permit
) = abi.decode(data, (address, uint80, uint256, ISignatureTransfer.PermitTransferFrom));

sellToCurveTricryptoMetaTxn(recipient, poolInfo, minBuyAmount, permit, sig);
sellToCurveTricryptoVIP(recipient, poolInfo, minBuyAmount, permit, sig);
} else {
return false;
}
Expand Down
10 changes: 0 additions & 10 deletions src/core/CurveTricrypto.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ abstract contract CurveTricrypto is SettlerAbstract {
uint256 minBuyAmount,
ISignatureTransfer.PermitTransferFrom memory permit,
bytes memory sig
) internal {
sellToCurveTricryptoMetaTxn(recipient, poolInfo, minBuyAmount, permit, sig);
}

function sellToCurveTricryptoMetaTxn(
address recipient,
uint80 poolInfo,
uint256 minBuyAmount,
ISignatureTransfer.PermitTransferFrom memory permit,
bytes memory sig
) internal {
uint64 factoryNonce = uint64(poolInfo >> 16);
uint8 sellIndex = uint8(poolInfo >> 8);
Expand Down

0 comments on commit 336beb8

Please sign in to comment.