Skip to content

Commit 86e2c11

Browse files
committed
fea: add ListaAutoBuyBack deploy scripts
1 parent 6da03c4 commit 86e2c11

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

contracts/buyback/Buyback.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ contract Buyback is
5757
);
5858
event BoughtBack(
5959
address indexed pair,
60-
address spender,
60+
address spender,
6161
address indexed tokenIn,
6262
address indexed tokenOut,
6363
uint256 amountIn,
@@ -177,7 +177,7 @@ contract Buyback is
177177
uint256 _amountOutMin,
178178
bytes calldata _swapData
179179
) external onlyRole(BOT) nonReentrant whenNotPaused {
180-
_buyback(_router, _router, _tokenIn, _tokenOut, _amountIn, _amountOutMin, _swapData);
180+
_buyback(_router, _router, _tokenIn, _tokenOut, _amountIn, _amountOutMin, _swapData);
181181
}
182182

183183
/// @dev buy back tokens using router
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.20;
3+
4+
import "forge-std/Script.sol";
5+
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
6+
7+
import { ListaAutoBuyback } from "../../contracts/dao/ListaAutoBuyback.sol";
8+
9+
contract ListaAutoBuybackImplScript is Script {
10+
function setUp() public {}
11+
12+
function run() public {
13+
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
14+
15+
vm.startBroadcast(deployerPrivateKey);
16+
ListaAutoBuyback buyback = new ListaAutoBuyback();
17+
vm.stopBroadcast();
18+
console.log("Buyback implementation address: %s", address(buyback));
19+
}
20+
}

0 commit comments

Comments
 (0)