Skip to content

Commit

Permalink
Remove first element of Staking activity.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedelgado authored Jun 4, 2024
1 parent 6569923 commit 29a0d3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/packages/nelmio_api_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ nelmio_api_doc:
documentation:
info:
title: Kujira track API
description: Provides useful information and metrics about Kujira network.
version: 1.0.0
description: Provides useful information and metrics about Kujira network. Alpha version. Expect breaking changes.
version: 0.1.0
servers:
- url: https://api.kujira-track.app
description: Main (production) server
Expand Down
6 changes: 3 additions & 3 deletions src/Staking/Domain/StakedKujiCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function diff(): array
$prev = $value;
}

// Remove the last element as it doesn't have a previous value
array_pop($stakedKujiDiff);

// Remove the first element as it doesn't have a previous value
array_shift($stakedKujiDiff);
return array_values($stakedKujiDiff);
}
}

0 comments on commit 29a0d3e

Please sign in to comment.