mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Updated deployed contract list
This commit is contained in:
parent
95636c8623
commit
9917d43efd
|
@ -8,6 +8,8 @@
|
||||||
},
|
},
|
||||||
"137": {
|
"137": {
|
||||||
"InstaAaveV2MigratorReceiver": "0x4A090897f47993C2504144419751D6A91D79AbF4",
|
"InstaAaveV2MigratorReceiver": "0x4A090897f47993C2504144419751D6A91D79AbF4",
|
||||||
"InstaMasterProxy": "0x697860CeE594c577F18f71cAf3d8B68D913c7366"
|
"InstaMasterProxy": "0x697860CeE594c577F18f71cAf3d8B68D913c7366",
|
||||||
|
"InstaPolygonTokenMapping": "0xa471D83e526B6b5D6c876088D34834B44D4064ff",
|
||||||
|
"InstaAaveV2MigratorReceiverImplementation": "0x9686CE6Ad5C3f7b212CAF401b928c4bB3422E7Ba"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,14 +15,3 @@ interface MemoryInterface {
|
||||||
function getUint(uint id) external returns (uint num);
|
function getUint(uint id) external returns (uint num);
|
||||||
function setUint(uint id, uint val) external;
|
function setUint(uint id, uint val) external;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AccountInterface {
|
|
||||||
function enable(address) external;
|
|
||||||
function disable(address) external;
|
|
||||||
function isAuth(address) external view returns (bool);
|
|
||||||
function cast(
|
|
||||||
string[] calldata _targets,
|
|
||||||
bytes[] calldata _datas,
|
|
||||||
address _origin
|
|
||||||
) external payable returns (bytes32);
|
|
||||||
}
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ contract AaveV2Migrator is MigrateResolver {
|
||||||
|
|
||||||
function onStateReceive(uint256 stateId, bytes calldata receivedData) external {
|
function onStateReceive(uint256 stateId, bytes calldata receivedData) external {
|
||||||
// Add some more require statements. Any kind of hashing for better privacy?
|
// Add some more require statements. Any kind of hashing for better privacy?
|
||||||
// require(msg.sender == maticReceiver, "not-receiver-address"); // TODO : Add later, commenting for test cases
|
require(msg.sender == maticReceiver, "not-receiver-address");
|
||||||
require(stateId > lastStateId, "wrong-data");
|
require(stateId > lastStateId, "wrong-data");
|
||||||
lastStateId = stateId;
|
lastStateId = stateId;
|
||||||
|
|
||||||
|
@ -123,7 +123,9 @@ contract AaveV2Migrator is MigrateResolver {
|
||||||
|
|
||||||
emit LogStateSync(stateId, receivedData);
|
emit LogStateSync(stateId, receivedData);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
contract InstaAaveV2MigratorReceiverImplementation is AaveV2Migrator {
|
||||||
function migrate(uint _id) external {
|
function migrate(uint _id) external {
|
||||||
bytes memory _data = positions[_id];
|
bytes memory _data = positions[_id];
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ contract Variables {
|
||||||
/**
|
/**
|
||||||
* @dev token Mapping contract Provider
|
* @dev token Mapping contract Provider
|
||||||
*/
|
*/
|
||||||
TokenMappingInterface constant public tokenMapping = TokenMappingInterface(address(0xa31442F2607947a88807b2bcD5D4951eEdd4A885)); // TODO @thrilok209: FAKE ADDR, CHANGE THIS
|
TokenMappingInterface constant public tokenMapping = TokenMappingInterface(address(0xa471D83e526B6b5D6c876088D34834B44D4064ff));
|
||||||
/**
|
/**
|
||||||
* @dev Aave Provider
|
* @dev Aave Provider
|
||||||
*/
|
*/
|
||||||
|
@ -48,7 +48,6 @@ contract Variables {
|
||||||
/**
|
/**
|
||||||
* @dev This will be used to have debt/collateral ratio always 20% less than liquidation
|
* @dev This will be used to have debt/collateral ratio always 20% less than liquidation
|
||||||
*/
|
*/
|
||||||
// TODO @KaymasJain: Is this number correct for it?
|
|
||||||
uint public safeRatioGap = 800000000000000000; // 20%? 2e17
|
uint public safeRatioGap = 800000000000000000; // 20%? 2e17
|
||||||
|
|
||||||
// mapping stateId => user position
|
// mapping stateId => user position
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
pragma solidity ^0.7.0;
|
pragma solidity ^0.7.0;
|
||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
import { TokenInterface, AccountInterface } from "../../common/interfaces.sol";
|
import { TokenInterface } from "../../common/interfaces.sol";
|
||||||
import { AaveInterface, ATokenInterface, AaveDataRaw } from "./interfaces.sol";
|
import { AaveInterface, ATokenInterface, AaveDataRaw } from "./interfaces.sol";
|
||||||
import { Helpers } from "./helpers.sol";
|
import { Helpers } from "./helpers.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user