Skip to content

Commit

Permalink
Merge pull request #199 from vegaprotocol/198-market-proposal-rejecte…
Browse files Browse the repository at this point in the history
…d-because-datasourceoracle-signers-keys-are-not-valid

fix: Oracle signer key invalid
  • Loading branch information
zale144 authored Feb 1, 2023
2 parents 320c4e6 + 59ea12a commit 6d3961d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func newNormalBot(
accountStream := account.NewStream(log, botConf.Name, dataNode, pauseCh)
marketStream := market.NewStream(log, botConf.Name, pubKey, dataNode, pauseCh)
accountService := account.NewService(log, botConf.Name, pubKey, accountStream, whale)
marketService := market.NewService(log, dataNode, botWallet, pricing, accountService, marketStream, botConf, conf.VegaAssetID)
marketService := market.NewService(log, dataNode, botWallet, pricing, accountService, marketStream, botConf, pubKey, conf.VegaAssetID)
bot := normal.New(log, botConf, conf.VegaAssetID, accountService, marketService, pauseCh)

return bot, nil
Expand Down
7 changes: 5 additions & 2 deletions market/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type Service struct {
log *logging.Logger

marketDecimalPlaces uint64
pubKey string
marketID string
vegaAssetID string
}
Expand All @@ -45,6 +46,7 @@ func NewService(
account accountService,
marketStream marketStream,
config config.BotConfig,
pubKey,
vegaAssetID string,
) *Service {
return &Service{
Expand All @@ -54,6 +56,7 @@ func NewService(
pricingEngine: pe,
account: account,
config: config,
pubKey: pubKey,
vegaAssetID: vegaAssetID,
log: log.Named("MarketService"),
}
Expand Down Expand Up @@ -750,7 +753,7 @@ func (m *Service) getExampleProduct() *vega.InstrumentConfiguration_Future {
{
Signer: &oraclesv1.Signer_PubKey{
PubKey: &oraclesv1.PubKey{
Key: "0xDEADBEEF",
Key: m.pubKey,
},
},
},
Expand Down Expand Up @@ -778,7 +781,7 @@ func (m *Service) getExampleProduct() *vega.InstrumentConfiguration_Future {
{
Signer: &oraclesv1.Signer_PubKey{
PubKey: &oraclesv1.PubKey{
Key: "0xDEADBEEF",
Key: m.pubKey,
},
},
},
Expand Down

0 comments on commit 6d3961d

Please sign in to comment.