Skip to content

Commit

Permalink
chore: More Gyro fields for SOR.
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk committed Sep 7, 2023
1 parent 048699d commit 6390fe4
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/pool/lib/pool-creator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ export class PoolCreatorService {
id: pool.id,
alpha: pool.alpha || '',
beta: pool.beta || '',
sqrtAlpha: pool.sqrtAlpha || '',
sqrtBeta: pool.sqrtBeta || '',
root3Alpha: pool.root3Alpha || '',
c: pool.c || '',
s: pool.s || '',
lambda: pool.lambda || '',
Expand Down
9 changes: 9 additions & 0 deletions modules/pool/lib/pool-gql-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ export class PoolGqlLoaderService {
type: mappedData.type,
alpha: pool.gyroData?.alpha || '',
beta: pool.gyroData?.beta || '',
sqrtAlpha: pool.gyroData?.sqrtAlpha || '',
sqrtBeta: pool.gyroData?.sqrtBeta || '',
root3Alpha: pool.gyroData?.root3Alpha || '',
c: pool.gyroData?.c || '',
s: pool.gyroData?.s || '',
lambda: pool.gyroData?.lambda || '',
Expand All @@ -406,6 +409,9 @@ export class PoolGqlLoaderService {
type: mappedData.type,
alpha: pool.gyroData?.alpha || '',
beta: pool.gyroData?.beta || '',
sqrtAlpha: pool.gyroData?.sqrtAlpha || '',
sqrtBeta: pool.gyroData?.sqrtBeta || '',
root3Alpha: pool.gyroData?.root3Alpha || '',
c: pool.gyroData?.c || '',
s: pool.gyroData?.s || '',
lambda: pool.gyroData?.lambda || '',
Expand All @@ -426,6 +432,9 @@ export class PoolGqlLoaderService {
type: mappedData.type,
alpha: pool.gyroData?.alpha || '',
beta: pool.gyroData?.beta || '',
sqrtAlpha: pool.gyroData?.sqrtAlpha || '',
sqrtBeta: pool.gyroData?.sqrtBeta || '',
root3Alpha: pool.gyroData?.root3Alpha || '',
c: pool.gyroData?.c || '',
s: pool.gyroData?.s || '',
lambda: pool.gyroData?.lambda || '',
Expand Down
3 changes: 3 additions & 0 deletions modules/pool/pool.gql
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ type GqlPoolGyro implements GqlPoolBase {

alpha: String!
beta: String!
sqrtAlpha: String!
sqrtBeta: String!
root3Alpha: String!
c: String!
s: String!
lambda: String!
Expand Down
3 changes: 3 additions & 0 deletions modules/pool/pool.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ model PrismaPoolGyroData{
alpha String
beta String
sqrtAlpha String?
sqrtBeta String?
root3Alpha String?
c String?
s String?
lambda String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ fragment BalancerPool on Pool {
amp
alpha
beta
sqrtAlpha
sqrtBeta
root3Alpha
c
s
lambda
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "PrismaPoolGyroData" ADD COLUMN "root3Alpha" TEXT,
ADD COLUMN "sqrtAlpha" TEXT,
ADD COLUMN "sqrtBeta" TEXT;
3 changes: 3 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ model PrismaPoolGyroData{
alpha String
beta String
sqrtAlpha String?
sqrtBeta String?
root3Alpha String?
c String?
s String?
lambda String?
Expand Down

0 comments on commit 6390fe4

Please sign in to comment.