Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbreak1211 committed Jun 4, 2024
1 parent 0378176 commit 536490a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LockstakeEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ contract LockstakeEngine is Multicall {

mapping(address usr => uint256 allowed) public wards;
mapping(address farm => FarmStatus) public farms;
mapping(address usr => uint256 amount) public usrAmts;
mapping(address usr => uint256 urnsCount) public usrAmts;
mapping(address urn => address owner) public urnOwners;
mapping(address urn => mapping(address usr => uint256 allowed)) public urnCan;
mapping(address urn => address voteDelegate) public urnVoteDelegates;
mapping(address urn => address farm) public urnFarms;
mapping(address urn => uint256 amount) public urnAuctions;
mapping(address urn => uint256 auctionsCount) public urnAuctions;
JugLike public jug;

// --- constants and enums ---
Expand Down Expand Up @@ -218,8 +218,8 @@ contract LockstakeEngine is Multicall {

// --- getters ---

// NOTE: this function will succeed returning the address even if the urn for the specified index hasn't been created yet
function getUrn(address owner, uint256 index) external view returns (address urn) {
// NOTE: this function will succeed returning the address even if the urn for the specified index hasn't been created yet
uint256 salt = uint256(keccak256(abi.encode(owner, index)));
bytes32 codeHash = keccak256(abi.encodePacked(_initCode()));
urn = address(uint160(uint256(
Expand Down

0 comments on commit 536490a

Please sign in to comment.