1
- import type { AuctionInitialInfo , SurplusAuctionActive , DebtAuctionActive } from 'auctions-core/src/types' ;
1
+ import type { AuctionInitialInfo , DebtAuctionActive } from 'auctions-core/src/types' ;
2
2
import { formatToAutomaticDecimalPointsString } from 'auctions-core/src/helpers/formatToAutomaticDecimalPoints' ;
3
3
import { sendNotification } from './twitter' ;
4
4
@@ -9,13 +9,6 @@ const generateNotificationTextCollateral = function (auction: AuctionInitialInfo
9
9
return `Collateral auction with ${ formattedString } ${ auction . collateralSymbol } just started. Follow the link to participate: ${ url } ` ;
10
10
} ;
11
11
12
- const generateNotificationTextSurplus = function ( auction : SurplusAuctionActive ) : string {
13
- const url = `${ process . env . FRONTEND_ORIGIN } /surplus/?network=${ auction . network } &auction=${ auction . id } ` ;
14
- return `Surplus auction with ${ formatToAutomaticDecimalPointsString (
15
- auction . receiveAmountDAI
16
- ) } DAI just started. Follow the link to participate: ${ url } `;
17
- } ;
18
-
19
12
const generateNotificationTextDebt = function ( auction : DebtAuctionActive ) : string {
20
13
const url = `${ process . env . FRONTEND_ORIGIN } /debt/?network=${ auction . network } &auction=${ auction . id } ` ;
21
14
return `Debt auction with fixed bid amount of ${ formatToAutomaticDecimalPointsString (
@@ -31,12 +24,6 @@ export const notifyCollateral = async function (auction: AuctionInitialInfo) {
31
24
await sendNotification ( text ) ;
32
25
} ;
33
26
34
- export const notifySurplus = async function ( auction : SurplusAuctionActive ) {
35
- const text = generateNotificationTextSurplus ( auction ) ;
36
- console . info ( `Surplus auction notification: "${ text } "` ) ;
37
- await sendNotification ( text ) ;
38
- } ;
39
-
40
27
export const notifyDebt = async function ( auction : DebtAuctionActive ) {
41
28
const text = generateNotificationTextDebt ( auction ) ;
42
29
console . info ( `Debt auction notification: "${ text } "` ) ;
0 commit comments