Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
93118a8e9f
|
|||
|
bba5be8964
|
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user