Skip to content

Commit

Permalink
Merge branch 'develop' into tests/plugin-asterai
Browse files Browse the repository at this point in the history
  • Loading branch information
ai16z-demirix authored Jan 28, 2025
2 parents 6fe3f82 + 678144b commit ab90787
Show file tree
Hide file tree
Showing 12 changed files with 561 additions and 363 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-arbitrage/src/actions/arbitrageAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export const executeArbitrageAction: Action = {
similes: ["TRADE_ARBITRAGE", "RUN_ARBITRAGE"],
description: "Execute arbitrage trades across markets",

validate: async (runtime: IAgentRuntime, message: Memory) => {
validate: async (runtime: IAgentRuntime, _message: Memory) => {
// Validate settings are present
return runtime.getSetting("arbitrage.walletPrivateKey") !== undefined;
},

handler: async (runtime: IAgentRuntime, message: Memory) => {
handler: async (runtime: IAgentRuntime, _message: Memory) => {
const service = runtime.getService(ServiceType.ARBITRAGE) as ArbitrageService;
const markets = await service.evaluateMarkets();

Expand Down
Loading

0 comments on commit ab90787

Please sign in to comment.