Skip to content

Commit

Permalink
fix prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Dec 20, 2023
1 parent 1c3a3a4 commit a123edf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions modules/pool/pool.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,20 @@ model PrismaPoolLinearDynamicData {
model PrismaPoolToken {
@@id([id, chain])
id String
poolId String
pool PrismaPool @relation(fields:[poolId, chain], references: [id, chain])
chain Chain
id String
poolId String
pool PrismaPool @relation(fields:[poolId, chain], references: [id, chain])
chain Chain
address String
token PrismaToken @relation(fields:[address, chain], references: [address, chain])
index Int
address String
token PrismaToken @relation(fields:[address, chain], references: [address, chain])
index Int
nestedPoolId String?
nestedPool PrismaPool? @relation(name: "PoolNestedInToken", fields:[nestedPoolId, chain], references: [id, chain])
nestedPoolId String?
nestedPool PrismaPool? @relation(name: "PoolNestedInToken", fields:[nestedPoolId, chain], references: [id, chain])
priceRateProvider String?
exemptFromYield Boolean @default(false)
priceRateProvider String?
exemptFromProtocolYieldFee Boolean @default(false)
dynamicData PrismaPoolTokenDynamicData?
}
Expand Down
2 changes: 1 addition & 1 deletion modules/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export class PoolService {
await prisma.prismaPoolToken.update({
where: { id_chain: { id: token.id, chain: networkContext.chain } },
data: {
exemptFromYield: token.isExemptFromYieldProtocolFee
exemptFromProtocolYieldFee: token.isExemptFromYieldProtocolFee
? token.isExemptFromYieldProtocolFee
: false,
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "PrismaPoolToken" ADD COLUMN "exemptFromProtocolYieldFee" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "priceRateProvider" TEXT;

0 comments on commit a123edf

Please sign in to comment.