diff --git a/README.md b/README.md index be5ddbb..9fd1f9e 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ For auctioneers that were started before multi-pool functionality a db migration | `workerKeypair` | The secret key for the bot's auction creating account. This should be different from the filler as auction creation and auction bidding can happen simultaneously. **Keep this secret and secure!** | | `fillerKeypair` | The secret key for the bot's auction filler account. This should be different from the worker as auction creation and auction bidding can happen simultaneously. **Keep this secret and secure!** | | `pools` | A list of pool configs that dictates what pools are monitored | -| `notificationLevel` | (Default - `med`) The severity level where notifications are sent to either the console or a webhook, if present. Can be one of `low`, `med`, or `high`. High notifications includes dropped actions, bad debt auctions, and critical errors. Med adds all successful auction fills, liquidation auctions, and retried errors. Low adds additional info notifications and interest auctions. | +| `notificationLevel` | (Default - `med`) The severity level where notifications are sent to either the console or a webhook, if present. Can be one of `low`, `med`, or `high`. High notifications includes dropped actions, bad debt auctions, critical errors and liquidation auction fills. Med adds interest auction fills, liquidation auctions, and retried errors. Low adds additional info notifications and interest auctions. | | `baseFee` | (Default - `5000`) The minimum inclusion fee that will be specified for a normal transaction, otherwise feeStats p70. | | `highBaseFee` | (Default - `10000`) The minimum inclusion fee that will be specified for a high priority transaction, otherwise feeStats p90. This is considered any auction fill where the estimated profit is over 10 oracle units (almost always $10). | | `priceSources` | (Optional) A list of assets that will have prices sourced from exchanges instead of the pool oracle. | diff --git a/package-lock.json b/package-lock.json index 4573945..a3013b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "auctioneer-bot", - "version": "3.1.1", + "version": "3.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "auctioneer-bot", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "dependencies": { "@blend-capital/blend-sdk": "3.2.2", diff --git a/package.json b/package.json index 52f194a..9ac08a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auctioneer-bot", - "version": "3.1.1", + "version": "3.1.2", "main": "index.js", "type": "module", "scripts": { diff --git a/src/utils/notifier.ts b/src/utils/notifier.ts index 8715ed3..de0f5f3 100644 --- a/src/utils/notifier.ts +++ b/src/utils/notifier.ts @@ -127,7 +127,7 @@ export function getNotificationLevelForAuction( if (isBotFill) { switch (auctionType) { case 0: // Liquidation - return NotificationLevel.MED; + return NotificationLevel.HIGH; case 1: // Bad Debt return NotificationLevel.HIGH; case 2: // Interest @@ -138,7 +138,7 @@ export function getNotificationLevelForAuction( } else { switch (auctionType) { case 0: // Liquidation - return NotificationLevel.LOW; + return NotificationLevel.MED; case 1: // Bad Debt return NotificationLevel.HIGH; case 2: // Interest diff --git a/test/utils/notifier.test.ts b/test/utils/notifier.test.ts index d1ceb0d..108c26b 100644 --- a/test/utils/notifier.test.ts +++ b/test/utils/notifier.test.ts @@ -320,9 +320,9 @@ describe('sendNotification', () => { describe('getNotificationLevelForAuction', () => { describe('when bot successfully fills auction', () => { - it('should return MED for Liquidation auctions', () => { + it('should return HIGH for Liquidation auctions', () => { const level = getNotificationLevelForAuction(AuctionType.Liquidation, true); - expect(level).toBe(NotificationLevel.MED); + expect(level).toBe(NotificationLevel.HIGH); }); it('should return HIGH for BadDebt auctions', () => { @@ -337,9 +337,9 @@ describe('getNotificationLevelForAuction', () => { }); describe('when bot does NOT fill auction', () => { - it('should return LOW for Liquidation auctions', () => { + it('should return MED for Liquidation auctions', () => { const level = getNotificationLevelForAuction(AuctionType.Liquidation, false); - expect(level).toBe(NotificationLevel.LOW); + expect(level).toBe(NotificationLevel.MED); }); it('should return HIGH for BadDebt auctions', () => { @@ -355,9 +355,9 @@ describe('getNotificationLevelForAuction', () => { describe('edge cases', () => { it('should handle numeric auction type values correctly', () => { - expect(getNotificationLevelForAuction(0 as AuctionType, true)).toBe(NotificationLevel.MED); - expect(getNotificationLevelForAuction(1 as AuctionType, true)).toBe(NotificationLevel.HIGH); - expect(getNotificationLevelForAuction(2 as AuctionType, true)).toBe(NotificationLevel.MED); + expect(getNotificationLevelForAuction(0 as AuctionType, false)).toBe(NotificationLevel.MED); + expect(getNotificationLevelForAuction(1 as AuctionType, false)).toBe(NotificationLevel.HIGH); + expect(getNotificationLevelForAuction(2 as AuctionType, false)).toBe(NotificationLevel.LOW); }); it('should default to MED for unknown auction types when bot fills', () => {