Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auctioneer-bot",
"version": "3.1.1",
"version": "3.1.2",
"main": "index.js",
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions test/utils/notifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand All @@ -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', () => {
Expand Down