Sovryn-smart-contracts
Sovryn-smart-contracts copied to clipboard
Smart contracts for the Sovryn protocol and external integrations
Do not merge yet, other tests will be added to this branch too.
- Optimized modular system introduced - Staking contract refactored - split into modules - Tests updated to the new modular structure - Refactored stakeBySchedule - Restored function Staking.stakeWithApproval Note: original...
it is not used and swap reverts if != 0
Links to: [Need for this PR](https://sovryn.monday.com/boards/2262760615/pulses/2553496211/posts/1455230446) [Description how it works](https://sovryn.monday.com/boards/2262760615/pulses/2553496211/posts/1462850889) Script to help to predict if a bytecode in a deployed contract will correspond to the locally compiled bytecode.
# Rationale It simplifies the searching of all collateral added to a specific loan position ## Change **from this**: [`event DepositCollateral(bytes32 loanId, uint256 depositAmount, uint256 rate);` ](https://github.com/DistributedCollective/Sovryn-smart-contracts/blob/development/contracts/events/LoanMaintenanceEvents.sol#L13) **to this**: `event...
# Multiple rewards Liquidity Mining ## Goal A new liquidity mining contract will be deployed that will let users to get multiple tokens in exchange of staking LP Tokens as...