diff --git a/modules/pool/pool.prisma b/modules/pool/pool.prisma index 97dcf78d2..9b16b15c2 100644 --- a/modules/pool/pool.prisma +++ b/modules/pool/pool.prisma @@ -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? } diff --git a/modules/pool/pool.service.ts b/modules/pool/pool.service.ts index 0dd490d9f..a19068e6c 100644 --- a/modules/pool/pool.service.ts +++ b/modules/pool/pool.service.ts @@ -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, }, diff --git a/prisma/migrations/20230921072643_add_price_rate_providers/migration.sql b/prisma/migrations/20230921072643_add_price_rate_providers/migration.sql deleted file mode 100644 index 53f998344..000000000 --- a/prisma/migrations/20230921072643_add_price_rate_providers/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "PrismaPoolToken" ADD COLUMN "priceRateProvider" TEXT; diff --git a/prisma/migrations/20231220162356_add_price_rate_and_exempt/migration.sql b/prisma/migrations/20231220162356_add_price_rate_and_exempt/migration.sql new file mode 100644 index 000000000..aa4f9a5a5 --- /dev/null +++ b/prisma/migrations/20231220162356_add_price_rate_and_exempt/migration.sql @@ -0,0 +1,3 @@ +-- AlterTable +ALTER TABLE "PrismaPoolToken" ADD COLUMN "exemptFromProtocolYieldFee" BOOLEAN NOT NULL DEFAULT false, +ADD COLUMN "priceRateProvider" TEXT;