Skip to content

Commit

Permalink
multiplier mock
Browse files Browse the repository at this point in the history
  • Loading branch information
todesstille committed Nov 29, 2023
1 parent d572077 commit d59e2db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 0 additions & 4 deletions contracts/gov/ERC721/multipliers/DexeERC721Multiplier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ contract DexeERC721Multiplier is IDexeERC721Multiplier, AbstractERC721Multiplier
multiplier = multiplier.max(PRECISION) - PRECISION;
}

function getImplementation() external view returns (address) {
return _getImplementation();
}

function _afterTokenUnlock(uint256 tokenId) internal override {
super._afterTokenUnlock(tokenId);

Expand Down
10 changes: 10 additions & 0 deletions contracts/mock/gov/tokens/DexeERC721MultiplierMock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "../../../gov/ERC721/multipliers/DexeERC721Multiplier.sol";

contract DexeERC721MultiplierMock is DexeERC721Multiplier {
function getImplementation() external view returns (address) {
return _getImplementation();
}
}
2 changes: 1 addition & 1 deletion test/gov/ERC721/DexeERC721Multiplier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { PRECISION } = require("../../../scripts/utils/constants");
const Reverter = require("../../helpers/reverter");
const truffleAssert = require("truffle-assertions");

const DexeERC721Multiplier = artifacts.require("DexeERC721Multiplier");
const DexeERC721Multiplier = artifacts.require("DexeERC721MultiplierMock");
const GovPoolMock = artifacts.require("GovPoolMock");

DexeERC721Multiplier.numberFormat = "BigNumber";
Expand Down

0 comments on commit d59e2db

Please sign in to comment.