mirror of
https://github.com/Instadapp/dsa-connectors-2.0.git
synced 2024-07-29 21:57:39 +00:00
fix: remove-approval
This commit is contained in:
parent
29d6772fa0
commit
4d5fdc23bf
|
@ -24,10 +24,7 @@ contract EETHContract is Helpers, Basic, Events {
|
|||
: _amount;
|
||||
|
||||
uint256 _ethBeforeBalance = address(this).balance;
|
||||
|
||||
WETH_CONTRACT.approve(address(WETH_CONTRACT), _amount);
|
||||
WETH_CONTRACT.withdraw(_amount);
|
||||
|
||||
uint256 _ethAfterBalance = address(this).balance;
|
||||
|
||||
uint256 _ethAmount = sub(_ethAfterBalance, _ethBeforeBalance);
|
||||
|
|
|
@ -142,7 +142,7 @@ describe("eETH Staking", function () {
|
|||
});
|
||||
|
||||
it("Should deposit wETH into eETH", async function () {
|
||||
const amount = ethers.utils.parseEther("1");
|
||||
const amount = ethers.utils.parseEther("10");
|
||||
const eETHTAddress = "0x35fA164735182de50811E8e2E824cFb9B6118ac2";
|
||||
const IERC20ABI = [
|
||||
"function approve(address spender, uint256 amount) external returns (bool)",
|
||||
|
|
Loading…
Reference in New Issue
Block a user