Compare commits

...

2 Commits

Author SHA1 Message Date
93118a8e9f fix: sinkAddress getter 2024-11-14 12:43:39 +03:00
bba5be8964 fix: pool index query 2024-11-12 11:38:00 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ func (h *Handler) AddToken(ctx context.Context, event event.Event) error {
if err := h.chainProvider.Client.CallCtx(
ctx,
eth.CallFunc(contractAddress, decimalsGetter).Returns(&tokenDecimals),
eth.CallFunc(contractAddress, sinkAddressGetter).Returns(&sinkAddress),
); err != nil {
// This will most likely revert if the contract does not have a sinkAddress
// Instead of handling the error we just ignore it and set the value to 0

View File

@@ -122,7 +122,7 @@ INSERT INTO tokens(
-- $1: contract_address
-- $2: pool_name
-- $3: pool_symbol
INSERT INTO tokens(
INSERT INTO pools(
contract_address,
pool_name,
pool_symbol