Skip to content

Commit

Permalink
Merge pull request #29 from terraswap/feat/add-exception-list
Browse files Browse the repository at this point in the history
Add `uluna-CNip` to validation exception list
  • Loading branch information
jbamlee authored May 8, 2024
2 parents 1936602 + 3b16c2e commit 0bb8475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collector/log-finder/nonnativeTransferLF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ClassicReceiverFeeAppliedTokenSet, ClassicReceiverFeeAppliedPairSet, Cl
const FEE_AMOUNT_KEY = 'fee_amount'
const TAX_AMOUNT_KEY = 'tax_amount'
const CW20_TAX_AMOUNT_KEY = 'cw20_tax_amount'
const CW20_TAX_KEY = 'tax'

export function createNonnativeTransferLogFinder(height?: number): ReturningLogFinderMapper<NonnativeTransferTransformed> {
if (isColumbus4) {
Expand Down Expand Up @@ -80,7 +81,7 @@ function feeApplyMapper(match: Attributes): NonnativeTransferTransformed {
if (m.key === "amount") {
transformed.assets.amount = m.value
}
if (m.key === FEE_AMOUNT_KEY || m.key === TAX_AMOUNT_KEY || m.key === CW20_TAX_AMOUNT_KEY) {
if (m.key === FEE_AMOUNT_KEY || m.key === TAX_AMOUNT_KEY || m.key === CW20_TAX_AMOUNT_KEY || m.key === CW20_TAX_KEY) {
feeAmount = m.value
}
})
Expand Down
1 change: 1 addition & 0 deletions src/lib/terraswap/classic.consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface OddTokenHandlingInfo {

export const ClassicOddTokenAppliedPair: Set<string> = new Set([
"terra1ggjadsdn285f4ae9wykle5lnawna7gdk32g6dfgpev8j0hx5jkpsc7u4gn", // uluna - BASE
"terra18f60c3xr8f4cq0u7m70gr6k8845rs4yagdtj80j8e9cyxmj7uj6shxl2e5", // uluna - CNip
])

const CLASSIC_BASE_TOKEN = "terra1uewxz67jhhhs2tj97pfm2egtk7zqxuhenm4y4m"
Expand Down

0 comments on commit 0bb8475

Please sign in to comment.