diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6f24827..b4627b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,11 +31,6 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile --ignore-engines - - name: Create temporary .env file - run: | - echo "KEY_MAINNET=0000000000000000000000000000000000000000000000000000000000000000" >> .env - echo "KEY_TESTNET=0000000000000000000000000000000000000000000000000000000000000000" >> .env - # This is required separately from yarn test because it generates the typechain definitions - name: Compile run: yarn compile diff --git a/.nvmrc b/.nvmrc index a3d2332..3cacc0b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.11 \ No newline at end of file +12 \ No newline at end of file diff --git a/config.ts b/config.ts index 44a1460..b3bec2c 100644 --- a/config.ts +++ b/config.ts @@ -5,29 +5,29 @@ export default { testnet: "", }, Refundee: { - mainnet: "0x328f7689244Bd7D042c4aE9eC18077b6781D6Dd8", + mainnet: "", testnet: "", }, Pool: { - mainnet: "0x7EF8B9bE08bF6694C4844a3388e80B3419a9f803", + mainnet: "", testnet: "", }, RewardToken: { - mainnet: "0xB75D0B03c06A926e488e2659DF1A861F860bD3d1", + mainnet: "", testnet: "", }, }, StartTime: { - mainnet: 1728561006, - testnet: 172800, + mainnet: 0, + testnet: 0, }, EndTime: { - mainnet: 1728561306, - testnet: 172800, + mainnet: 0, + testnet: 0, }, RewardAmount: { - mainnet: 1, - testnet: 1000, + mainnet: 0, // Amount is converted to decimals of the reward token in the script + testnet: 0, }, }; \ No newline at end of file diff --git a/deployments/incentives.json b/deployments/incentives.json index 44bd9d2..a66b731 100644 --- a/deployments/incentives.json +++ b/deployments/incentives.json @@ -2,9 +2,9 @@ "mainnet": { "LatestIncentive": { "rewardToken": "0xB75D0B03c06A926e488e2659DF1A861F860bD3d1", - "pool": "0x7EF8B9bE08bF6694C4844a3388e80B3419a9f803", - "startTime": 1728561006, - "endTime": 1728561306, + "pool": "0x9788C190C55a1C6e20597d52506bD49BB758E984", + "startTime": 1728910778, + "endTime": 1728996844, "refundee": "0x328f7689244Bd7D042c4aE9eC18077b6781D6Dd8", "rewardAmount": "1000000" } diff --git a/hardhat.config.ts b/hardhat.config.ts index f637173..31a4ca0 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -8,6 +8,8 @@ import { SolcUserConfig, NetworkUserConfig } from 'hardhat/types' import 'solidity-coverage' import "dotenv/config"; +const accounts = process.env.PK ? [process.env.PK] : []; + const DEFAULT_COMPILER_SETTINGS: SolcUserConfig = { version: '0.7.6', settings: { @@ -39,13 +41,13 @@ if (process.env.RUN_COVERAGE == '1') { const seiTestnet: NetworkUserConfig = { url: "https://evm-rpc-testnet.sei-apis.com", chainId: 1328, - accounts: [process.env.KEY_TESTNET!], + accounts: accounts, }; const seiMainnet: NetworkUserConfig = { url: "https://evm-rpc.sei-apis.com", chainId: 1329, - accounts: [process.env.KEY_MAINNET!], + accounts: accounts, }; const config: HardhatUserConfig = { diff --git a/scripts/createIncentive.ts b/scripts/createIncentive.ts index 95cbbfa..6a09fb9 100644 --- a/scripts/createIncentive.ts +++ b/scripts/createIncentive.ts @@ -37,8 +37,8 @@ const main = async () => { // Define incentive parameters const rewardToken = config.Address.RewardToken[networkName]; // Address of the reward token const pool = config.Address.Pool[networkName]; // Address of the Dragonswap V2 pool - const startTime = config.StartTime[networkName]; // Start time (1 hour from now) - const endTime = config.EndTime[networkName]; // End time (7 days after start) + const startTime = config.StartTime[networkName]; // Start time + const endTime = config.EndTime[networkName]; // End time const refundee = refundeeAddress; // Address to receive leftover rewards // Create the incentive key