Skip to content

Commit 64a386a

Browse files
authored
feat: nested price feeds return proper update timestamp (#62)
* feat: nested price feeds return proper update timestamp * chore: update license to `GPL-2.0-or-later` * test: modify unit tests to check update timestamps
1 parent 78ad827 commit 64a386a

File tree

77 files changed

+579
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+579
-292
lines changed

LICENSE

Lines changed: 313 additions & 74 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository is subject to the Gearbox bug bounty program, per the terms defi
1616

1717
## Licensing
1818

19-
The primary license for the Gearbox-protocol/integrations-v2 is the Business Source License 1.1 (BUSL-1.1), see [LICENSE](/LICENSE). The files which are NOT licensed under the BUSL-1.1 have appropriate SPDX headers.
19+
The primary license for the Gearbox-protocol/oracles-v3 is the GNU General Public License v2.0 or later (GPL-2.0-or-later), see [LICENSE](/LICENSE). The files which are NOT licensed under the GPL-2.0-or-later have appropriate SPDX headers.
2020

2121
## Disclaimer
2222

contracts/interfaces/ILPPriceFeed.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
import {IPriceFeed} from "@gearbox-protocol/core-v3/contracts/interfaces/base/IPriceFeed.sol";
@@ -35,6 +35,7 @@ interface ILPPriceFeed is IPriceFeed {
3535
function lowerBound() external view returns (uint256);
3636
function upperBound() external view returns (uint256);
3737

38+
function getAggregatePriceAndTimestamp() external view returns (int256 answer, uint256 updatedAt);
3839
function getAggregatePrice() external view returns (int256 answer);
3940
function getLPExchangeRate() external view returns (uint256 exchangeRate);
4041
function getScale() external view returns (uint256 scale);

contracts/interfaces/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(c) Gearbox Foundation, 2024.
1+
(c) Gearbox Foundation, 2025.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

contracts/interfaces/balancer/IBalancerStablePool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface IBalancerStablePool {

contracts/interfaces/balancer/IBalancerVault.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface IBalancerVault {

contracts/interfaces/balancer/IBalancerWeightedPool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface IBalancerWeightedPool {

contracts/interfaces/curve/ICurvePool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface ICurvePool {

contracts/interfaces/curve/IstETHPoolGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface IstETHPoolGateway {

contracts/interfaces/lido/IwstETH.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Gearbox Protocol. Generalized leverage for DeFi protocols
3-
// (c) Gearbox Foundation, 2024.
3+
// (c) Gearbox Foundation, 2025.
44
pragma solidity ^0.8.23;
55

66
interface IwstETH {

0 commit comments

Comments
 (0)