Skip to content

Commit

Permalink
fix: Revert error for usdt approve (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorseldon authored Mar 16, 2024
1 parent 640ac3e commit 559fa65
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 24 deletions.
276 changes: 256 additions & 20 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -3626,95 +3626,95 @@
"label": "aaveAddressesProvider",
"offset": 0,
"slot": "201",
"type": "t_contract(IAaveLendPoolAddressesProvider)3646",
"type": "t_contract(IAaveLendPoolAddressesProvider)24463",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:31"
},
{
"label": "aaveLendPool",
"offset": 0,
"slot": "202",
"type": "t_contract(IAaveLendPool)3637",
"type": "t_contract(IAaveLendPool)24454",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:32"
},
{
"label": "bendAddressesProvider",
"offset": 0,
"slot": "203",
"type": "t_contract(ILendPoolAddressesProvider)3740",
"type": "t_contract(ILendPoolAddressesProvider)24571",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:33"
},
{
"label": "bendLendPool",
"offset": 0,
"slot": "204",
"type": "t_contract(ILendPool)3726",
"type": "t_contract(ILendPool)24557",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:34"
},
{
"label": "bendLendLoan",
"offset": 0,
"slot": "205",
"type": "t_contract(ILendPoolLoan)3759",
"type": "t_contract(ILendPoolLoan)24590",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:35"
},
{
"label": "nftPool",
"offset": 0,
"slot": "206",
"type": "t_contract(INftPool)1907",
"type": "t_contract(INftPool)20454",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:37"
},
{
"label": "stBayc",
"offset": 0,
"slot": "207",
"type": "t_contract(IStakedNft)2297",
"type": "t_contract(IStakedNft)21327",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:38"
},
{
"label": "stMayc",
"offset": 0,
"slot": "208",
"type": "t_contract(IStakedNft)2297",
"type": "t_contract(IStakedNft)21327",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:39"
},
{
"label": "stBakc",
"offset": 0,
"slot": "209",
"type": "t_contract(IStakedNft)2297",
"type": "t_contract(IStakedNft)21327",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:40"
},
{
"label": "bayc",
"offset": 0,
"slot": "210",
"type": "t_contract(IERC721Upgradeable)1038",
"type": "t_contract(IERC721Upgradeable)3501",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:42"
},
{
"label": "mayc",
"offset": 0,
"slot": "211",
"type": "t_contract(IERC721Upgradeable)1038",
"type": "t_contract(IERC721Upgradeable)3501",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:43"
},
{
"label": "bakc",
"offset": 0,
"slot": "212",
"type": "t_contract(IERC721Upgradeable)1038",
"type": "t_contract(IERC721Upgradeable)3501",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:44"
}
Expand All @@ -3736,35 +3736,35 @@
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IAaveLendPool)3637": {
"t_contract(IAaveLendPool)24454": {
"label": "contract IAaveLendPool",
"numberOfBytes": "20"
},
"t_contract(IAaveLendPoolAddressesProvider)3646": {
"t_contract(IAaveLendPoolAddressesProvider)24463": {
"label": "contract IAaveLendPoolAddressesProvider",
"numberOfBytes": "20"
},
"t_contract(IERC721Upgradeable)1038": {
"t_contract(IERC721Upgradeable)3501": {
"label": "contract IERC721Upgradeable",
"numberOfBytes": "20"
},
"t_contract(ILendPool)3726": {
"t_contract(ILendPool)24557": {
"label": "contract ILendPool",
"numberOfBytes": "20"
},
"t_contract(ILendPoolAddressesProvider)3740": {
"t_contract(ILendPoolAddressesProvider)24571": {
"label": "contract ILendPoolAddressesProvider",
"numberOfBytes": "20"
},
"t_contract(ILendPoolLoan)3759": {
"t_contract(ILendPoolLoan)24590": {
"label": "contract ILendPoolLoan",
"numberOfBytes": "20"
},
"t_contract(INftPool)1907": {
"t_contract(INftPool)20454": {
"label": "contract INftPool",
"numberOfBytes": "20"
},
"t_contract(IStakedNft)2297": {
"t_contract(IStakedNft)21327": {
"label": "contract IStakedNft",
"numberOfBytes": "20"
},
Expand Down Expand Up @@ -6586,6 +6586,242 @@
}
}
}
},
"9704f7adf3770660a0e6b3bc5c5daed667f94919b9452ab41f050d09b7b06106": {
"address": "0x7A4CdEa27964491F32A09F835116614d2C8dbF69",
"txHash": "0xdd53ff61e0a4ecb67a020f6e8dd3b8edd271a4cd05d75b3df82f58691a2a5740",
"layout": {
"solcVersion": "0.8.18",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "_status",
"offset": 0,
"slot": "1",
"type": "t_uint256",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38"
},
{
"label": "__gap",
"offset": 0,
"slot": "2",
"type": "t_array(t_uint256)49_storage",
"contract": "ReentrancyGuardUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:80"
},
{
"label": "__gap",
"offset": 0,
"slot": "51",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "_paused",
"offset": 0,
"slot": "151",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "152",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "aaveAddressesProvider",
"offset": 0,
"slot": "201",
"type": "t_contract(IAaveLendPoolAddressesProvider)3702",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:34"
},
{
"label": "aaveLendPool",
"offset": 0,
"slot": "202",
"type": "t_contract(IAaveLendPool)3693",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:35"
},
{
"label": "bendAddressesProvider",
"offset": 0,
"slot": "203",
"type": "t_contract(ILendPoolAddressesProvider)3796",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:36"
},
{
"label": "bendLendPool",
"offset": 0,
"slot": "204",
"type": "t_contract(ILendPool)3782",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:37"
},
{
"label": "bendLendLoan",
"offset": 0,
"slot": "205",
"type": "t_contract(ILendPoolLoan)3815",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:38"
},
{
"label": "nftPool",
"offset": 0,
"slot": "206",
"type": "t_contract(INftPool)1907",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:40"
},
{
"label": "stBayc",
"offset": 0,
"slot": "207",
"type": "t_contract(IStakedNft)2347",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:41"
},
{
"label": "stMayc",
"offset": 0,
"slot": "208",
"type": "t_contract(IStakedNft)2347",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:42"
},
{
"label": "stBakc",
"offset": 0,
"slot": "209",
"type": "t_contract(IStakedNft)2347",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:43"
},
{
"label": "bayc",
"offset": 0,
"slot": "210",
"type": "t_contract(IERC721Upgradeable)1038",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:45"
},
{
"label": "mayc",
"offset": 0,
"slot": "211",
"type": "t_contract(IERC721Upgradeable)1038",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:46"
},
{
"label": "bakc",
"offset": 0,
"slot": "212",
"type": "t_contract(IERC721Upgradeable)1038",
"contract": "LendingMigrator",
"src": "contracts/misc/LendingMigrator.sol:47"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IAaveLendPool)3693": {
"label": "contract IAaveLendPool",
"numberOfBytes": "20"
},
"t_contract(IAaveLendPoolAddressesProvider)3702": {
"label": "contract IAaveLendPoolAddressesProvider",
"numberOfBytes": "20"
},
"t_contract(IERC721Upgradeable)1038": {
"label": "contract IERC721Upgradeable",
"numberOfBytes": "20"
},
"t_contract(ILendPool)3782": {
"label": "contract ILendPool",
"numberOfBytes": "20"
},
"t_contract(ILendPoolAddressesProvider)3796": {
"label": "contract ILendPoolAddressesProvider",
"numberOfBytes": "20"
},
"t_contract(ILendPoolLoan)3815": {
"label": "contract ILendPoolLoan",
"numberOfBytes": "20"
},
"t_contract(INftPool)1907": {
"label": "contract INftPool",
"numberOfBytes": "20"
},
"t_contract(IStakedNft)2347": {
"label": "contract IStakedNft",
"numberOfBytes": "20"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
Loading

0 comments on commit 559fa65

Please sign in to comment.