mirror of
https://github.com/logos-co/staking.git
synced 2025-01-10 18:56:00 +00:00
Merge pull request #3 from logos-co/fix-compiler-version
Fix compiler version
This commit is contained in:
commit
05969c2b48
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
||||
import "@openzeppelin/contracts/access/Ownable.sol";
|
||||
@ -150,7 +150,7 @@ contract StakeManager is Ownable {
|
||||
accounts[_vault] = _account;
|
||||
}
|
||||
|
||||
function calcMaxMultiplierIncrease(uint256 _increasedMultiplier, uint256 _currentMp, uint256 _lockUntil, uint256 _stake) private pure returns(uint256 _maxToIncrease) {
|
||||
function calcMaxMultiplierIncrease(uint256 _increasedMultiplier, uint256 _currentMp, uint256 _lockUntil, uint256 _stake) private view returns(uint256 _maxToIncrease) {
|
||||
uint256 newMp = _increasedMultiplier + _currentMp;
|
||||
if(block.timestamp > _lockUntil){
|
||||
//not locked, limit to max_boost
|
||||
|
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
import "./StakeManager.sol";
|
||||
import "@openzeppelin/contracts/access/Ownable.sol";
|
||||
|
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
import "@openzeppelin/contracts/access/Ownable.sol";
|
||||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
/// @dev `Owned` is a base level contract that assigns an `owner` that can be
|
||||
/// later changed
|
||||
contract Owned {
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
import "./SNTPlaceHolder.sol";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
import "./token/TokenController.sol";
|
||||
import "./token/MiniMeToken.sol";
|
||||
import "./SafeMath.sol";
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
/**
|
||||
* Math operations with safety checks
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
import { MiniMeToken } from "../token/MiniMeToken.sol";
|
||||
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
abstract contract ApproveAndCallFallBack {
|
||||
function receiveApproval(address from, uint256 _amount, address _token, bytes memory _data) virtual public;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
|
||||
contract Controlled {
|
||||
string internal constant ERR_BAD_PARAMETER = "Bad parameter";
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
/*
|
||||
Copyright 2016, Jordi Baylina
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
import "./MiniMeToken.sol";
|
||||
|
||||
////////////////
|
||||
|
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity 0.8.18;
|
||||
pragma solidity ^0.8.18;
|
||||
/**
|
||||
* @dev The token controller contract must implement these functions
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user