Skip to content

Commit

Permalink
feat(whale-api-client): Add format for fields in BurnData (#2137)
Browse files Browse the repository at this point in the history
<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #2136 

#### Additional comments?:

---------

Co-authored-by: Pierre Gee <[email protected]>
  • Loading branch information
cuongquangnam and pierregee authored Aug 11, 2023
1 parent 5086a59 commit 214183b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/whale-api-client/src/api/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,27 +143,27 @@ export interface SupplyData {
export interface BurnData {
address: string
/**
* Amount send to burn address
* Amount of DFI send to burn address
*/
amount: number
/**
* Token amount send to burn address; formatted as AMOUNT@SYMBOL
*/
tokens: string[]
/**
* Amount collected via fee burn
* Amount of DFI collected via fee burn
*/
feeburn: number
/**
* Amount collected via emission burn
* Amount of DFI collected via emission burn
*/
emissionburn: number
/**
* Amount collected via auction burn
* Amount of DFI collected via auction burn
*/
auctionburn: number
/**
* Value of burn after payback
* Value of burn after payback (in DFI)
*/
paybackburn: number
/**
Expand All @@ -183,19 +183,19 @@ export interface BurnData {
*/
dfipaybacktokens: string[]
/**
* Amount of paybacks
* Amount of paybacks; formatted as AMOUNT@SYMBOL
*/
paybackfees: string[]
/**
* Amount of tokens that are paid back
* Amount of tokens that are paid back; formatted as AMOUNT@SYMBOL
*/
paybacktokens: string[]
/**
* Amount of tokens burned due to futureswap
* Amount of tokens burned due to futureswap; formatted as AMOUNT@SYMBOL
*/
dfip2203: string[]
/**
* Amount of tokens burned due to DFI-to-DUSD swap
* Amount of tokens burned due to DFI-to-DUSD swap; formatted as AMOUNT@SYMBOL
*/
dfip2206f: string[]
}

0 comments on commit 214183b

Please sign in to comment.