-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR fixes: fix comments, readme, rename bridges, notifier refactoring
- Loading branch information
Showing
40 changed files
with
568 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// SPDX-FileCopyrightText: 2024 OpenZeppelin, Lido <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0 | ||
// Writen based on (utils/cryptography/SignatureChecker.sol from d398d68 | ||
// Written based on (utils/cryptography/SignatureChecker.sol from d398d68 | ||
|
||
pragma solidity 0.8.10; | ||
|
||
|
@@ -24,7 +24,6 @@ library SignatureChecker { | |
*/ | ||
function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) { | ||
if (signer.code.length == 0) { | ||
// return true; | ||
(address recovered, ECDSA.RecoverError err) = ECDSA.tryRecover(hash, signature); | ||
return err == ECDSA.RecoverError.NoError && recovered == signer; | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// SPDX-FileCopyrightText: 2023 Lido <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.10; | ||
|
@@ -9,7 +9,7 @@ contract DepositDataCodec { | |
|
||
uint8 internal constant RATE_FIELD_SIZE = 12; | ||
uint8 internal constant TIMESTAMP_FIELD_SIZE = 5; | ||
|
||
struct DepositData { | ||
uint96 rate; | ||
uint40 timestamp; | ||
|
@@ -26,11 +26,11 @@ contract DepositDataCodec { | |
} | ||
|
||
function decodeDepositData(bytes calldata buffer) internal pure returns (DepositData memory) { | ||
|
||
if (buffer.length < RATE_FIELD_SIZE + TIMESTAMP_FIELD_SIZE) { | ||
revert ErrorDepositDataLength(); | ||
} | ||
|
||
DepositData memory depositData = DepositData({ | ||
rate: uint96(bytes12(buffer[0:RATE_FIELD_SIZE])), | ||
timestamp: uint40(bytes5(buffer[RATE_FIELD_SIZE:RATE_FIELD_SIZE + TIMESTAMP_FIELD_SIZE])), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.