Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Oct 18, 2023
1 parent 468b4ac commit 6a17eef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/mappings/base/base-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { getDepositTime, getLendId, loadOrCreateLend, lpbValueInQuote, saveOrRem
import { addReserveAuctionToPool, getBurnInfo, getLenderInfo, isERC20Pool, updatePool } from "../../utils/pool/pool"
import { incrementTokenTxCount as incrementTokenTxCountERC20Pool } from "../../utils/token-erc20"
import { incrementTokenTxCount as incrementTokenTxCountERC721Pool } from "../../utils/token-erc721"
import { loadOrCreateReserveAuction, reserveAuctionKickerReward } from "../../utils/pool/reserve-auction"
import { loadOrCreateReserveAuction } from "../../utils/pool/reserve-auction"
import { saveOrRemovePositionLend } from "../../utils/position"
import { decreaseAllowances, increaseAllowances, loadOrCreateAllowances, revokeAllowances, saveOrRemoveAllowances } from "../../utils/pool/lp-allowances"
import { approveTransferors, loadOrCreateTransferors, revokeTransferors, saveOrRemoveTransferors } from "../../utils/pool/lp-transferors"
Expand Down
7 changes: 0 additions & 7 deletions src/utils/pool/reserve-auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,3 @@ export function loadOrCreateReserveAuction(poolId: Bytes, burnEpoch: BigInt): Re
}
return reserveAuction
}

// TODO: check calculation of pool claimable reserves
export function reserveAuctionKickerReward(pool: Pool): BigDecimal {
// kicker award = claimableReserves * 0.01
return BigDecimal.fromString(`${pool.claimableReserves}`)
.times(BigDecimal.fromString("0.01"))
}

0 comments on commit 6a17eef

Please sign in to comment.