Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Dec 12, 2023
1 parent bd9892b commit f6fc53a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion silo-to-silo/contracts/src/SiloToSilo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ contract SiloToSilo is Initializable, UUPSUpgradeable, AccessControlUpgradeable,
bytes32 public constant UNPAUSE_ADMIN_ROLE = keccak256("UNPAUSE_ADMIN_ROLE");

uint64 constant BASE_NEAR_GAS = 10_000_000_000_000;
uint64 constant WITHDRAW_NEAR_GAS = 50_000_000_000_000;
uint64 constant FT_TRANSFER_CALL_NEAR_GAS = 150_000_000_000_000;
uint128 constant ASCII_0 = 48;
uint128 constant ASCII_9 = 57;
Expand Down
20 changes: 0 additions & 20 deletions silo-to-silo/utils/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ async function safeFtTransferCallToNear(
msg,
) {
const siloToSilo = await getSiloToSiloContract(signer, config);

const wnear = await hre.ethers.getContractAt(
"@openzeppelin/contracts/token/ERC20/IERC20.sol:IERC20",
config.wNearAddress,
);
await wnear.transfer(siloToSilo, 1);

const token = await hre.ethers.getContractAt(
"@openzeppelin/contracts/token/ERC20/IERC20.sol:IERC20",
auroraTokenAddress,
Expand All @@ -190,12 +183,6 @@ async function ftTransferCallToNear(
) {
const siloToSilo = await getSiloToSiloContract(signer, config);

const wnear = await hre.ethers.getContractAt(
"@openzeppelin/contracts/token/ERC20/IERC20.sol:IERC20",
config.wNearAddress,
);
await wnear.transfer(siloToSilo, 1);

const token = await hre.ethers.getContractAt(
"@openzeppelin/contracts/token/ERC20/IERC20.sol:IERC20",
auroraTokenAddress,
Expand Down Expand Up @@ -262,13 +249,6 @@ async function getUserBalance(signer, config, auroraTokenAddress) {

async function withdraw(signer, config, auroraTokenAddress) {
const siloToSilo = await getSiloToSiloContract(signer, config);

const wnear = await hre.ethers.getContractAt(
"@openzeppelin/contracts/token/ERC20/IERC20.sol:IERC20",
config.wNearAddress,
);
await wnear.transfer(siloToSilo, 1);

await siloToSilo.withdraw(auroraTokenAddress);
}

Expand Down

0 comments on commit f6fc53a

Please sign in to comment.